473,397 Members | 2,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

ODBC question

hi,

this may be a bit long, but i want to make sure i explain my questions. (aka, not real experienced
with visual studio.net)

i'm using visual studio.net 2003 (visual basic.net and crystal reports.net in particular).

i know that you have to have an odbc connection for the database that you will use with your
application.

what i don't understand is if you need to just have the "type" of data source - like excel, access,
foxpro set up on the first tab (user dsn) of the odbc data source administrator dialog box.

by default, when windows is installed are certain data source types set up automatically?

i ask because i'm walking through some tutorials for crystal.net and one had me set up a connection
on the system dsn tab and the actual ms access database name is there and the other tutorial did not
have me go into this odbc data source dialog box at all, yet i am still able to get to the database
when creating the reports.

is there a benefit to setting up the database on the system dsn tab? if so, what is it?

thanks
indera

Jul 21 '05 #1
3 3000
On Tue, 23 Sep 2003 00:33:06 -0400, "Dr. Indera" <dr*******@verizon.net> wrote:

¤ hi,
¤
¤ this may be a bit long, but i want to make sure i explain my questions. (aka, not real experienced
¤ with visual studio.net)
¤
¤ i'm using visual studio.net 2003 (visual basic.net and crystal reports.net in particular).
¤
¤ i know that you have to have an odbc connection for the database that you will use with your
¤ application.
¤
¤ what i don't understand is if you need to just have the "type" of data source - like excel, access,
¤ foxpro set up on the first tab (user dsn) of the odbc data source administrator dialog box.
¤
¤ by default, when windows is installed are certain data source types set up automatically?
¤
¤ i ask because i'm walking through some tutorials for crystal.net and one had me set up a connection
¤ on the system dsn tab and the actual ms access database name is there and the other tutorial did not
¤ have me go into this odbc data source dialog box at all, yet i am still able to get to the database
¤ when creating the reports.
¤
¤ is there a benefit to setting up the database on the system dsn tab? if so, what is it?

About the only benefits are that you remove the actual connection information from your code and
it's easier to change data source connection information on the fly.

DSNs are holdovers from the ODBC era. Connections nowadays are typically DSN-less, using OLEDB and
the native .NET providers, which can be complimented using UDL or configuration file based
connection information techniques.
Paul ~~~ pc******@ameritech.net
Microsoft MVP (Visual Basic)
Jul 21 '05 #2
hi paul,

i thank you for your reply, but because i'm on the new side to this, i don't understand what you said.
if one opens the dsn dialog box and sees the microsoft access data source type listed, do you still have
to create a connection to the actual database that you will use in your visual basic.net project?

thanks
indera
Paul Clement wrote:
On Tue, 23 Sep 2003 00:33:06 -0400, "Dr. Indera" <dr*******@verizon.net> wrote:

¤ hi,
¤
¤ this may be a bit long, but i want to make sure i explain my questions. (aka, not real experienced
¤ with visual studio.net)
¤
¤ i'm using visual studio.net 2003 (visual basic.net and crystal reports.net in particular).
¤
¤ i know that you have to have an odbc connection for the database that you will use with your
¤ application.
¤
¤ what i don't understand is if you need to just have the "type" of data source - like excel, access,
¤ foxpro set up on the first tab (user dsn) of the odbc data source administrator dialog box.
¤
¤ by default, when windows is installed are certain data source types set up automatically?
¤
¤ i ask because i'm walking through some tutorials for crystal.net and one had me set up a connection
¤ on the system dsn tab and the actual ms access database name is there and the other tutorial did not
¤ have me go into this odbc data source dialog box at all, yet i am still able to get to the database
¤ when creating the reports.
¤
¤ is there a benefit to setting up the database on the system dsn tab? if so, what is it?

About the only benefits are that you remove the actual connection information from your code and
it's easier to change data source connection information on the fly.

DSNs are holdovers from the ODBC era. Connections nowadays are typically DSN-less, using OLEDB and
the native .NET providers, which can be complimented using UDL or configuration file based
connection information techniques.

Paul ~~~ pc******@ameritech.net
Microsoft MVP (Visual Basic)


Jul 21 '05 #3
On Tue, 23 Sep 2003 14:33:33 -0400, "Dr. Indera" <dr*******@verizon.net> wrote:

¤ hi paul,
¤
¤ i thank you for your reply, but because i'm on the new side to this, i don't understand what you said.
¤ if one opens the dsn dialog box and sees the microsoft access data source type listed, do you still have
¤ to create a connection to the actual database that you will use in your visual basic.net project?
¤

I guess the short answer is no. You can (and should) create connections to a Microsoft Access
database without using a DSN.

Typically you don't use a DSN for a Microsoft Access database because that implies you're using
ODBC. The preferred database provider for Microsoft Access is Jet OLEDB.

You can use the Server Explorer in VS.NET to create connections to a Microsoft Access database using
Jet OLEDB Provider.
Paul ~~~ pc******@ameritech.net
Microsoft MVP (Visual Basic)
Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: simianphile | last post by:
OK, I had a problem that I've now fixed but I can't really understand what was causing it in the first place. I have an intranet site that uses basic authentication to allow users to view and...
4
by: Kong Li | last post by:
Environments: 1. WinXP SP1, MDAC 2.7 SP1 (Microsoft ODBC for Oracle is 2.573.9030.0), Oracle client 9.2.0.1. 2. Win2000 SP4, MDAC 2.7 SP1 (Microsoft ODBC for Oracle is 2.573.9030.0), Oracle...
6
by: Andreas Lauffer | last post by:
I changed from Access97 to AccessXP and I have immense performance problems. Details: - Access XP MDB with Jet 4.0 ( no ADP-Project ) - Linked Tables to SQL-Server 2000 over ODBC I used...
3
by: Lee | last post by:
Hi, I'm developing a socket program to connect to Informix database through the ODBC. In here i called my socket program as "tap" . My tap will listen for data from unix through port 1070. After...
8
by: Philip Wright | last post by:
I am trying to connect to a DB2 v7.2 database from Lotus 123 v9.8 on a Windows XP Pro machine. I have the Software Development Client installed on the XP machine and have run the Client...
4
by: Andreas Lauffer | last post by:
Can anyone tell me advantages / disadvantages of DataDirect Server Wire ODBC-driver? Any experiences? What about redistribution? Andreas Lauffer, easySoft. GmbH, Germany
5
by: Alec | last post by:
Hi All, I am currently trying to link in Access 97 to a table in a MSSQL 7 server. Initially the link is fine, however, when I close the access database and re-open it from the same network...
2
by: Beda Christoph Hammerschmidt | last post by:
MySQL, Access, ODBC, Replication Hello, i have a central mysql database that is accesed by multiple clients running MS Access with ODBC. This works fine if Access has a permanent connection...
1
by: Thijs | last post by:
Hi, i'm new to db2, so the answer on this question is maybe verry simple (or not)... i've installed db2 on a server, and now, I want to make a connection with odbc from a client (windows...
6
seligerasmus
by: seligerasmus | last post by:
Greetings, I'm having a bit of trouble with a small web service I've been writing, specifically with the connectivity aspect of the service. My scenario is as follows : I'm using the IBM...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.