Click here to Skip to main content
15,887,485 members
Home / Discussions / Database
   

Database

 
AnswerRe: Transaction Processing Replication Pin
Tim Carmichael7-May-08 2:02
Tim Carmichael7-May-08 2:02 
GeneralRe: Transaction Processing Replication Pin
Codename477-May-08 2:07
Codename477-May-08 2:07 
Questionadding column names using the stored procedure.error in the @ character Pin
Pankaj Garg7-May-08 0:12
Pankaj Garg7-May-08 0:12 
AnswerRe: adding column names using the stored procedure.error in the @ character Pin
Krish - KP7-May-08 0:16
Krish - KP7-May-08 0:16 
QuestionRe: adding column names using the stored procedure.error in the @ character Pin
Pankaj Garg7-May-08 1:43
Pankaj Garg7-May-08 1:43 
AnswerRe: adding column names using the stored procedure.error in the @ character Pin
Krish - KP7-May-08 1:54
Krish - KP7-May-08 1:54 
QuestionRe: adding column names using the stored procedure.error in the @ character Pin
Pankaj Garg7-May-08 1:58
Pankaj Garg7-May-08 1:58 
AnswerRe: adding column names using the stored procedure.error in the @ character Pin
Ashfield7-May-08 4:42
Ashfield7-May-08 4:42 
Assuming SQL Server 2000

if exists (select 1 from syscolumns where name = 'yourcolumnname' and id = object_id('yourtablename')<br />
begin<br />
select 'It exists'<br />
end<br />
else<br />
begin<br />
select 'its new'<br />
end



this will also work with SQL Server 2005 but you should be using the sys.xxx views

Bob
Ashfield Consultants Ltd

Questionwhen to create index? Pin
PadmaPriya.S7-May-08 0:01
PadmaPriya.S7-May-08 0:01 
AnswerRe: when to create index? Pin
John_Adams7-May-08 0:34
John_Adams7-May-08 0:34 
AnswerRe: when to create index? Pin
GuyThiebaut7-May-08 10:04
professionalGuyThiebaut7-May-08 10:04 
Questiongetting the value in variable Pin
gottimukkala6-May-08 23:04
gottimukkala6-May-08 23:04 
AnswerRe: getting the value in variable Pin
Krish - KP7-May-08 0:06
Krish - KP7-May-08 0:06 
Questiondisable complexity check while creating user Pin
Denver Thomas6-May-08 21:43
Denver Thomas6-May-08 21:43 
AnswerRe: disable complexity check while creating user Pin
Dave Kreskowiak7-May-08 10:30
mveDave Kreskowiak7-May-08 10:30 
QuestionMySQL5 Duplicate entry error while row does not exit Pin
Hari Om Prakash Sharma6-May-08 21:16
Hari Om Prakash Sharma6-May-08 21:16 
AnswerRe: MySQL5 Duplicate entry error while row does not exit Pin
Rajesh R Subramanian4-Jun-08 23:38
professionalRajesh R Subramanian4-Jun-08 23:38 
AnswerRe: MySQL5 Duplicate entry error while row does not exit Pin
The Web Developer5-Jun-08 0:35
The Web Developer5-Jun-08 0:35 
Questioncounting in SQL server 2000?? Pin
Karan_TN6-May-08 20:06
Karan_TN6-May-08 20:06 
AnswerRe: counting in SQL server 2000?? Pin
Krish - KP6-May-08 20:28
Krish - KP6-May-08 20:28 
GeneralRe: counting in SQL server 2000?? Pin
Karan_TN6-May-08 20:31
Karan_TN6-May-08 20:31 
AnswerRe: counting in SQL server 2000?? Pin
Ashfield6-May-08 21:54
Ashfield6-May-08 21:54 
QuestionAutomatic record insertion depends on system date sql server 2000? Pin
Dotnetkanna6-May-08 18:53
Dotnetkanna6-May-08 18:53 
AnswerRe: Automatic record insertion depends on system date sql server 2000? Pin
Krish - KP6-May-08 20:31
Krish - KP6-May-08 20:31 
GeneralRe: Automatic record insertion depends on system date sql server 2000? Pin
Dotnetkanna6-May-08 20:58
Dotnetkanna6-May-08 20:58 

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

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