Hi again!
Ahh, yes - Response.End and ASP. But I write a client-side script, I use only JavaScript. This side should run on every machine with sql server on it, an webserver like IIS is not installed.
But I have managed the problem:
var con = new ActiveXObject("ADODB.Connection")...
Is there another solution? I think it's better to change the code, not the security settings from the browser. My script is running on several machines - so every machine must change this settings - it's not the best way I think.
Hello.
I have a JavaScript in a HTML page with two COM objects (ActiveX controls) - ADODB.Connection and WScript.Network.
One to get the hostname of the machine and one to make database actions.
If I open the browser to run this page and the script inside a message box comes up - "One...
@vbkris
The same return value after I've remove the "\" in the statement. Records are still "-1".
@kaht
I run the Query Analyzer after and before the javascript (for testing) - same effect. The database exists definitly.
But I don't understand the "Response.End"...
Hello.
I need to get the number of rows from a recordset. I use the "RecordCount" property of the Recordset object, but the number is -1 even though in MS Query Analyzer the number of records is 1.
Here my JavaScript code:
var con = new ActiveXObject("ADODB.Connection")...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.