Dot Net Solvents
Wednesday, 7 July 2010
GETTING ID OF INSERTED ROW
In DB.GetData(select) is executed new SqlDataAdapter(Select, dbConnection).Fill(table)
DataTable table
=
DB.
GetData
(
@"INSERT INTO [table_name] VALUES(values) SELECT id = SCOPE_IDENTITY()"
)
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment