You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 18, 2020. It is now read-only.
I'm not sure if this is an issue or simply an error on my end. I have the driver installed correctly and I'm trying to run a query against an (empty) SQLAzure table. Here is my code:
varsql=require('node-sqlserver');varserver="... my azure connection string ..."sql.open(server,function(err,conn){if(err){console.dir(err);}else{console.dir(conn);conn.query('select * from mytable',function(err,results){console.dir(results);});}});
When I run this, I get this error:
C:\devtools\temp2\node_modules\node-sqlserver\lib\sql.js:8413: Uncaught TypeError: Object #<Connection> has no method 'queryRaw'
However, (a) when I print out the "conn" object it does show a queryRaw method and (b) when I change my "conn.query(...)" call to "conn.queryRaw(...)" it works.
Am I doing something wrong here that would cause this error? Any help is appreciated!
The text was updated successfully, but these errors were encountered:
I'm not sure if this is an issue or simply an error on my end. I have the driver installed correctly and I'm trying to run a query against an (empty) SQLAzure table. Here is my code:
When I run this, I get this error:
However, (a) when I print out the "conn" object it does show a queryRaw method and (b) when I change my "conn.query(...)" call to "conn.queryRaw(...)" it works.
Am I doing something wrong here that would cause this error? Any help is appreciated!
The text was updated successfully, but these errors were encountered: