Please start any new threads on our new site at http://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 Backup
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

rjrferreira
Starting Member

13 Posts

Posted - 05/08/2007 :  10:00:41  Show Profile  Reply with Quote
I all,

I have been made a backup file from a database. That database are in the principal server. This DB as a user as named DBBOOKS.

Now, i restore the database in my computer, to keep it local. When i restore the DB the user names DBBOOKS stays at DB, but he don't exists in the new instance, so i can't remove/alter him, because he don't have any Login attributed.

So, what i want is, there is anyway to backup a DB without the users? Only tables and info tables?

Greetings,
Rodrigo

nr
SQLTeam MVY

United Kingdom
12543 Posts

Posted - 05/08/2007 :  10:06:06  Show Profile  Visit nr's Homepage  Reply with Quote
>> So, what i want is, there is anyway to backup a DB without the users? Only tables and info tables?
Not using a backup.

To get rid of the user use sp_dropuser.

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

rjrferreira
Starting Member

13 Posts

Posted - 05/08/2007 :  10:14:36  Show Profile  Reply with Quote
"...The user owns object..."

I canĀ“t remove him because he don't have any LOGIN attributed.

In Microsofr SQL Server Management Studio Express, when i see the properties windows of that user, i see:

UserName: DBBOOKS
LoginName: <EMPTY>

When i try to alter this user the MSqlSMSE says to me "Login must be specified", and i can't choose a Login, because the field LoginName is disabled!
Go to Top of Page

rmiao
Flowing Fount of Yak Knowledge

USA
7266 Posts

Posted - 05/08/2007 :  10:41:28  Show Profile  Reply with Quote
Change object owner to other db user then drop it.
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000