Problem Accessing SQL Database

G

Guest

Hi,

I am facing a problem accessing SQL Server using WindowsAuthentication. One
Sharepoint application development team need a webpart to access one SQL
Server Database using a service account (Windows Authentication). Due to
company policy, SQL authentication is not allowed. When a user uses the web
page with the Webpart, it should connect to the Database using this Windows
Service Account and pull the data for display. When the connection string is
composed with Windows Authentication with Windows Authentication, access
denied error pops up. Any work around for any user to use this Windows
Account to access the database for any logged in user ? Thanks

Suhas
 
G

Guest

Hi,

Thanks for the providing the help. I would like to know whether it is
possible to execute only one block of code using Windows Authentication - I
mean with the service account ? I am not sure whether the existing settings
for ASP.NET account will be allowed to change.

Thanks
Suhas
 
W

Wessel Troost

Thanks for the providing the help. I would like to know whether it is
possible to execute only one block of code using Windows Authentication
- I
mean with the service account ? I am not sure whether the existing
settings
for ASP.NET account will be allowed to change.
That is possible (though not easy) with impersonation. According to the
documentation it works properly on Windows XP or 2003, but doesn't work on
Windows 2000.

See the following linkg for more details:
http://msdn.microsoft.com/library/d...cipalWindowsIdentityClassImpersonateTopic.asp

Greetings,
Wessel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top