string dbConn = "Provider=sqloeldb;data source=Tech;Initial
Catalog=Tech;Integrate Security=SSPI;";
on my page I get this error;
[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access
denied.
and the error is pointing to
mbConn.Open() \\line
amd i missing something or doing something wrong?
--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--
"Mike" <cshar...@sbcglobal.net> wrote in message
news:OZEHSMl9...@TK2MSFTNGP12.phx.gbl...
"Chris Jackson" <chrisjATmvpsDOTorgNOSPAM> wrote in message
news:ulydjSl9...@TK2MSFTNGP10.phx.gbl...
string dbConn = "Provider=sqloeldb;data source=Tech;Initial
Catalog=Tech;user id=username;password=password";
Both options have their advantages and disadvantages. Consider:
- ASPNET gives you access to the database to all the ASP.Net applications
- "user id" gives you different id for the database for every ASP.Net application but stores the pass in clear text in the web.config, unless you perform some custom encryption
In .Net it's possible to change the ASPNET account (in the machine.config) and indicate the password and account (but still in clear text). In .Net 1.1 it's possible to encrypt those in registry. There were some posts on how to accomplish that.
It's possible as well to "impersonate" the ASP.Net account and make it run under different credentials than ASPNET account, which gives you the opportunity to use Windows authentication with ASP.Net/SQL but still passowrd are stored in clear text in web.config.
--
Cezary Nolewajka
mailto:c.nolewajka...@no-sp-am-eh-mail.com
remove all "no-sp-am-eh"s to reply
"Mike" <cshar...@sbcglobal.net> wrote in message news:Oq$%23vXl9D...@tk2msftngp13.phx.gbl...
Provider=sqloLEdb
string dbConn = "Provider=sqloeldb;data source=Tech;Initial
Catalog=Tech;Integrate Security=SSPI;";
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!