?
Solved

What is the best way to connect to a SQL 2000 Database.

Posted on 2004-10-19
2
Medium Priority
?
236 Views
Last Modified: 2010-04-24
I am building a project to give end users access to a SQL database so that they can do updates, inserts, and ect..

I am use to writing ASP and not as familiar with VB.net.  Usually I connect using ADODB object.  But I know that VB.net give you the option to connect with OdbcConnection or OleDbConnection object.

My project has multiple forms and is using a lot of Stored Procedure and some inline SQL in my code.

So what would be the best way to connect and be able to use that connection through out the project?  And if using the VB connection object is the best way to go, then what would be a good link or resource on using these objects?

I hope that this is not too much of a newbie question.

Thanks for any advice.
0
Comment
Question by:GabicusC
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Accepted Solution

by:
eozz_2000 earned 900 total points
ID: 12352990
Well, I'd do the following:

-Create a new instance of a sqlConnection object in a module of your project.
-In the first form of your proyect you open the connection.
-Whenever you are going to use a connection, set the connection property of the objects to your module connection.
0
 
LVL 19

Expert Comment

by:arif_eqbal
ID: 12355052
Use SQLConnection object it is fater compared to ODBC and OLEDB because it natively connects to SQL Server

Look at

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsse/html/VWD_SSE.asp

0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question