Click here to Skip to main content
16,007,885 members
Home / Discussions / Database
   

Database

 
GeneralRe: SQL Nested queries syntax probs Pin
Michael Potter26-May-04 9:07
Michael Potter26-May-04 9:07 
GeneralRe: SQL Nested queries syntax probs Pin
partt26-May-04 9:36
partt26-May-04 9:36 
GeneralRe: SQL Nested queries syntax probs Pin
Michael Potter26-May-04 9:44
Michael Potter26-May-04 9:44 
GeneralRe: SQL Nested queries syntax probs Pin
partt26-May-04 10:12
partt26-May-04 10:12 
GeneralAttach SQL 2000 mdf on MSDE 2000 Pin
Aryo Handono25-May-04 4:17
professionalAryo Handono25-May-04 4:17 
GeneralRe: Attach SQL 2000 mdf on MSDE 2000 Pin
Hesham Amin25-May-04 23:55
Hesham Amin25-May-04 23:55 
GeneralRe: Attach SQL 2000 mdf on MSDE 2000 Pin
RichardGrimmer26-May-04 4:18
RichardGrimmer26-May-04 4:18 
GeneralNew Row with Id Pin
Anonymous25-May-04 4:15
Anonymous25-May-04 4:15 
I want to insert a row in a table which has a PK in the first field. I make a INSERT and give parameters to the sql server for all fields except the id field which is set in the db as Autoincrement so i dont have to worry about.
ALL of this is working fine.
But now i want to work immediatly after the insert with the new id of this row, which was given to the row automaticly by the sql-server. My problem now is that i have no Idea how to get the id value into my code (sure I can make a select query questioning all the parameters which i still have from the insertcommand, and ask for the id but this way seems very complicated to me!!!)
So if any more experienced Programmer than me can help me, please!!!
10000 Thanks in advanced.
PS
Languages C#, ADO.Net, and Sql Server 2000

best regards helli
GeneralRe: New Row with Id Pin
Michael Potter25-May-04 11:35
Michael Potter25-May-04 11:35 
GeneralProblem about MSDE installation Pin
wk_vigorous25-May-04 0:47
wk_vigorous25-May-04 0:47 
GeneralRe: Problem about MSDE installation Pin
RichardGrimmer26-May-04 4:23
RichardGrimmer26-May-04 4:23 
Generaloptimize this query Pin
varun8025-May-04 0:25
varun8025-May-04 0:25 
GeneralRe: optimize this query Pin
Grimolfr25-May-04 3:31
Grimolfr25-May-04 3:31 
GeneralRe: optimize this query Pin
varun8025-May-04 19:34
varun8025-May-04 19:34 
GeneralRe: optimize this query Pin
Grimolfr26-May-04 4:42
Grimolfr26-May-04 4:42 
Generalquery inside a dataset Pin
fuel2run24-May-04 21:27
fuel2run24-May-04 21:27 
GeneralRe: query inside a dataset Pin
ekolis25-May-04 9:02
ekolis25-May-04 9:02 
GeneralRe: query inside a dataset Pin
fuel2run25-May-04 21:08
fuel2run25-May-04 21:08 
GeneralRe: query inside a dataset Pin
ekolis26-May-04 10:58
ekolis26-May-04 10:58 
GeneralRe: query inside a dataset Pin
fuel2run27-May-04 4:34
fuel2run27-May-04 4:34 
GeneralRe: query inside a dataset Pin
ekolis27-May-04 10:53
ekolis27-May-04 10:53 
GeneralRe: query inside a dataset Pin
fuel2run27-May-04 21:04
fuel2run27-May-04 21:04 
GeneralRe: query inside a dataset Pin
ekolis28-May-04 9:28
ekolis28-May-04 9:28 
GeneralRe: query inside a dataset Pin
fuel2run29-May-04 2:55
fuel2run29-May-04 2:55 
GeneralRe: query inside a dataset Pin
ekolis29-May-04 9:15
ekolis29-May-04 9:15 

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.