473,386 Members | 1,764 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,386 software developers and data experts.

Creating ODBC Data Source automatically?

Hello,

Is there any way to automatically create an ODBC data source if it doesn't
already exist?

I'd like to deploy this program on workstations that I may not have access
to, and don't want to rely on the user for any technical expertise. Is
there any way to do that?

Thanks!
Nov 13 '05 #1
6 6977
How To Create and Remove a DSN in Visual Basic
http://support.microsoft.com/kb/q171146/
Nov 13 '05 #2
On Tue, 30 Aug 2005 14:34:34 GMT, "Jozef" <SP**********@telus.net> wrote:
Hello,

Is there any way to automatically create an ODBC data source if it doesn't
already exist?

I'd like to deploy this program on workstations that I may not have access
to, and don't want to rely on the user for any technical expertise. Is
there any way to do that?

Thanks!


Although you can do that, perhaps, you should use DSNless connections instead.
Nov 13 '05 #3
Steve Jorgensen wrote:
On Tue, 30 Aug 2005 14:34:34 GMT, "Jozef" <SP**********@telus.net> wrote:

Hello,

Is there any way to automatically create an ODBC data source if it doesn't
already exist?

I'd like to deploy this program on workstations that I may not have access
to, and don't want to rely on the user for any technical expertise. Is
there any way to do that?

Thanks!

Although you can do that, perhaps, you should use DSNless connections instead.


Can you describe a DSNless connection, Steve? Is that still ODBC? I
ask because I have a Foxpro DOS table that is SLOW, SLOW, SLOWER than
mollasses if I attempt to link to it via ODBC. In fact, I gave up on
ODBC and FoxPro DOS because it was so terrible. I would have thought
since FoxPro was a MS product, MS could make some of their products work
together....especially a simple database like FoxPro.

Nov 13 '05 #4
Salad,
Carl Prothman has examples of just about every connection string
(DSN-less too) that you can think of. And if one's missing, you could
probably e-mail him...
www.able-consulting.com
there's a whole section on connection strings. a BIG one.

Nov 13 '05 #5
On Tue, 30 Aug 2005 16:28:04 GMT, Salad <oi*@vinegar.com> wrote:
Steve Jorgensen wrote:
On Tue, 30 Aug 2005 14:34:34 GMT, "Jozef" <SP**********@telus.net> wrote:

Hello,

Is there any way to automatically create an ODBC data source if it doesn't
already exist?

I'd like to deploy this program on workstations that I may not have access
to, and don't want to rely on the user for any technical expertise. Is
there any way to do that?

Thanks!

Although you can do that, perhaps, you should use DSNless connections instead.


Can you describe a DSNless connection, Steve? Is that still ODBC? I
ask because I have a Foxpro DOS table that is SLOW, SLOW, SLOWER than
mollasses if I attempt to link to it via ODBC. In fact, I gave up on
ODBC and FoxPro DOS because it was so terrible. I would have thought
since FoxPro was a MS product, MS could make some of their products work
together....especially a simple database like FoxPro.


All a DSNless connectino means is that you use a conneciton string that
includes all teh options explicitly in the string rather than storing them in
a DSN, and referencing the DSN. You're still using the same libraries and
layers, so unfortunately this will not help with your performance issue at
all.
Nov 13 '05 #6
Steve Jorgensen wrote:
On Tue, 30 Aug 2005 16:28:04 GMT, Salad <oi*@vinegar.com> wrote:

Steve Jorgensen wrote:

On Tue, 30 Aug 2005 14:34:34 GMT, "Jozef" <SP**********@telus.net> wrote:

Hello,

Is there any way to automatically create an ODBC data source if it doesn't
already exist?

I'd like to deploy this program on workstations that I may not have access
to, and don't want to rely on the user for any technical expertise. Is
there any way to do that?

Thanks!

Although you can do that, perhaps, you should use DSNless connections instead.


Can you describe a DSNless connection, Steve? Is that still ODBC? I
ask because I have a Foxpro DOS table that is SLOW, SLOW, SLOWER than
mollasses if I attempt to link to it via ODBC. In fact, I gave up on
ODBC and FoxPro DOS because it was so terrible. I would have thought
since FoxPro was a MS product, MS could make some of their products work
together....especially a simple database like FoxPro.

All a DSNless connectino means is that you use a conneciton string that
includes all teh options explicitly in the string rather than storing them in
a DSN, and referencing the DSN. You're still using the same libraries and
layers, so unfortunately this will not help with your performance issue at
all.


Gotcha.
Nov 13 '05 #7

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

Similar topics

1
by: SkunkDave | last post by:
Is there a script anyone has that will automate the addition of an access database to the OBDC datasources in control panel. Thanks
5
by: grondaia | last post by:
Here's my situation: I have an ODBC DSN setup for Timberline Data (An accounting package that uses pervasive.sql) on my sql box. I set up a linked server using the supplied timberline odbc...
0
by: Julia Baresch | last post by:
Everyone, I posted the message below back in February and didn't get any information. I also wasn't able to find any documentation in MS Help, web site, or other groups. I'm posting now with...
0
by: Adrian Schlesinger | last post by:
Here is what happens (Windows 2000): 1. open the ODBC Data Source Administrator 2. go to the System DSN tab 3. then click Add - the Create Data Source screen pops up 4. select Microsoft Access...
1
by: Chris | last post by:
Does anyone know how to programmatically launch the ODBC Data Source Administrator dialog? Thanks.
0
by: Dan Keeley | last post by:
Hi, I have setup an install project for my .net app, and I need to make it add an odbc data source when the software is installed. Unfortunately googling for this is a bit awkward.. Any ideas...
0
by: Phil Haddock | last post by:
Hi, I'm converting an existing Access application to vb.net 2003. The application allows users to select a number of tables from an ODBC data source, and nominate names for each table to use...
2
by: JeffN825 | last post by:
Hello, Thank you in advance for any assistance. I am trying to set up a mail merge from VB6/VBA code with Word 2000 using an ODBC data source (SQL 2000). I have successfully gotten the...
1
by: steven_nospam at Yahoo! Canada | last post by:
I am a UNIX person (not much experience with MS Access) who during a recent upgrade on an IBM RS/6000 server had to convert our system due to an upgrade to a new software revision. The old...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...

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.