I am trying to connect to a remote SQL Server 2000 database using ASP.NET. This is my connection string
"Server=LOL-DEV;Database=Livelink;User ID=sa;Password=xxx;Trusted_Connection=False"
With this I get 'access denied or sql server doesn't exist'. If I use exactly the same code in a WinForms app, the connection works OK.
Does anyone have any idea why this might be?
Cheers
JamesI figured it out. You need to have
<identity impersonate="true" /
in your web.config
No comments:
Post a Comment