Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Problem on Asp ODBC Connection to SQL Server
Dear All,

I have problem on data connection to a SQL Server by Asp Statement.
It's Very strange that my asp statement can connect to one remote SQL server
but can't connect to other remote SQL server.
The statement written like this :

Set DBLBX=Server.CreateObject("ADODB.Connection")
DBLBX.Open "DSN=DBWEB;UID=opn;PWD=opn;"

It show the follows:

Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Driver Manager] Data source name not found and no default
driver specified

Is that the problem of my Sql server ?

Thanks all.





Report this thread to moderator Post Follow-up to this message
Old Post
EDDIE
12-27-04 01:55 PM


Re: Problem on Asp ODBC Connection to SQL Server
EDDIE wrote:
> Dear All,
>
> I have problem on data connection to a SQL Server by Asp Statement.
> It's Very strange that my asp statement can connect to one remote SQL
> server but can't connect to other remote SQL server.
> The statement written like this :
>
> Set DBLBX=Server.CreateObject("ADODB.Connection")
> DBLBX.Open "DSN=DBWEB;UID=opn;PWD=opn;"
>
> It show the follows:
>
> Microsoft OLE DB Provider for ODBC Drivers error '80004005'
> [Microsoft][ODBC Driver Manager] Data source name not found and no
> default driver specified
>
> Is that the problem of my Sql server ?
>
> Thanks all.

Part of the problem is that you are using the obsolete ODBC provider when
there is a perfectly good native sql server provider available (SQLOLEDB).
See http://www.aspfaq.com/show.asp?id=2126

Also relevant is this article, which is a compendium of all the causes of
database-related 80004005 errors:
http://www.aspfaq.com/show.asp?id=2009

Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"



Report this thread to moderator Post Follow-up to this message
Old Post
Bob Barrows [MVP]
12-27-04 08:55 PM


Re: Problem on Asp ODBC Connection to SQL Server
Many thanks.
I have solved it by using OLEDB.
Thx ^^
"Bob Barrows [MVP]" <reb01501@NOyahoo.SPAMcom> ¦b¶l¥ó
news:%23NmXdNB7EHA.3120@TK2MSFTNGP12.phx.gbl ¤¤¼¶¼g...
> EDDIE wrote: 
>
> Part of the problem is that you are using the obsolete ODBC provider when
> there is a perfectly good native sql server provider available (SQLOLEDB).
> See http://www.aspfaq.com/show.asp?id=2126
>
> Also relevant is this article, which is a compendium of all the causes of
> database-related 80004005 errors:
> http://www.aspfaq.com/show.asp?id=2009
>
> Bob Barrows
> --
> Microsoft MVP - ASP/ASP.NET
> Please reply to the newsgroup. This email account is my spam trap so I
> don't check it very often. If you must reply off-line, then remove the
> "NO SPAM"
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
EDDIE
12-27-04 08:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

ASP archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 08:21 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.