Establish ODBC connection

S

Steve

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

Thanks

Windows 2000, IIS Version 6
 
2

[ + 2 0 r p 3 ]

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") & ";"
 
S

Steve

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.
 
A

Aaron [SQL Server MVP]

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,158
Messages
2,570,882
Members
47,414
Latest member
djangoframe

Latest Threads

Top