skumar_1
13 years agoNew Contributor
Unable to execute a query
Hi,
I have the below code in my scripts which is establish a connection with db and execute a query.
var Qry
Qry = ADO.CreateADOQuery()
Qry.ConnectionString = "Provider=MSDAORA.1;User ID=<username>;Password=<password>;Data Source=<dsn name>;Persist Security Info=False"
Qry.SQL = "Select * FROM <table name> WHERE <column name> = 2"
Qry.Open()
I am getting an JScript runtime error "Data type is not supported". Could any of you help to overcome this error?
I have the below code in my scripts which is establish a connection with db and execute a query.
var Qry
Qry = ADO.CreateADOQuery()
Qry.ConnectionString = "Provider=MSDAORA.1;User ID=<username>;Password=<password>;Data Source=<dsn name>;Persist Security Info=False"
Qry.SQL = "Select * FROM <table name> WHERE <column name> = 2"
Qry.Open()
I am getting an JScript runtime error "Data type is not supported". Could any of you help to overcome this error?