Re: SQL Server User
- From: "Jangid" <manojjangid@xxxxxxxxxxx>
- Date: Mon, 4 May 2009 10:19:01 +0530
Thanks Ekrem,
user login is already exist in database and its working with other DB.
I have found a way to fix this issue
sp_dropuser ...
sp_adduser ...
assign role to user
and after doing this its working
Thanks & Regards
Manoj Jangid
"Ekrem Önsoy" <iletisim@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:EA6C890D-CDCC-4B88-B466-298C73AAC58A@xxxxxxxxxxxxxxxx
Hi Manoj,.
Backup\Restore is a database level operation, but you need a valid Login to log in to your SQL Server and Logins are server level principals. So, you need a valid Login which is mapped to your User object in your database so that your user can log in to the SQL Server instance using that Login and Database User.
--
Ekrem Önsoy
"Jangid" <manojjangid@xxxxxxxxxxx>, iletisinde sunu yazdi, news:B94B15F3-BB7D-4814-BD62-D571D130E81F@xxxxxxxxxxxxxxxxHello everyone,
I have a user & role in sql server, role is assigned to user and I did a
backup of database. [e.g. myuser & myrole]
I restored the database in another sql server, version is same for both sql
server.
now I am not able to access database with myuser in sql server where I
restored DB, while I am able to access with sa. myuser & myrole also exist
in database
what other settings or information I need to provide in restored database
for myuser?
I am using SQL 2005 standard edition
Kind Regards
Manoj Jangid
- Follow-Ups:
- Re: SQL Server User
- From: Brett Davis
- Re: SQL Server User
- References:
- SQL Server User
- From: Jangid
- Re: SQL Server User
- From: Ekrem Önsoy
- SQL Server User
- Prev by Date: Re: SQL Server User
- Next by Date: Re: Performance reduction of SQL 2005 server when connected from V
- Previous by thread: Re: SQL Server User
- Next by thread: Re: SQL Server User
- Index(es):
Relevant Pages
|