Re: Impersonation with VB.net 2.0 and SQL 2000 help needed
- From: "Norman Yuan" <NotReal@xxxxxxxxxxx>
- Date: Sun, 23 Apr 2006 10:00:37 -0700
What type of you app is, Win form or ASP.NET?
In either case, if the DBA only allows Windows Security on the SQL Server,
then you have to know which Windows user account is running your app. If it
is Win form app, the logged in use is the user account that runs your app
(unless you use "RUNAS" command and supply different user credential). So,
if that user has appropriate access to the SQL Server, your app would run as
expected. If he does not have sufficient access, that is good, this is what
security is meant to. Have someone else who has access privilege to run the
app, not the ones who are not supposed to. Also, with .NET Configuration
applet, you can manipulate .NET app/code security on the computer where your
app runs
If it is ASP.NET, the user account running your ASP.NET app may not be (by
default) the user who open a web browser and navigate to your app on a web
server. You must know, as developer, which account is used to run the
ASP.NET app in order to give the account proper access to required resource,
such as SQL Server. Impersonation is one of the option.
However, for some reason, you have to use SQL Server security, not Windows
security, while the DBA does not accept it, then it is only between you two
to make compromise, nothing can help.
"Backwards" <Andrew@xxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:1145762811.962778.113820@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hey everybody
I'm having a little trouble getting access to a few commands in our 65
odd SQL databases.
Have had a chat to our DBA's and they wont give my windows account
access and they also wont give me a SQL login in order to run these
tasks. :-(
The good news is that i do have access to run these certian tasks as
another NT user.
The bad news is i cant add this to my connection string.
The lovely people at Microsoft talked about using Impersonation?
Would this work and how would i go about using this with VB.net 2.0
(visual studio 20005)
Any help on this would be great,
Andy
.
- Follow-Ups:
- Re: Impersonation with VB.net 2.0 and SQL 2000 help needed
- From: Backwards
- Re: Impersonation with VB.net 2.0 and SQL 2000 help needed
- References:
- Impersonation with VB.net 2.0 and SQL 2000 help needed
- From: Backwards
- Impersonation with VB.net 2.0 and SQL 2000 help needed
- Prev by Date: DataBound DropDown List
- Next by Date: Re: Select where in
- Previous by thread: Re: Impersonation with VB.net 2.0 and SQL 2000 help needed
- Next by thread: Re: Impersonation with VB.net 2.0 and SQL 2000 help needed
- Index(es):
Relevant Pages
|
|