Click here to Skip to main content
15,895,991 members
Home / Discussions / Database
   

Database

 
QuestionRetrieving the new defalt value of a uniqueidentifier Pin
henry19511-Dec-10 14:41
henry19511-Dec-10 14:41 
AnswerRe: Retrieving the new defalt value of a uniqueidentifier PinPopular
Mycroft Holmes1-Dec-10 15:44
professionalMycroft Holmes1-Dec-10 15:44 
AnswerRe: Retrieving the new defalt value of a uniqueidentifier Pin
PIEBALDconsult4-Dec-10 4:19
mvePIEBALDconsult4-Dec-10 4:19 
GeneralRe: Retrieving the new defalt value of a uniqueidentifier Pin
henry19514-Dec-10 5:16
henry19514-Dec-10 5:16 
GeneralRe: Retrieving the new defalt value of a uniqueidentifier Pin
PIEBALDconsult4-Dec-10 8:26
mvePIEBALDconsult4-Dec-10 8:26 
GeneralRe: Retrieving the new defalt value of a uniqueidentifier Pin
Joe DiNatale6-Dec-10 11:08
Joe DiNatale6-Dec-10 11:08 
GeneralRe: Retrieving the new defalt value of a uniqueidentifier Pin
Mycroft Holmes4-Dec-10 11:42
professionalMycroft Holmes4-Dec-10 11:42 
GeneralRe: Retrieving the new defalt value of a uniqueidentifier Pin
PIEBALDconsult4-Dec-10 12:53
mvePIEBALDconsult4-Dec-10 12:53 
Mycroft Holmes wrote:
And the practical difference between a ident and a sequence is?


Sequences aren't tied to a particular table. You can get a value from a sequence without adding a record.

I suppose one could implement a sequence using a table with only an autoincrement column -- and perhaps a trigger to delete the otherwise needless rows. Big Grin | :-D


Mycroft Holmes wrote:
I spend a lot of time chasing down problems in the data


I don't. Big Grin | :-D And I don't write bugs either. Big Grin | :-D


Eventually, your numbers may be high enough that you can't remember them* -- GUIDs simply get you there immediately, that's one of the benefits. Or you could cobble up your own GUIDs during development and testing:
System.Guid g = new System.Guid ( 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 ) ;
You could even wrap that around a sequence. You get the best of both worlds.


* For me that's anything with more than three digits.
GeneralRe: Retrieving the new defalt value of a uniqueidentifier Pin
Mycroft Holmes4-Dec-10 14:45
professionalMycroft Holmes4-Dec-10 14:45 
QuestionSQL database works on IIS but not in client machines Pin
saud_a_k30-Nov-10 20:45
saud_a_k30-Nov-10 20:45 
AnswerRe: SQL database works on IIS but not in client machines Pin
Rajesh Anuhya30-Nov-10 22:31
professionalRajesh Anuhya30-Nov-10 22:31 
GeneralRe: SQL database works on IIS but not in client machines Pin
saud_a_k1-Dec-10 0:35
saud_a_k1-Dec-10 0:35 
GeneralRe: SQL database works on IIS but not in client machines Pin
Eddy Vluggen1-Dec-10 7:03
professionalEddy Vluggen1-Dec-10 7:03 
GeneralRe: SQL database works on IIS but not in client machines Pin
saud_a_k3-Dec-10 18:48
saud_a_k3-Dec-10 18:48 
GeneralRe: SQL database works on IIS but not in client machines Pin
Eddy Vluggen4-Dec-10 2:18
professionalEddy Vluggen4-Dec-10 2:18 
AnswerRe: SQL database works on IIS but not in client machines Pin
G-Tek4-Dec-10 5:41
G-Tek4-Dec-10 5:41 
QuestionMaintain max x records Pin
Eduard Keilholz29-Nov-10 22:45
Eduard Keilholz29-Nov-10 22:45 
AnswerRe: Maintain max x records Pin
Mycroft Holmes30-Nov-10 0:05
professionalMycroft Holmes30-Nov-10 0:05 
GeneralRe: Maintain max x records Pin
PIEBALDconsult30-Nov-10 2:18
mvePIEBALDconsult30-Nov-10 2:18 
GeneralRe: Maintain max x records Pin
Eduard Keilholz30-Nov-10 2:45
Eduard Keilholz30-Nov-10 2:45 
GeneralRe: Maintain max x records Pin
David Skelly30-Nov-10 6:14
David Skelly30-Nov-10 6:14 
GeneralRe: Maintain max x records Pin
Chris Meech30-Nov-10 7:19
Chris Meech30-Nov-10 7:19 
GeneralRe: Maintain max x records Pin
Jason Christian1-Dec-10 6:52
Jason Christian1-Dec-10 6:52 
GeneralRe: Maintain max x records Pin
Eduard Keilholz30-Nov-10 20:16
Eduard Keilholz30-Nov-10 20:16 
GeneralRe: Maintain max x records Pin
Eduard Keilholz30-Nov-10 2:43
Eduard Keilholz30-Nov-10 2:43 

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.