Establish ODBC connection
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > IIS server support > IIS ASP > Establish ODBC connection




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Establish ODBC connection  
Steve


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-29-04 10:55 PM

Anyone know how to establish an ODBC connection
using .asp?  Looking for ideas!

Thanks

Windows 2000, IIS Version 6





[ Post a follow-up to this message ]



    Re: Establish ODBC connection  
[ + 2 0 r p 3 ]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-29-04 10:55 PM

you should be using the newer OLE DB to connect to you db.

example

dim objConn : set objConn = server.createobject("ADODB.connection")
objConn.open  "provider=microsoft.jet.OLEDB.4.0; " & "data source=" &
server.mappath("yourdb.mdb") & ";"


"Steve" <anonymous@discussions.microsoft.com> wrote in message
 news:22b6c01c45e23$8fd60250$a601280a@phx
.gbl...
> Anyone know how to establish an ODBC connection
> using .asp?  Looking for ideas!
>
> Thanks
>
> Windows 2000, IIS Version 6







[ Post a follow-up to this message ]



    Re: Establish ODBC connection  
Steve


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-29-04 10:55 PM

I'd rather not use OLE DB.  My current workspace is setup
on ODBC, and I'd rather not change right now.

If anyone knows using ODBC, please fill me in.



>-----Original Message-----
>you should be using the newer OLE DB to connect to you db.
>
>example
>
>dim objConn : set objConn = server.createobject
("ADODB.connection")
>objConn.open  "provider=microsoft.jet.OLEDB.4.0; "
& "data source=" &
>server.mappath("yourdb.mdb") & ";"
>
>
>"Steve" <anonymous@discussions.microsoft.com> wrote in
message
> news:22b6c01c45e23$8fd60250$a601280a@phx
.gbl... 
>
>
>.
>





[ Post a follow-up to this message ]



    Re: Establish ODBC connection  
Aaron [SQL Server MVP]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-30-04 01:45 AM

> I'd rather not use OLE DB.

Why?

> My current workspace is setup
> on ODBC, and I'd rather not change right now.

This doesn't make any sense.  There is no "workspace" to "setup" in order to
use a DSN-less connection string.  ODBC has been deprecated for a reason!







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:25 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register