M
Marc
Hi to the group.
I am at my wits end with this problem. I am working in Visual Web
Developer 2005, .NET 2, C#, MS-Access.
I have created a dataset (xsd) with some datatables in for interacting
with my database tables. I am attempting to create a new insert query
in a table adapter which will return the @@identity value of the newly
inserted column. Everything i have read while researching this problem
states to create a new query on the table adaper containing two sql
statements i.e:
INSERT INTO myTable VALUE (?,?,?,?);
SELECT @@Identity;
however, when i do this the required parameters arent automatically
added to the query method, and then when i enter them manually and run
it i get an OleDbException error of:
"System.Data.OleDb.OleDbException : Characters found after end of SQL
statement."
Am quickly coming to the conclusion that the only way to get round
this is to create my own data access classes as i would with .net 1.1.
Can anyone help me?
Ta!
Marc
I am at my wits end with this problem. I am working in Visual Web
Developer 2005, .NET 2, C#, MS-Access.
I have created a dataset (xsd) with some datatables in for interacting
with my database tables. I am attempting to create a new insert query
in a table adapter which will return the @@identity value of the newly
inserted column. Everything i have read while researching this problem
states to create a new query on the table adaper containing two sql
statements i.e:
INSERT INTO myTable VALUE (?,?,?,?);
SELECT @@Identity;
however, when i do this the required parameters arent automatically
added to the query method, and then when i enter them manually and run
it i get an OleDbException error of:
"System.Data.OleDb.OleDbException : Characters found after end of SQL
statement."
Am quickly coming to the conclusion that the only way to get round
this is to create my own data access classes as i would with .net 1.1.
Can anyone help me?
Ta!
Marc