Click here to Skip to main content
15,888,527 members
Home / Discussions / Database
   

Database

 
GeneralRe: stored procedure problem Pin
Mike Dimmick28-Mar-08 23:38
Mike Dimmick28-Mar-08 23:38 
QuestionHow to recover sql server corrupted paged database? Pin
AhmetGULBAY28-Mar-08 7:09
AhmetGULBAY28-Mar-08 7:09 
GeneralDifference between INNER JOIN and WHERE Clause Pin
soso_online28-Mar-08 3:39
soso_online28-Mar-08 3:39 
GeneralRe: Difference between INNER JOIN and WHERE Clause Pin
GuyThiebaut28-Mar-08 4:57
professionalGuyThiebaut28-Mar-08 4:57 
GeneralRe: Difference between INNER JOIN and WHERE Clause Pin
Joe DiNatale28-Mar-08 5:55
Joe DiNatale28-Mar-08 5:55 
GeneralSecurity Model Recommendations for ASP.NET Client Pin
Brady Kelly28-Mar-08 2:59
Brady Kelly28-Mar-08 2:59 
GeneralRe: Security Model Recommendations for ASP.NET Client Pin
Mark J. Miller28-Mar-08 9:10
Mark J. Miller28-Mar-08 9:10 
QuestionIdentity reseed in trigger Pin
User 274316228-Mar-08 2:07
User 274316228-Mar-08 2:07 
I have an identity column of type int in my table and I need to reseed it when it reaches certain value.
I'm thinking of a trigger on insert that would check last generated identity value and reseed it if needed.

At the moment I believe I should use SCOPE_IDENTITY() and DBCC CHECKIDENT (table, reseed, initial_value) in CASE statement. If this is the case I need some help in putting things together otherwise I need a better solution.

Any help will be very appreciated.

Thanks in advance.

modified 19-Nov-18 21:01pm.

GeneralRe: Identity reseed in trigger Pin
Mark J. Miller28-Mar-08 9:19
Mark J. Miller28-Mar-08 9:19 
GeneralRe: Identity reseed in trigger Pin
User 274316228-Mar-08 21:43
User 274316228-Mar-08 21:43 
GeneralRe: Identity reseed in trigger Pin
Mark J. Miller31-Mar-08 5:33
Mark J. Miller31-Mar-08 5:33 
GeneralRe: Identity reseed in trigger Pin
User 274316231-Mar-08 21:25
User 274316231-Mar-08 21:25 
GeneralSQL query optimization i sql server 2005 [modified] Pin
ashok@techxygen27-Mar-08 19:27
ashok@techxygen27-Mar-08 19:27 
GeneralRe: SQL query optimization i sql server 2005 Pin
John_Adams27-Mar-08 21:39
John_Adams27-Mar-08 21:39 
GeneralRe: SQL query optimization i sql server 2005 Pin
Gandalf_TheWhite30-Dec-09 4:35
professionalGandalf_TheWhite30-Dec-09 4:35 
GeneralI dont get it :-) Get Discounted price by porcentage Pin
AlexeiXX327-Mar-08 18:32
AlexeiXX327-Mar-08 18:32 
GeneralRe: I dont get it :-) Get Discounted price by porcentage Pin
Ashfield28-Mar-08 0:50
Ashfield28-Mar-08 0:50 
GeneralRe: I dont get it :-) Get Discounted price by porcentage Pin
Sgg24528-Mar-08 2:21
Sgg24528-Mar-08 2:21 
GeneralRe: I dont get it :-) Get Discounted price by porcentage Pin
AlexeiXX328-Mar-08 9:11
AlexeiXX328-Mar-08 9:11 
GeneralWeird Error Message in MS Access...Please help Pin
new_phoenix27-Mar-08 7:37
new_phoenix27-Mar-08 7:37 
AnswerRe: Weird Error Message in MS Access...Please help Pin
Justin Porteous27-Mar-08 8:54
Justin Porteous27-Mar-08 8:54 
GeneralDatabinding for SSRS CustomReportItem Pin
Mark J. Miller27-Mar-08 7:13
Mark J. Miller27-Mar-08 7:13 
GeneralRe: Databinding for SSRS CustomReportItem Pin
Mark J. Miller27-Mar-08 10:42
Mark J. Miller27-Mar-08 10:42 
GeneralDYNAMICALLY Generating Reports in SSRS-2005 Pin
Aswanth26-Mar-08 23:12
Aswanth26-Mar-08 23:12 
GeneralPrefix 'sp' for stored procs Pin
Brady Kelly26-Mar-08 22:47
Brady Kelly26-Mar-08 22:47 

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.