Solved

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

Posted on 2004-10-19
2
226 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 300 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

Technology Partners: 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

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

749 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