Re: Problem with extended procedure

From: Dan Guzman (guzmanda_at_nospam-online.sbcglobal.net)
Date: 01/29/05


Date: Sat, 29 Jan 2005 10:51:55 -0600

Run the query below to verify the login is a sysadmin role member. Also,
verify that you are connecting to the correct SQL Server instance from your
extended proc. A Profiler trace may help.

SELECT IS_SRVROLEMEMBER ('sysadmin' , 'domain\xxx')

-- 
Hope this helps.
Dan Guzman
SQL Server MVP
"Jan Schustr" <Jan Schustr@discussions.microsoft.com> wrote in message 
news:10A5175F-50C8-4C0E-B503-47CD5B08D4C5@microsoft.com...
> Hi all,
> i have MS SQL Server 2000 Standard with my own extended procedure. I run
> extended procedurec, and this procedure make sepparate session and run 
> stored
> procedure (asynchronous). But the extended procedure failed with error:
> Server user 'domain\xxx' is not a valid user in database 'db'.
> Database 'db' was restore from backup from another server, but user's SID 
> is
> the same as login, there is no orphanes , or somethink like that. (to be 
> on
> the safe said)I drop the user and the login and create new login and user 
> .
> But no change.
> User domain\xxx is the local admin, and MS SQL Server and ServerAgent 
> start
> with this account.
>
> Any suggestion?
>
> Thanks Honza 


Relevant Pages

  • Re: Unexpected Login Screen When Accessing SQL Data Via .NET Intra
    ... >> data and the SQL Server is on the same server. ... >> My problem is that one user has started getting a login popup ... >> right in via Windows Authentication like everyone else and like they ...
    (microsoft.public.sqlserver.connect)
  • Re: cannot acees two databases as owner
    ... it does not matter you are a member of the ... the sysadmin fixed server role or if there is no any other Login which is ... group if it's a domain) and you can login to your SQL Server with, ...
    (microsoft.public.sqlserver.setup)
  • Re: Database security design with ASP.net and form-based authentication
    ... Since you already have forms-based security, why not use a single SQL login ... for all database access? ... data entry, guest/view only, admin, report viewer. ... so I'm using SQL Server authentication. ...
    (microsoft.public.sqlserver.security)
  • Re: Credentials not being passed with remote access
    ... allowed windows authentication to work, ... I had assumed johnx was a domain user rather than a local Windows account. ... johnx was set up as a local login on sql server. ...
    (microsoft.public.sqlserver.security)
  • Re: No db access after publishing web site
    ... GRANT UPDATE TO ... If I detach and attach this database on a different PC (according that PC ... Cannot open database "pago" requested by the login. ... Are you detaching/attaching the SQL Server Express database correctly ...
    (microsoft.public.dotnet.framework.aspnet)