Hi
I've been relentlessly querying google about this and got nowhere, all I can find is how to do it in VB Script or using LiveWire.
What I want to know is once I've inserted a new record to the database (in this case MS SQL Server), how do I find out the Autogenerated indexing number for that record?
Currently I have:
var adoConnection = Server.CreateObject("ADODB.Connection");
adoConnection.Open("Data Source=***;Database=
***;User Id=***;Password='***'");
var perSQL = "INSERT INTO ... VALUES(...)";
RS = adoConnection.Execute(perSQL);
At this point I need to get the ID of the record inserted and then use it in a second insert procedure.
All Help Much Appreciated!!
Thanks
I've been relentlessly querying google about this and got nowhere, all I can find is how to do it in VB Script or using LiveWire.
What I want to know is once I've inserted a new record to the database (in this case MS SQL Server), how do I find out the Autogenerated indexing number for that record?
Currently I have:
var adoConnection = Server.CreateObject("ADODB.Connection");
adoConnection.Open("Data Source=***;Database=
***;User Id=***;Password='***'");
var perSQL = "INSERT INTO ... VALUES(...)";
RS = adoConnection.Execute(perSQL);
At this point I need to get the ID of the record inserted and then use it in a second insert procedure.
All Help Much Appreciated!!
Thanks