Click here to Skip to main content
15,904,288 members
Home / Discussions / Database
   

Database

 
AnswerRe: Can i add column to the middle of table in sql server. Pin
Eric Dahlvang17-May-06 7:48
Eric Dahlvang17-May-06 7:48 
AnswerRe: Binding Select Query Result into an DataGrid Pin
Paddy Boyd17-May-06 3:45
Paddy Boyd17-May-06 3:45 
QuestionCurrencyManager Pin
ADY00717-May-06 1:28
ADY00717-May-06 1:28 
AnswerRe: Catch Error in SP Pin
Colin Angus Mackay17-May-06 1:19
Colin Angus Mackay17-May-06 1:19 
QuestionGetting last affected row Pin
NICE TO MEET16-May-06 23:53
NICE TO MEET16-May-06 23:53 
AnswerRe: Getting last affected row Pin
Colin Angus Mackay17-May-06 1:23
Colin Angus Mackay17-May-06 1:23 
QuestionRe: Getting last affected row Pin
NICE TO MEET17-May-06 2:42
NICE TO MEET17-May-06 2:42 
AnswerRe: Getting last affected row Pin
Colin Angus Mackay17-May-06 2:52
Colin Angus Mackay17-May-06 2:52 
NICE TO MEET wrote:
Without using any extra query, or SP how will get the last affected row in that table


What is the different to your .NET application by putting two queries into one SqlCommand object? Or adding to the stored procedure the SELECT @@IDENTITY?

cmd.CommandText = "INSERT MyTable(Column1, Column2) VALUES ('ABC', 'DEF'); SELECT @@IDENTITY;";
int primaryKey = (int)cmd.ExecuteScalar();



"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question."
--Charles Babbage (1791-1871)

My: Website | Blog
QuestionMaximum size of XML in OPENXML Pin
NICE TO MEET16-May-06 23:30
NICE TO MEET16-May-06 23:30 
QuestionMultiple column with in keyword Pin
Shajeel16-May-06 23:30
Shajeel16-May-06 23:30 
AnswerRe: Multiple column with in keyword Pin
Paddy Boyd16-May-06 23:44
Paddy Boyd16-May-06 23:44 
QuestionRe: Multiple column with in keyword Pin
Shajeel16-May-06 23:55
Shajeel16-May-06 23:55 
AnswerRe: Multiple column with in keyword Pin
Rana Muhammad Javed Khan17-May-06 0:00
Rana Muhammad Javed Khan17-May-06 0:00 
QuestionRe: Multiple column with in keyword Pin
Shajeel17-May-06 0:10
Shajeel17-May-06 0:10 
AnswerRe: Multiple column with in keyword Pin
Rana Muhammad Javed Khan16-May-06 23:57
Rana Muhammad Javed Khan16-May-06 23:57 
QuestionBulk Update by OPEN XML in SQL 2005 Pin
NICE TO MEET16-May-06 23:28
NICE TO MEET16-May-06 23:28 
QuestionOPEN XML IN SQL 2005 Pin
NICE TO MEET16-May-06 23:27
NICE TO MEET16-May-06 23:27 
QuestionCatch the Error in Stored procedure and through into an DA Class Exception Pin
NICE TO MEET16-May-06 22:11
NICE TO MEET16-May-06 22:11 
AnswerRe: Catch the Error in Stored procedure and through into an DA Class Exception Pin
Colin Angus Mackay16-May-06 22:47
Colin Angus Mackay16-May-06 22:47 
QuestionComparing two tables in SQL Pin
Vishucool16-May-06 20:26
Vishucool16-May-06 20:26 
AnswerRe: Comparing two tables in SQL Pin
Colin Angus Mackay16-May-06 21:46
Colin Angus Mackay16-May-06 21:46 
GeneralRe: Comparing two tables in SQL Pin
Vishucool16-May-06 22:48
Vishucool16-May-06 22:48 
GeneralRe: Comparing two tables in SQL Pin
r.stropek4-Jun-06 6:02
r.stropek4-Jun-06 6:02 
Questionretreiving a perticular column in a table Pin
dayakar_dn16-May-06 20:13
dayakar_dn16-May-06 20:13 
AnswerRe: retreiving a perticular column in a table Pin
Colin Angus Mackay16-May-06 21:47
Colin Angus Mackay16-May-06 21: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.