Wrox Programmer Forums
|
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
 
Old October 1st, 2004, 06:31 AM
Authorized User
 
Join Date: Aug 2004
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
 
Old October 1st, 2004, 07:56 AM
Authorized User
 
Join Date: Sep 2004
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
 
Old October 1st, 2004, 08:03 AM
Authorized User
 
Join Date: Aug 2004
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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




 
Old October 1st, 2004, 08:55 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

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
 
Old October 1st, 2004, 09:00 AM
Authorized User
 
Join Date: Sep 2004
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
 
Old October 2nd, 2004, 12:46 AM
Authorized User
 
Join Date: Aug 2004
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

 
Old October 2nd, 2004, 05:56 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

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
 
Old October 3rd, 2004, 11:31 PM
Authorized User
 
Join Date: Aug 2004
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hai vijay.

 Thanks for your interest.
 But I am still in search of a solution.

Shibu






Similar Threads
Thread Thread Starter Forum Replies Last Post
open connection in another connection adityamadisetty SQL Server 2000 1 May 4th, 2006 04:56 AM
Connection zaeem Dreamweaver (all versions) 1 May 1st, 2005 04:57 AM
Connection Help morpheus Classic ASP Basics 2 February 3rd, 2005 09:09 AM
Connecting to Ingres II n_nikhar ADO.NET 0 June 29th, 2004 08:38 AM
connection alihussein3 Javascript How-To 1 September 8th, 2003 08:56 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.