i am trying to access a SQL table from VB6 ..
i have done it many times before using MSRDC and ADODC ..
what is happening is that :
1. in MSRDC after setting up everything , when i finally set the properties of a textbox to read the values into , i select its datasource.
When i try to select datafield , the error is get is
"IM006: [microsoft] [ODBC driver manager] Driver's SQLsetattr failed"
"Data access error"
2. In ADODC , i get the same error when i do test connection....
the only reason i cd figure out is that when i login to SQL , i use
user: scott
pass: tiger
Hoststring: <SID Value during Install>
But for me the hoststring is optional .. if i put it or not, i can still use the same tables....
Pls help !!!!
P>S> the steps i had followed were ..
VB
Components - Microsoft Remote Data Control 6.0
Add the MSRDC on the form
Set : pass , username , SQL
To set Datasource name :
Admin tools - Datasources ODBC
Add - microsoft ODBC for Oracle
Datasourcename - anything
User , server (SID)
Object (text box)
datasource msrdc1
datafield --- > ERROR
i have done it many times before using MSRDC and ADODC ..
what is happening is that :
1. in MSRDC after setting up everything , when i finally set the properties of a textbox to read the values into , i select its datasource.
When i try to select datafield , the error is get is
"IM006: [microsoft] [ODBC driver manager] Driver's SQLsetattr failed"
"Data access error"
2. In ADODC , i get the same error when i do test connection....
the only reason i cd figure out is that when i login to SQL , i use
user: scott
pass: tiger
Hoststring: <SID Value during Install>
But for me the hoststring is optional .. if i put it or not, i can still use the same tables....
Pls help !!!!
P>S> the steps i had followed were ..
VB
Components - Microsoft Remote Data Control 6.0
Add the MSRDC on the form
Set : pass , username , SQL
To set Datasource name :
Admin tools - Datasources ODBC
Add - microsoft ODBC for Oracle
Datasourcename - anything
User , server (SID)
Object (text box)
datasource msrdc1
datafield --- > ERROR