Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Privilege to SQL Server
Message
From
16/10/2006 18:03:07
Keith Payne
Technical Marketing Solutions
Florida, United States
 
 
To
16/10/2006 15:26:27
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01162309
Message ID:
01162345
Views:
14
>In SQL Server, I have created a user for a specific database. In the connection string, I have entered the proper username and password. From a desktop application, I can add new records in one of the table. However, from the Web application, the only way to add a new record is to go in the Web site ASP.NET pane and enter an administrative account in the Application pane for the Identity settings. I would like to avoid that step. Considering that I am defining an account to be used in the connection string, is there a way to avoid doing any setting at the Web site level?

Michel,

In 1.x I store an encrypted connection string in the web.config and unencrypt it in code before assigning the value to the SqlConnection.ConnectionString property. In 2.0 I have heard that there is a new feature for encrypted connection strings in the web.config - and the Application pane sounds like a GUI for the web.config file.

Maybe one of these articles will help:

http://davidhayden.com/blog/dave/archive/2005/11/17/2572.aspx
http://www.ondotnet.com/pub/a/dotnet/2005/02/15/encryptingconnstring.html
http://www.c-sharpcorner.com/UploadFile/DipalChoksi/encconnstr_asp2_dc10042006183135PM/encconnstr_asp2_dc.aspx
http://msdn.microsoft.com/msdnmag/issues/06/05/ExtremeASPNET/
http://www.dotnetbips.com/articles/displayarticle.aspx?id=506
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform