 |
| Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

October 1st, 2004, 06:31 AM
|
|
Authorized User
|
|
Join Date: Aug 2004
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Ingres connection
Can anybody guide me, how to connect a asp program with INGRES Database.
I had tried with following code:
str_datasource="Provider=MSDASQL.1;DRIVER=Ingres 3.0;SRVR=PM;DB=dbs_test;Persist Security Info=False;uid=Administrator;pwd=12345678;SELECTLO OPS=N;Extended Properties=""SERVER=PM;DATABASE=dbs_test;SERVERTYP E=INGRES"""
Dim obj_con
SET obj_con = SERVER.CreateObject("ADODB.Connection")
obj_con.open str_datasource
But It showed up following error.
Error Type:
Provider (0x8000FFFF)
Catastrophic failure
/test/test_connection.asp, line 17
__________________
Shibu Narayanan
Software Associates
|
|

October 1st, 2004, 07:56 AM
|
|
Authorized User
|
|
Join Date: Sep 2004
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Shibu
its a problem with Microsoft SQL Server ODBC driver (Sqlsrv32.dll) . I would recommend that you upgrade to the latest MDAC version which should solve your problems. Or you could Revert back to an earlier SQL ODBC driver or even use
the SQL Server native provider (Sqloledb.dll) instead.
Cheers
DJWright
|
|

October 1st, 2004, 08:03 AM
|
|
Authorized User
|
|
Join Date: Aug 2004
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
DJWright
Thanks for your reply.
I have got MDAC 2.8 already installed in my system.
please suggest, if there exist any newer version for MDAC.
Shibu
|
|

October 1st, 2004, 08:55 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Check if this works.
Code:
"Provider=MSDASQL.1;DRIVER=Ingres;SRVR=xxxxx;DB=xxxxx;Persist Security
Info=False;uid=xxxx;pwd=xxxxx;SELECTLOOPS=N;Extended
Properties="""SERVER=xxxxx;DATABASE=xxxxx;SERVERTYPE=INGRES""
Refer Connection strings
There seems to be difference in quotes usages in the last line of connectonstring from the one you posted with that of the one I find in that link posted above. I haven't used this before, so I am not sure if that is the cause for this error.
Though you can take a look at this which is similar to what DJWright suggested.
0x8000FFFF "Catastrophic failure" Message with SQL Server ODBC Driver
Hope that helps.
Cheers!
_________________________
- Vijay G
Strive for Perfection
|
|

October 1st, 2004, 09:00 AM
|
|
Authorized User
|
|
Join Date: Sep 2004
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
you have the latest MDAC installed, emmm... let me think... Has this problem only recently happend??? what is happening on line 17?? ie what code??? is when your trying to open a recordset ??? is it poss u could post the code up until line 17??? can u connect to other data stores???
after looking at your connection string, just double check that all of ur params are right, ie. password / uid etc..
Try taking out the 3.0 from the driver i.e
str_datasource ="Provider=MSDASQL.1;DRIVER=Ingres;SRVR=PM;DB=dbs_ test;Persist Security Info=False;uid=XXXX;pwd=XXXXX;SELECTLOOPS=N;Extend ed Properties=""SERVER=xxxxx;DATABASE=xxxxx;SERVERTYP E=INGRES"""
where XXXX is your values
Cheers
DJWright
|
|

October 2nd, 2004, 12:46 AM
|
|
Authorized User
|
|
Join Date: Aug 2004
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Thanks Wright
Code at line No 17 is :
obj_con.open str_datasource
I have tried almost all combinations with the connection string.
I have got no problem while accessing a sql server database.
Shibu
|
|

October 2nd, 2004, 05:56 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Shibu,
Was that solved? If so what was that you were missing? Can you post your connection string that finally worked?
Cheers!
_________________________
- Vijay G
Strive for Perfection
|
|

October 3rd, 2004, 11:31 PM
|
|
Authorized User
|
|
Join Date: Aug 2004
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hai vijay.
Thanks for your interest.
But I am still in search of a solution.
Shibu
|
|
 |