Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
under2811
Constraint Violating Yak Guru
366 Posts |
Posted - 2007-11-23 : 01:43:30
|
| Hi,I have few queries regarding restoriing of database..I have database back up .bak file..I successfully restored this database back up...but when i try to connect this db to my application I am unable to connect it...when i look into property of this DB then i found two things that please i need to clearfirst thing is in DB PropertySpace Available is 0.00 MBsecond thing is when i go to DB>> Security >> Users >> dbo right click propertyI found :User Name dboLogin Name as disable and blankBut same thing i checked with other DB then I found :User Name dboLogin Name sawheather that cause my application failed to connect???????T.I.A |
|
|
RickD
Slow But Sure Yak Herding Master
3608 Posts |
Posted - 2007-11-23 : 03:22:22
|
When restoring a backup, the users are not taken across, use:sp_change_users_login 'auto_fix', '<loginname>' to fix them. |
 |
|
|
rmiao
Master Smack Fu Yak Hacker
7266 Posts |
Posted - 2007-11-24 : 00:56:44
|
| May need 'sp_changedbowner sa' in this case. |
 |
|
|
|
|
|