Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old February 27th, 2006, 07:45 AM
mingcur@hotmail.com
Guest
 
Posts: n/a
Default Helps Needed FOr ODBC in ASP

hi all, i am currently doing a website in ASP which is using ODBC to
connect the ERP Database in another server . when i run the system in
Winodws9 , it works perfectly, no errors and it may get the data from
the database . But when ic hange to winodws XP , here the problem
comes.

My windowsXP pro is using iis5.1 with sp2. The MDAC version 2.8 . i
cannot get any solution until now ( already 2 weks time ) , even though
i try to searched many forum, websites.

Below is my souce code. i have tried to close the connection fro RS and
Conn, but it still appear the same error.i already give all the
permission by sharing the whole database using simple file sharing .But
it still not working.

Set conn = Server.CreateObject("ADODB.Connection")
conn.open "FILEDSN=C:\Program Files\Common Files\ODBC\Data
Sources\Syspro Local - Co. A.dsn"
set rs=server.createobject("adodb.recordset")
sql="SELECT * from INVMASTER "
rs.open sql,conn11, 1, 2

--------------------------------------------------------------------------------------------------------------------------------------
Error appears

Error Type:
Provider (0x8000FFFF)
Catastrophic failure
/try.asp, line 5

this is 1 of the error. some time it will appear An exception occur (
"rs" ) or error in conn.open
any experts pls help me to solve the problems.

  #2  
Old February 27th, 2006, 08:45 AM
Paxton
Guest
 
Posts: n/a
Default Re: Helps Needed FOr ODBC in ASP


mingcur@hotmail.com wrote:[color=blue]
> hi all, i am currently doing a website in ASP which is using ODBC to
> connect the ERP Database in another server . when i run the system in
> Winodws9 , it works perfectly, no errors and it may get the data from
> the database . But when ic hange to winodws XP , here the problem
> comes.
>
> My windowsXP pro is using iis5.1 with sp2. The MDAC version 2.8 . i
> cannot get any solution until now ( already 2 weks time ) , even though
> i try to searched many forum, websites.
>
> Below is my souce code. i have tried to close the connection fro RS and
> Conn, but it still appear the same error.i already give all the
> permission by sharing the whole database using simple file sharing .But
> it still not working.
>
> Set conn = Server.CreateObject("ADODB.Connection")
> conn.open "FILEDSN=C:\Program Files\Common Files\ODBC\Data
> Sources\Syspro Local - Co. A.dsn"
> set rs=server.createobject("adodb.recordset")
> sql="SELECT * from INVMASTER "
> rs.open sql,conn11, 1, 2
>
> --------------------------------------------------------------------------------------------------------------------------------------
> Error appears
>
> Error Type:
> Provider (0x8000FFFF)
> Catastrophic failure
> /try.asp, line 5
>
> this is 1 of the error. some time it will appear An exception occur (
> "rs" ) or error in conn.open
> any experts pls help me to solve the problems.[/color]

http://www.aspfaq.com/show.asp?id=2323

You've also changed the name of your connection object from conn to
conn11

/P.

 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles