HighTechTalks DotNet Forums  

ODBC / ASP.NET Connection - Password in Code

Dotnet Framework (ODBC.net) microsoft.public.dotnet.framework.odbcnet


Discuss ODBC / ASP.NET Connection - Password in Code in the Dotnet Framework (ODBC.net) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
chuckdfoster
 
Posts: n/a

Default ODBC / ASP.NET Connection - Password in Code - 12-15-2004 , 11:19 AM






I have developed an ASP.NET site that uses an ODBC connection to a MS SQL
Server. I have set up the ODBC connection in my web application, but have
to put the password in the properties of the OdbcConnection1. I have been
asked to try and use this ODBC connection without putting my password in the
properties.

Is it possible to set up an ODBC Connection with a user name and password,
and not have to use the password in your code?



Reply With Quote
  #2  
Old   
Kingsley Idehen
 
Posts: n/a

Default Re: ODBC / ASP.NET Connection - Password in Code - 12-15-2004 , 06:41 PM






12/15/2004 11:19:49 AM
chuckdfoster <chuckdfoster (AT) hotmail (DOT) com> wrote in message
<##5LoHs4EHA.1392 (AT) tk2msftngp13 (DOT) phx.gbl>

Quote:
I have developed an ASP.NET site that uses an ODBC connection to a
MS SQL
Server. I have set up the ODBC connection in my web application,
but have
to put the password in the properties of the OdbcConnection1. I
have been
asked to try and use this ODBC connection without putting my
password in the
properties.

Is it possible to set up an ODBC Connection with a user name and
password,
and not have to use the password in your code?
Of Course! But you are going to need a different ADO.NET provider.
Our Multi-Tier ADO.NET Providers allow your password to be saved
outside of the realm of ADO.NET (completely) as this is stored on the
server side (a middle tier application server or DBMS server).
You can obtain our ADO.NET providers for major DBMS engines (and an
alternative ODBC provider) from: http://uda.openlinksw.com/ado.
net/mt/ (for our Multi-Tier product) and http://uda.openlinksw.
com/ado.net/ (for information in general re. our ADO.NET offerings).
Regards,

Kingsley Idehen Weblog: http://www.openlinksw.com/blog/~kidehen
OpenLink Software Web: http://www.openlinksw.com
Universal Data Access & Universal Integration Middleware Providers.


Reply With Quote
  #3  
Old   
Paul Clement
 
Posts: n/a

Default Re: ODBC / ASP.NET Connection - Password in Code - 12-16-2004 , 09:26 AM



On Wed, 15 Dec 2004 10:19:49 -0600, "chuckdfoster" <chuckdfoster (AT) hotmail (DOT) com> wrote:

¤ I have developed an ASP.NET site that uses an ODBC connection to a MS SQL
¤ Server. I have set up the ODBC connection in my web application, but have
¤ to put the password in the properties of the OdbcConnection1. I have been
¤ asked to try and use this ODBC connection without putting my password in the
¤ properties.
¤
¤ Is it possible to set up an ODBC Connection with a user name and password,
¤ and not have to use the password in your code?
¤

You don't need to hard code the user name and password, but you will need to prompt the user for
this information so you can build the connection string before connecting to SQL Server.

The other alternative is to use integrated security (trusted connection). Below are links to
examples using different providers:

http://www.able-consulting.com/dotne...anagedProvider
http://www.able-consulting.com/MDAC/...erForSQLServer
http://www.able-consulting.com/MDAC/...erForSQLServer


Paul ~~~ pclement (AT) ameritech (DOT) net
Microsoft MVP (Visual Basic)

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.