Identity

M

Mex

Hi

Is possible to get identity value with SCOPE_IDENTITY()
if i use DataSet, SqlDataAdapter and CommandBuilder?


MyDataRow = MyDataSet.Tables(MyBaseTable).NewRow
MyDataSet.Tables(MyBaseTable).Rows.Add(MyDataRow)

Dim cb As New SqlCommandBuilder(MyDataAdapter)

MyDataAdapter.Update(MyDataSet, MyBaseTable)



With best regards;
Mex
 
M

Mr. Arnold

Mex said:
Hi

Is possible to get identity value with SCOPE_IDENTITY()
if i use DataSet, SqlDataAdapter and CommandBuilder?


MyDataRow = MyDataSet.Tables(MyBaseTable).NewRow
MyDataSet.Tables(MyBaseTable).Rows.Add(MyDataRow)

Dim cb As New SqlCommandBuilder(MyDataAdapter)

MyDataAdapter.Update(MyDataSet, MyBaseTable)

The short answer is no.

But this may work for you.

http://www.vbforums.com/showthread.php?t=352219
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top