Re: Database Visibility and Access

From: BP Margolin (bpmargo@attglobal.net)
Date: 02/22/03


From: "BP Margolin" <bpmargo@attglobal.net>
Date: Sat, 22 Feb 2003 14:53:05 -0500


Manrique,

SQL Server security is a two-part "thing" ... first one needs permission to
just access a SQL Server instance ... which by itself does not necessarily
grant access to any database in that instance, and then one has to have
permissions to access the database itself.

Take a look at the documentation on the sp_change_users_login system stored
procedure. Sounds to me that you just need to execute it in order to have
SQL Server "re-sync" its two levels of security.

You also might consider reading about SQL Server security in the SQL Server
Books Online. The section "Managing Security", and its sub-sections, are
perhaps a good place to begin.

-------------------------------------------
BP Margolin
Please reply only to the newsgroups.
When posting, inclusion of SQL (CREATE TABLE ..., INSERT ..., etc.) which
can be cut and pasted into Query Analyzer is appreciated.

"Manrique Bonet" <mbonet@earthlink.net> wrote in message
news:02a301c2daaa$90e4e290$3001280a@phx.gbl...
> I have a database from a third party vendor given to me by
> my client which I need to access to add new reporting
> functionality. I restored the database from a back up and
> can see everything in the database just fine from SQL
> Enterprise Manager. When I go to access the database from
> SQL Query Analyzer, an ADO Connection or an ODBC
> Connection this database is not visible to me and I cannot
> connect. When looking at the users and roles in that new
> database the only difference I can see is that the dbo
> user is not associated with the SA role. Can someone help?



Relevant Pages

  • Re: MS Access DAO -> ADO.NET Migration
    ... William Vaughn ... Microsoft MVP ... Hitchhiker's Guide to Visual Studio and SQL Server ... My migration app works building a SSCE database file with imported data ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Cluster will not fail over.
    ... > As far as the TCP/IP issue goes, you had to rebuild the cluster and were ... > able to restore the master database. ... > a cluster installation you'll have to revisit. ... >> This worked bringing up the sql server in minimal mode. ...
    (microsoft.public.sqlserver.clustering)
  • Re: MS Access DAO -> ADO.NET Migration
    ... full SQL Server and I see the logic you explained in a multi user ... allow two users to access the same database file Read/Write at any given ... The book was a pleasure to read after the gibberish that Microsoft 'puts ... Hitchhiker's Guide to Visual Studio and SQL Server ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: MS Access DAO -> ADO.NET Migration
    ... For that it is much harder to handle the incremental identifier, ... database but although they have the data, they are not connected at the same ... The book was a pleasure to read after the gibberish that Microsoft 'puts ... SQL Server Management Studio is nowhere to be found on my ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Word 2003/Access2000/SQLSVR
    ... SQL server being where the data is held and this is accessed through a MS ... entire database and that may be say a record for Berkshire. ... "Peter Jamieson" wrote: ... replaced with the first record on the table in use. ...
    (microsoft.public.word.mailmerge.fields)