473,471 Members | 1,716 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

ODBC Conections

hi:
I m trying to generate ODBC connections on the fly with C# in "user
friendly way"
is there any way to bring that connection manager over from office?
or is there a better way?

cheers
Nov 21 '07 #1
6 1375
On Nov 21, 5:01 pm, roundcrisis <roundcri...@gmail.comwrote:
hi:
I m trying to generate ODBC connections on the fly with C# in "user
friendly way"
is there any way to bring that connection manager over from office?
or is there a better way?

cheers
or at least some indications on how to work with odbc, I know how to
use a conection string I just really dont want to rewite a connection
string wizard, there must be somethign out there
cheers
Nov 22 '07 #2
On Nov 22, 10:43 am, roundcrisis <roundcri...@gmail.comwrote:
On Nov 21, 5:01 pm, roundcrisis <roundcri...@gmail.comwrote:
hi:
I m trying to generateODBCconnections on the fly with C# in "user
friendly way"
is there any way to bring that connection manager over from office?
or is there a better way?
cheers

or at least some indications on how to work withodbc, I know how to
use a conection string I just really dont want to rewite a connection
string wizard, there must be somethign out there
cheers
??

Nov 30 '07 #3
On Nov 30, 8:44 am, roundcrisis <roundcri...@gmail.comwrote:
On Nov 22, 10:43 am, roundcrisis <roundcri...@gmail.comwrote:
On Nov 21, 5:01 pm, roundcrisis <roundcri...@gmail.comwrote:
hi:
I m trying to generateODBCconnections on the fly with C# in "user
friendly way"
is there any way to bring that connection manager over from office?
or is there a better way?
cheers
or at least some indications on how to work withodbc, I know how to
use a conection string I just really dont want to rewite a connection
string wizard, there must be somethign out there
cheers

??
What, specifically, are you wanting to know? How to form the ODBC
connection string? How to make a connection using OdbcConnection?
Nov 30 '07 #4
On Nov 30, 3:01 pm, Brian Gideon <briangid...@yahoo.comwrote:
On Nov 30, 8:44 am, roundcrisis <roundcri...@gmail.comwrote:


On Nov 22, 10:43 am, roundcrisis <roundcri...@gmail.comwrote:
On Nov 21, 5:01 pm, roundcrisis <roundcri...@gmail.comwrote:
hi:
I m trying to generateODBCconnections on the fly with C# in "user
friendly way"
is there any way to bring that connection manager over from office?
or is there a better way?
cheers
or at least some indications on how to work withodbc, I know how to
use a conection string I just really dont want to rewite a connection
string wizard, there must be somethign out there
cheers
??

What, specifically, are you wanting to know? How to form the ODBC
connection string? How to make a connection using OdbcConnection?- Hide quoted text -

- Show quoted text -
Well I find really strange the fact that there is no standard default
way to connect using ODBC to handle all this by default and that each
one has to deal with it. leaving that aside
My problem is that when I create a user DSN using ODBCCP32.dll I
have to enter (for a sql server) a username and password
however, when i try to use it or open the conneciton then username and
password is lost and on Open it tries to use the default
authentication and fails
so, baiscally the question is:

How to get a prompt for user name and password only of necessary or is
there any way to create a DSN saying (save my username and password)
of course i cna also do this myself but I would only really be
catching the case for sql server because there may be other
requirements for differnet connecitons string

Thanks
Nov 30 '07 #5
On Nov 30, 9:35 am, roundcrisis <roundcri...@gmail.comwrote:
Well I find really strange the fact that there is no standard default
way to connect using ODBC to handle all this by default and that each
one has to deal with it. leaving that aside
My problem is that when I create a user DSN using ODBCCP32.dll I
have to enter (for a sql server) a username and password
however, when i try to use it or open the conneciton then username and
password is lost and on Open it tries to use the default
authentication and fails
so, baiscally the question is:

How to get a prompt for user name and password only of necessary or is
there any way to create a DSN saying (save my username and password)
of course i cna also do this myself but I would only really be
catching the case for sql server because there may be other
requirements for differnet connecitons string

Thanks
If you don't specify a username and password then usually what happens
is authentication is processed using the credentials of the currently
running process.

If you want to specify a username and password in the connection
string then do the following.

Dsn=<dsn>;Uid=<username>;Pwd=<password>
Nov 30 '07 #6
On Nov 30, 8:01 pm, Brian Gideon <briangid...@yahoo.comwrote:
On Nov 30, 9:35 am, roundcrisis <roundcri...@gmail.comwrote:


Well I find really strange the fact that there is no standard default
way to connect using ODBC to handle all this by default and that each
one has to deal with it. leaving that aside
My problem is that when I create a user DSN using ODBCCP32.dll I
have to enter (for a sql server) a username and password
however, when i try to use it or open the conneciton then username and
password is lost and on Open it tries to use the default
authentication and fails
so, baiscally the question is:
How to get a prompt for user name and password only of necessary or is
there any way to create a DSN saying (save my username and password)
of course i cna also do this myself but I would only really be
catching the case for sql server because there may be other
requirements for differnet connecitons string
Thanks

If you don't specify a username and password then usually what happens
is authentication is processed using the credentials of the currently
running process.

If you want to specify a username and password in the connection
string then do the following.

Dsn=<dsn>;Uid=<username>;Pwd=<password>- Hide quoted text -

- Show quoted text -
sure but thats not required for all dsn types, so that means i ll have
to hard code and a switch to check if i should pop up a user pass
thing for the types I know is requested, if the user installs a new
driver that I didnt code, then this is going to fail
this is why im trying to use something that is out there already :)

Dec 3 '07 #7

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

Similar topics

0
by: Marco Aschwanden | last post by:
Hi - Win2000 - Python 2.3.3 - py2exe 0.5.0 - eGenix Comercial & Base Package I am developing an app using mxODBC. On the home page they say ...
11
by: Wolfgang Kaml | last post by:
Hello All, I have been working on this for almost a week now and I haven't anything up my sleeves anymore that I could test in addition or change.... Since I am not sure, if this is a Windows...
0
by: Kong Li | last post by:
Follow up to this thread, the latest Oracle 9i release 2 patchset (9.2.0.5) fixed the handle count leak problem. The problem is in Oracle client component. Thanks. Kong ----- From: Kong...
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...
4
by: Roger Redford | last post by:
Dear Experts, I'm attempting to marry a system to an Oracle 817 datbase. Oracle is my specialty, the back end mainly, so I don't know much about java or javascript. The system uses javascript...
2
by: Martin | last post by:
It's a naive question, but hopefully that's what the forums are for ! I have data in a SQL Server 2000 database, with an Access 97 front end. This works fine, but at present the OBDC connection...
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
3
by: Lauren Quantrell | last post by:
Maybe a dumb question - I'm new to ODBC. How do I install an Access ..mde file on a user's workstation and create the ODBC connection to the backend SQL Server database without having to go through...
0
by: bazzer | last post by:
hey, im trying to access a microsoft access database from an ASP.NET web application in visual basic 2003.NET. i get the following error when i try running it: Server Error in...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
1
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
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.