Solved

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

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

757 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now