Click here to Skip to main content
15,895,557 members
Home / Discussions / C#
   

C#

 
Questionc# windows application browse and upload functionality sourcecode Pin
jay10019-May-08 7:00
jay10019-May-08 7:00 
AnswerRe: c# windows application browse and upload functionality sourcecode Pin
SomeGuyThatIsMe19-May-08 7:40
SomeGuyThatIsMe19-May-08 7:40 
QuestionRetrieving the identity value after insert a row. Pin
aecordoba19-May-08 6:51
aecordoba19-May-08 6:51 
AnswerRe: Retrieving the identity value after insert a row. Pin
SomeGuyThatIsMe19-May-08 7:01
SomeGuyThatIsMe19-May-08 7:01 
GeneralRe: Retrieving the identity value after insert a row. Pin
aecordoba19-May-08 7:29
aecordoba19-May-08 7:29 
GeneralRe: Retrieving the identity value after insert a row. Pin
SomeGuyThatIsMe19-May-08 7:36
SomeGuyThatIsMe19-May-08 7:36 
GeneralRe: Retrieving the identity value after insert a row. Pin
aecordoba20-May-08 2:18
aecordoba20-May-08 2:18 
GeneralRe: Retrieving the identity value after insert a row. Pin
SomeGuyThatIsMe20-May-08 3:16
SomeGuyThatIsMe20-May-08 3:16 
There are several problems with an auto increment column , mostly involves using foreign keys and moving the data around the databse if you ever had to..its always a good idea to control what your keys are and not let something decide for you, then you have to get the new key before you insert so you dont have this problem.. I dont know your data so i cant suggest a good key, but if you're happy with a simple incrementing integer, why not just do table that contains several rows with the id name, its current value, and what to increment it by and use a stored procedure to return the current value then increment it, that way 2 synchrous requests cant duplicat the value...its a little more work but solves a lot of problems now and in the future. onces its set up you can use it all over the place when the data you're trying to store doesnt give you a decent primary or composite key.
GeneralRe: Retrieving the identity value after insert a row. Pin
aecordoba21-May-08 1:51
aecordoba21-May-08 1:51 
GeneralRe: Retrieving the identity value after insert a row. Pin
SomeGuyThatIsMe21-May-08 2:09
SomeGuyThatIsMe21-May-08 2:09 
GeneralCrystalReportViewer Toolbox print button event Pin
Kit Fisto19-May-08 6:25
Kit Fisto19-May-08 6:25 
QuestionProblem With '{ }' Pin
Saba0219-May-08 5:48
Saba0219-May-08 5:48 
AnswerRe: Problem With '{ }' Pin
Gareth H19-May-08 6:01
Gareth H19-May-08 6:01 
AnswerRe: Problem With '{ }' Pin
Peter Vertes19-May-08 6:06
Peter Vertes19-May-08 6:06 
AnswerRe: Problem With '{ }' Pin
#realJSOP19-May-08 6:37
mve#realJSOP19-May-08 6:37 
QuestionFile.WriteAllBytes and File.ReadAllBytes Pin
Ian Uy19-May-08 5:10
Ian Uy19-May-08 5:10 
AnswerRe: File.WriteAllBytes and File.ReadAllBytes Pin
User 665819-May-08 5:41
User 665819-May-08 5:41 
GeneralRe: File.WriteAllBytes and File.ReadAllBytes Pin
Ian Uy19-May-08 5:43
Ian Uy19-May-08 5:43 
GeneralRe: File.WriteAllBytes and File.ReadAllBytes Pin
User 665819-May-08 5:53
User 665819-May-08 5:53 
GeneralRe: File.WriteAllBytes and File.ReadAllBytes Pin
Ian Uy19-May-08 5:57
Ian Uy19-May-08 5:57 
AnswerRe: File.WriteAllBytes and File.ReadAllBytes Pin
Adeel Chaudhry19-May-08 5:53
Adeel Chaudhry19-May-08 5:53 
GeneralRe: File.WriteAllBytes and File.ReadAllBytes Pin
Ian Uy19-May-08 5:56
Ian Uy19-May-08 5:56 
GeneralRe: File.WriteAllBytes and File.ReadAllBytes Pin
Adeel Chaudhry19-May-08 8:18
Adeel Chaudhry19-May-08 8:18 
GeneralRe: File.WriteAllBytes and File.ReadAllBytes Pin
Ian Uy19-May-08 8:20
Ian Uy19-May-08 8:20 
GeneralRe: File.WriteAllBytes and File.ReadAllBytes Pin
Ian Uy19-May-08 20:34
Ian Uy19-May-08 20:34 

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.