INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Connecting to a database with system DSN

Connecting to a database with system DSN

(OP)
Hi,

I have done a fair bit of database programming with ASP and am now trying to write an application in Visual Basic 2008 (Express Edition).

The problem is that I am having difficulty with some very basic questions but most importantly

Is it possible to connect to a database using a system DSN that I have got set up on my computer?  In vbscript I can create a connection object and then say

DB.Open "MYDSN"

Visual Basic does not seem to be completely clear on how to do this.

Thanks very much

Ed

RE: Connecting to a database with system DSN

In VB6, it's done with an ADO connection object, which I'm sure is supported in VS2K8 (haven't dabbled with it yet though). It's pretty simple if you decide to try - just do a help search on "ADO Connection" or somesuch.

"Don't be irreplaceable. If you can't be replaced, you can't be promoted."
 

RE: Connecting to a database with system DSN

You need to use ADO.NET. It's easy to connect, but then what are you going to do with the connection? BTW, no need to use a DSN. You can make a direct connection to the database once you know how to set up the proper parameters.

"I think we're all Bozos on this bus!" - Firesign Theatre jester

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close