Re: How to connect as guest?
From: Tibor Karaszi (tibor_please.no.email_karaszi_at_hotmail.nomail.com)
Date: 11/22/04
- Next message: Malc: "Re: Using Case colum in where clause"
- Previous message: Tibor Karaszi: "Re: Some question about calling to function and refer to another DB and alias"
- In reply to: Tumurbaatar S.: "How to connect as guest?"
- Next in thread: Rand Boyd [MSFT]: "RE: How to connect as guest?"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 22 Nov 2004 12:12:52 +0100
You need to look into what a login is and what a database user is. These are different concepts. A
login allow you to access SQL Server. Then you create a user in each database that the person need
to access for your login. Your connection string specifies the login. And sp_grantdbaccess creates a
guest *user*, but the person still need a login for the SQL Server.
-- Tibor Karaszi, SQL Server MVP http://www.karaszi.com/sqlserver/default.asp http://www.solidqualitylearning.com/ "Tumurbaatar S." <nospam_tumur@magicnet.mn> wrote in message news:eVlE5LG0EHA.1932@TK2MSFTNGP09.phx.gbl... > I tried 2 variants of ADO connection string, but connection fails: > 1. Provider=sqloledb; Network Library=DBMSSOCN; Initial Catalog=Services; > User ID=guest; Data Source=127.0.0.1,1433; > 2. Provider=sqloledb; Network Library=DBMSSOCN; Initial Catalog=Services; > Data Source=127.0.0.1,1433; > > The Services db has guest account created as "EXEC sp_grantdbaccess guest", > but the guest does not have any permissions. > > P.S. I use guest account only to access the db, but just after my > app switches to application role. > > >
- Next message: Malc: "Re: Using Case colum in where clause"
- Previous message: Tibor Karaszi: "Re: Some question about calling to function and refer to another DB and alias"
- In reply to: Tumurbaatar S.: "How to connect as guest?"
- Next in thread: Rand Boyd [MSFT]: "RE: How to connect as guest?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|