Solved

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

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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

690 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