Quantcast
Channel: Visual Studio General Questions forum
Viewing all articles
Browse latest Browse all 21115

Visual stidio 2013 with stored procedure and return value via table adapter

$
0
0

I am a novice on VS 2013. For my learning I make a windows client that communicates with a SQL Server database. The database has stored procedures. When I call a procedure that do an insert I would like to get the primary key back to the windows application, but I don't.

I have used a tableadapter in Visual Studio 2013. Insert works very well in the database. I manage to call and execute the stored  procedure, but I don't get any primary key data back. I have used this procedure:http://msdn.microsoft.com/en-us/library/37hwc7kt.aspx

Please tell me if I need any additional code in the tableadapter, and where I should put it.

Regards


Tore


Viewing all articles
Browse latest Browse all 21115

Trending Articles