Click here to Skip to main content
15,900,108 members
Home / Discussions / Database
   

Database

 
GeneralRe: DbCommand execute and sql script with "GO" Pin
Mike Dimmick28-Mar-08 22:49
Mike Dimmick28-Mar-08 22:49 
GeneralRe: DbCommand execute and sql script with "GO" Pin
devvvy28-Mar-08 22:53
devvvy28-Mar-08 22:53 
GeneralRe: DbCommand execute and sql script with "GO" Pin
pmarfleet28-Mar-08 23:31
pmarfleet28-Mar-08 23:31 
GeneralRe: DbCommand execute and sql script with "GO" Pin
devvvy28-Mar-08 23:33
devvvy28-Mar-08 23:33 
GeneralDECLARE CURSOR must be the only statement in a query batch. -- Re: DbCommand execute and sql script with "GO" Pin
devvvy30-Mar-08 16:52
devvvy30-Mar-08 16:52 
QuestionHow to reorder uniqueIdentifier field? Pin
maryam.saboor28-Mar-08 19:19
professionalmaryam.saboor28-Mar-08 19:19 
AnswerRe: How to reorder uniqueIdentifier field? Pin
pmarfleet28-Mar-08 23:33
pmarfleet28-Mar-08 23:33 
GeneralRe: How to reorder uniqueIdentifier field? Pin
maryam.saboor29-Mar-08 0:35
professionalmaryam.saboor29-Mar-08 0:35 
GeneralRe: How to reorder uniqueIdentifier field? Pin
pmarfleet29-Mar-08 1:47
pmarfleet29-Mar-08 1:47 
Questionstored procedure problem Pin
md_azy28-Mar-08 18:40
md_azy28-Mar-08 18:40 
GeneralRe: stored procedure problem Pin
pmarfleet28-Mar-08 23:34
pmarfleet28-Mar-08 23:34 
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 
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 
Just a warning that reseeding a primary key value can have some gotchas. As long as the table really is cleared out daily and there's no chance of the numbers being used w/in the same 24-48 hour period then you're probably fine. But if that primary key is being referenced elsewhere in other tables that don't get cleared out on the same schedules you're really in for some problems.

Any solution that depends on a specific constraint on identity keys is problematic. The value of the key should really be completely agnostic. It's purpose is for indexes and relations, not for business logic. That's not to say that you can't use an autonumber, but you may want to question why its being used and why it has to have this kind of constraint on it. And most importantly, if you are using the primary key value for these records elsewhere then you might want to use something else for the actual primary key value.


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 

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.