Click here to Skip to main content
15,889,863 members
Home / Discussions / Database
   

Database

 
AnswerRe: How to select records 11 to 20 in SQL SERVER? Pin
Blue_Boy23-Jun-09 11:00
Blue_Boy23-Jun-09 11:00 
GeneralRe: How to select records 11 to 20 in SQL SERVER? Pin
pankazmittal23-Jun-09 11:04
pankazmittal23-Jun-09 11:04 
GeneralRe: How to select records 11 to 20 in SQL SERVER? Pin
Blue_Boy23-Jun-09 11:12
Blue_Boy23-Jun-09 11:12 
AnswerRe: How to select records 11 to 20 in SQL SERVER? PinPopular
Niladri_Biswas23-Jun-09 18:10
Niladri_Biswas23-Jun-09 18:10 
GeneralRe: How to select records 11 to 20 in SQL SERVER? Pin
pankazmittal24-Jun-09 4:08
pankazmittal24-Jun-09 4:08 
QuestionHow to know if a column of type int is Identity using ADO.NET GetSchema()? Pin
adgonz23-Jun-09 5:31
adgonz23-Jun-09 5:31 
AnswerSystables Pin
David Mujica23-Jun-09 6:06
David Mujica23-Jun-09 6:06 
GeneralRe: Systables Pin
David Mujica23-Jun-09 8:19
David Mujica23-Jun-09 8:19 
Here is some code I found ...

Set the @tblName variable to the name of the table you are trying to find the Identity column and you will get the result.

Happy Coding Cool | :cool:

<br />
declare @TblName sysname<br />
<br />
set @tblName = 'Your table name'<br />
<br />
-- show identity col name<br />
select syscolumns.name from sysobjects <br />
inner join syscolumns on sysobjects.id = syscolumns.id <br />
where sysobjects.name = @tblName and syscolumns.status = 0x80<br />
<br />
-- show identity constraint name<br />
select sysobjconstraint.name from sysobjects <br />
inner join sysconstraints on sysobjects.id = sysconstraints.id <br />
left outer join sysobjects sysobjconstraint on sysconstraints.constid = sysobjconstraint.id<br />
where sysobjects.name = @tblName and sysobjconstraint.xtype = 'PK'

GeneralRe: Systables Pin
adgonz23-Jun-09 22:06
adgonz23-Jun-09 22:06 
QuestionHow to Get DST Start dates and DST End dates for different Time zones. [modified] Pin
jgotlt23-Jun-09 4:22
jgotlt23-Jun-09 4:22 
Questionhow to move data from one db to another db Pin
janani1323-Jun-09 0:33
janani1323-Jun-09 0:33 
GeneralRe: how to move data from one db to another db Pin
Isaac Gordon23-Jun-09 0:42
Isaac Gordon23-Jun-09 0:42 
GeneralRe: how to move data from one db to another db Pin
janani1323-Jun-09 0:47
janani1323-Jun-09 0:47 
GeneralRe: how to move data from one db to another db Pin
Isaac Gordon23-Jun-09 0:55
Isaac Gordon23-Jun-09 0:55 
AnswerRe: how to move data from one db to another db Pin
Jerry Hammond23-Jun-09 4:59
Jerry Hammond23-Jun-09 4:59 
AnswerRe: how to move data from one db to another db Pin
Niladri_Biswas23-Jun-09 18:17
Niladri_Biswas23-Jun-09 18:17 
GeneralRe: how to move data from one db to another db Pin
Jerry Hammond23-Jun-09 19:50
Jerry Hammond23-Jun-09 19:50 
Questionfull text indexed Pin
almasoudi22-Jun-09 23:12
almasoudi22-Jun-09 23:12 
AnswerRe: full text indexed Pin
Eddy Vluggen23-Jun-09 0:18
professionalEddy Vluggen23-Jun-09 0:18 
QuestionHelp me with SQL query Pin
anderslundsgard22-Jun-09 21:00
anderslundsgard22-Jun-09 21:00 
AnswerRe: Help me with SQL query Pin
Blue_Boy22-Jun-09 21:35
Blue_Boy22-Jun-09 21:35 
GeneralRe: Help me with SQL query Pin
Niladri_Biswas23-Jun-09 19:00
Niladri_Biswas23-Jun-09 19:00 
AnswerRe: Help me with SQL query Pin
Niladri_Biswas24-Jun-09 20:09
Niladri_Biswas24-Jun-09 20:09 
QuestionINDEX and INSERT in SQL Server 2005 Pin
sujithkumarsl22-Jun-09 20:57
sujithkumarsl22-Jun-09 20:57 
AnswerRe: INDEX and INSERT in SQL Server 2005 Pin
Ashfield22-Jun-09 21:00
Ashfield22-Jun-09 21:00 

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.