Re: How to prevent connection string from user?
From: Dan Guzman (guzmanda_at_nospam-online.sbcglobal.net)
Date: 08/23/04
- Previous message: Sue Hoegemeier: "Re: Does MSSQL service account rights"
- In reply to: KPH: "How to prevent connection string from user?"
- Next in thread: Kevin McDonnell [MSFT]: "Re: How to prevent connection string from user?"
- Reply: Kevin McDonnell [MSFT]: "Re: How to prevent connection string from user?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 23 Aug 2004 08:08:11 -0500
> I 'm developing VB .NET application that access MSDE or SQL server. When I
> need to access DB, I directly send connection string to DB then another
user
> can filter my account and password.
I'm not sure I fully understand your question. You can build the connection
string in your application according to the security context desired. There
is no need to include your userid and password if you want users to connect
with their own security context.
When you want to connect with Windows authentication, specify "Integrated
Security=SSPI" without a userid and password. The current user's Windows
security credentials will be used. An example of such a SqlClient
connection string is "Data Source=MyServer;Initial
Catalog=MyDatabase;Integrated Security=SSPI".
When you want to connect with SQL authentication, the userid and password of
the desired SQL Server login needs to be specified. You can prompt the user
for these values, if needed. A SQL authentication SqlClient connection
string example is "Data Source=MyServer;Initial Catalog=MyDatabase;User
ID=MyLogin;Password=MyPassword".
-- Hope this helps. Dan Guzman SQL Server MVP "KPH" <KPH@discussions.microsoft.com> wrote in message news:031C6158-01CE-4767-B6DD-AD1F7777E0F1@microsoft.com... > Hi all, > > I 'm developing VB .NET application that access MSDE or SQL server. When I > need to access DB, I directly send connection string to DB then another user > can filter my account and password. > Our program use SQL Mix Mode authentication that can use both Windows > authentication and SLQ authentication log on. > I would like to prevent my account and password when I use SQL > authentication log on. > > How possible is it? > > Cheer, > KPH
- Previous message: Sue Hoegemeier: "Re: Does MSSQL service account rights"
- In reply to: KPH: "How to prevent connection string from user?"
- Next in thread: Kevin McDonnell [MSFT]: "Re: How to prevent connection string from user?"
- Reply: Kevin McDonnell [MSFT]: "Re: How to prevent connection string from user?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|