Forum Discussion

dchango's avatar
dchango
New Contributor
2 years ago

Sybase connection from string

Hi community, 

 

I am trying to create a connection with a sybase database but I can't. I need use it to execute update and insert statements.

 

The code I am using to test the connection is the next:

 

var connection = ADO.CreateConnection();
connection.ConnectionString = "Provider=Sybase.ASEOLEDBProvider;Srvr={SERVER_IP};User Id={USER_NAME};Password={PASSWORD}";
connection.Open();

 

 But, when I execute the code, the next error is shown:

JavaScript runtime error.

The specified provider was not found. It may not be installed correctly.

I don't know if it is caused by the connection string or by the driver.

How can I specify the correct connection string? (some one can give me an example?)

And how can I install the driver to do the connection?