Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5
This is the forum to discuss the Wrox book Beginning Visual Basic 2005 Databases by Thearon Willis; ISBN: 9780764588945
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old October 13th, 2006, 10:52 PM
Registered User
 
Join Date: Apr 2006
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default ODBC DSN connection

Hi,

How can I connect to a Sybase and Oracle Database using the ODBC DSN name.

Thanks.

RGD

Reply With Quote
  #2 (permalink)  
Old December 14th, 2006, 06:28 PM
Registered User
 
Join Date: Dec 2004
Location: Milwaukee, WI, USA.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Connect to Oracle from asp page:
Set oConn = Server.CreateObject("ADODB.Connection")
oConn.Open "Provider=OraOLEDB.Oracle.1;User ID=xxxx;Password=xxxx;Data Source=xxxxxx;"
or
oConn.Open "Driver={Microsoft ODBC for Oracle};Server=xxxxxx;Uid=xxxx;Pwd=xxxx;"
(both worked for me when i used Oracle in OraHome 92 driver to create ODBC)

Reply With Quote
  #3 (permalink)  
Old December 14th, 2006, 06:40 PM
Registered User
 
Join Date: Dec 2004
Location: Milwaukee, WI, USA.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Or sorry, forgot about DSN connection:
oConn.Open "DSN=YourDSN;Uid=xxxx;Pwd=xxxx;"
Microsoft ODBC for Oracle driver was used to create system DSN 'YourDSN'


Reply With Quote
Reply


Thread Tools
Display Modes

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 On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
odbc system dsn problem hope you can help jeremy1048 Access 5 May 9th, 2007 02:19 PM
odbc system dsn problem hope you can help jeremy1048 BOOK: Access 2003 VBA Programmer's Reference 0 May 8th, 2007 12:24 AM
ODBC DSN connection to Oracle Vera Classic ASP Databases 1 December 15th, 2006 10:13 AM
Another ODBC DSN Question reyboy SQL Server 2000 2 June 20th, 2005 08:06 PM
Help Configuring ODBC (DSN) reyboy SQL Language 1 June 10th, 2005 05:25 AM



All times are GMT -4. The time now is 07:56 PM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.