Click here to Skip to main content
       

Database

 
GeneralADO.NET PinmemberM.T.H.Danish6-Nov-12 6:11 
AnswerRe: ADO.NET Pinmemberihoecken6-Nov-12 6:27 
QuestionSQL SERVER 2008 PinmemberM.T.H.Danish6-Nov-12 2:49 
AnswerRe: SQL SERVER 2008 PinmemberDavid Mujica6-Nov-12 3:27 
AnswerRe: SQL SERVER 2008 PinmemberJ4amieC6-Nov-12 3:31 
AnswerRe: SQL SERVER 2008 Pinmemberdjj556-Nov-12 4:43 
AnswerRe: SQL SERVER 2008 PinmemberMichael Potter6-Nov-12 4:47 
GeneralAwesome solution PinmemberDavid Mujica6-Nov-12 8:39 
Michael Potter wrote:
Make sure the Primary Key can only contain 1 value using a check constraint:

 
ALTER TABLE [dbo].[MyTable]  WITH CHECK ADD  CONSTRAINT [CK_OneRow] CHECK  (([Id]=(1)))

 
That is a very cool way to solve a very strange request. I'll give it a 5.
GeneralRe: Awesome solution PinmemberSrini Sydney14-Nov-12 11:24 
GeneralRe: SQL SERVER 2008 PinmemberMycroft Holmes6-Nov-12 12:11 
GeneralRe: SQL SERVER 2008 PinmemberMichael Potter7-Nov-12 5:23 
SuggestionRe: SQL SERVER 2008 PinmemberEddy Vluggen7-Nov-12 5:47 
GeneralRe: SQL SERVER 2008 PinmemberMichael Potter8-Nov-12 8:54 
GeneralRe: SQL SERVER 2008 PinmemberEddy Vluggen8-Nov-12 8:57 
GeneralRe: SQL SERVER 2008 PinmemberMycroft Holmes7-Nov-12 11:25 
QuestionException in Win 7 while trying to connect the application to Access DB. Pinmemberrskuchimanchi6-Nov-12 1:52 
AnswerRe: Exception in Win 7 while trying to connect the application to Access DB. PinmemberEddy Vluggen6-Nov-12 2:11 
QuestionAnsiNulls and QuatedIdentifiers default values Pinmembereli150219795-Nov-12 21:23 
AnswerRe: AnsiNulls and QuatedIdentifiers default values [RESOLVED] Pinmembereli150219795-Nov-12 22:19 
Questionexporting Table to Excel file by TSQL Problem Pingroupmehdi.sabet4-Nov-12 20:28 
AnswerRe: exporting Table to Excel file by TSQL Problem PinmemberEddy Vluggen4-Nov-12 23:48 
GeneralRe: exporting Table to Excel file by TSQL Problem Pingroupmehdi.sabet5-Nov-12 19:39 
GeneralRe: exporting Table to Excel file by TSQL Problem PinmemberEddy Vluggen5-Nov-12 23:41 
GeneralRe: exporting Table to Excel file by TSQL Problem Pingroupmehdi.sabet6-Nov-12 2:13 
GeneralRe: exporting Table to Excel file by TSQL Problem PinmemberEddy Vluggen6-Nov-12 2:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web03 | 2.8.140916.1 | Last Updated 18 Sep 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid