I have set up an ADO connection to a SQLServer DB in VBScript in an ActiveX Task. What I want to do is return a uniqueidentifier value from this connection directly to a local variable in the script.
The essential parts of my code are as follows:
Dim strSQL, strResult
strSQL = "Select NewId()"
strResult = ADOConnection.Execute strSQL
I get an "expected end of statement" error on the SQL Execute statement.
Is there a way to return a value from the select statement directly to a local variable in the ActiveX script?
The essential parts of my code are as follows:
Dim strSQL, strResult
strSQL = "Select NewId()"
strResult = ADOConnection.Execute strSQL
I get an "expected end of statement" error on the SQL Execute statement.
Is there a way to return a value from the select statement directly to a local variable in the ActiveX script?