A
Andy Sze
Hi,
When add a DataAdapter via design mode, Visual Studio auto add SELECT follows
the INSERT command.
Here is the sample of Chapter 4 - <ADO.NET Step by Step> .
I delete the SELECT command, it also work. Why ?
Thanks.
----------------------------------------------------------------
INSERT INTO Categories
(CategoryName, Description)
VALUES (@CategoryName, @Description);
SELECT CategoryID, CategoryName, Description
FROM Categories
WHERE (CategoryID = @@IDENTITY)
When add a DataAdapter via design mode, Visual Studio auto add SELECT follows
the INSERT command.
Here is the sample of Chapter 4 - <ADO.NET Step by Step> .
I delete the SELECT command, it also work. Why ?
Thanks.
----------------------------------------------------------------
INSERT INTO Categories
(CategoryName, Description)
VALUES (@CategoryName, @Description);
SELECT CategoryID, CategoryName, Description
FROM Categories
WHERE (CategoryID = @@IDENTITY)