Click here to Skip to main content
16,013,642 members
Home / Discussions / Database
   

Database

 
AnswerRe: "Bulk Insert" for Sybase? Pin
Andy Harman18-Oct-04 7:24
Andy Harman18-Oct-04 7:24 
GeneralLoading Excel to DataSet Pin
leszekwlodarski15-Oct-04 0:21
leszekwlodarski15-Oct-04 0:21 
GeneralRe: Loading Excel to DataSet Pin
Mike Ellison16-Oct-04 2:32
Mike Ellison16-Oct-04 2:32 
GeneralRe: Loading Excel to DataSet Pin
leszekwlodarski17-Oct-04 23:32
leszekwlodarski17-Oct-04 23:32 
GeneralAsscess and linked tables Pin
Jerome Conus14-Oct-04 20:52
Jerome Conus14-Oct-04 20:52 
GeneralRe: Asscess and linked tables Pin
Mike Ellison16-Oct-04 2:43
Mike Ellison16-Oct-04 2:43 
GeneralInsert record using DataReader Pin
Anonymous14-Oct-04 11:46
Anonymous14-Oct-04 11:46 
GeneralRe: Insert record using DataReader Pin
Colin Angus Mackay14-Oct-04 23:30
Colin Angus Mackay14-Oct-04 23:30 
If you are accessing the newly inserted ID via an OUT parameter then you would use SqlCommand.ExecuteNonQuery().

You could alterantively return the newly inserted ID via a select statement and use a data reader if you want to. e.g. After the insert in your stored procedure you would put
SELECT @@IDENTITY As Identity
and you could retrieve that single value using a DataReader, but that is really a bit reduntant because that is what SqlCommand.ExecuteScalar() does for you anyway.


Do you want to know more?


Vogon Building and Loan advise that your planet is at risk if you do not keep up repayments on any mortgage secured upon it. Please remember that the force of gravity can go up as well as down.
GeneralRe: Insert record using DataReader Pin
Anonymous15-Oct-04 3:51
Anonymous15-Oct-04 3:51 
GeneralException with SQL connection Pin
Steven M Hunt14-Oct-04 4:07
Steven M Hunt14-Oct-04 4:07 
GeneralRe: Exception with SQL connection Pin
Colin Angus Mackay14-Oct-04 4:55
Colin Angus Mackay14-Oct-04 4:55 
GeneralDisable Auto Ansi to OEM Pin
Its due when13-Oct-04 18:26
Its due when13-Oct-04 18:26 
Generalsearch for a specific string in a stored procedure Pin
its_skar13-Oct-04 11:29
its_skar13-Oct-04 11:29 
GeneralRe: search for a specific string in a stored procedure Pin
Christian Graus14-Oct-04 10:04
protectorChristian Graus14-Oct-04 10:04 
GeneralRe: search for a specific string in a stored procedure Pin
its_skar14-Oct-04 13:43
its_skar14-Oct-04 13:43 
GeneralRe: search for a specific string in a stored procedure Pin
Grimolfr15-Oct-04 7:29
Grimolfr15-Oct-04 7:29 
GeneralRe: search for a specific string in a stored procedure Pin
Christian Graus17-Oct-04 9:46
protectorChristian Graus17-Oct-04 9:46 
GeneralDisable ODBC default settings Pin
Its due when12-Oct-04 20:30
Its due when12-Oct-04 20:30 
GeneralRe: Disable ODBC default settings Pin
Mike Dimmick13-Oct-04 12:38
Mike Dimmick13-Oct-04 12:38 
Generalregd MSSQL database connection Pin
Anonymous12-Oct-04 18:55
Anonymous12-Oct-04 18:55 
GeneralRe: regd MSSQL database connection Pin
Colin Angus Mackay12-Oct-04 23:54
Colin Angus Mackay12-Oct-04 23:54 
QuestionHelp! Using a Palm III as a network conn.? Pin
...---...12-Oct-04 6:06
...---...12-Oct-04 6:06 
AnswerRe: Help! Using a Palm III as a network conn.? Pin
Christian Graus14-Oct-04 10:11
protectorChristian Graus14-Oct-04 10:11 
GeneralAddNew(); Pin
Stgt12-Oct-04 4:11
Stgt12-Oct-04 4:11 
GeneralRe: AddNew(); Pin
Stgt13-Oct-04 22:48
Stgt13-Oct-04 22:48 

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.