Click here to Skip to main content
15,924,195 members
Home / Discussions / Database
   

Database

 
GeneralRe: Can i add column to the middle of table in sql server. Pin
sharma sanjeev17-May-06 4:40
sharma sanjeev17-May-06 4:40 
GeneralRe: Can i add column to the middle of table in sql server. Pin
Paddy Boyd17-May-06 4:42
Paddy Boyd17-May-06 4:42 
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 
This will still work whether you are using a stored procedure or not. Try it in Query Analyzer and see.


rfebin2001 wrote:
while we insert as a sql command as a string, and use executenonquery method will executed

this scenario how will get the last affected row from a table


I don't understand. Do you mean you want to get value from @@IDENTITY returned to the .NET code that executed the SQL?

You could use SELECT @@IDENTITY and call ExecuteScalar() in the .NET code.


"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
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 
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 

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.