Viewing 15 posts - 1,561 through 1,575 (of 4,745 total)
error code 3 is actually 'The system cannot find the path specified' rather than a permissions error.
August 9, 2011 at 6:45 am
FreeHansje (8/9/2011)
I am going to try a restore through script, without the .LDF, don't need that.Hans Brouwer
its not possible to omit the log from the restore, What exactly did you...
August 9, 2011 at 5:55 am
try this
-- run this script from the user database
--exec usp_get_object_permissions
--drop proc usp_get_object_permissions
--go
create PROCEDURE [dbo].[usp_get_object_permissions]
@as_objectname sysname = null /***Object Name to check, if null then all objects***/
AS
set nocount on
set quoted_identifier off
--drop...
August 9, 2011 at 5:22 am
what you describe is impossible.
If you have been using the GUI to do the restore it has renamed the files for you based on the database name.
In TSQL run sp_helpdb...
August 8, 2011 at 5:09 pm
heres a nice little script for the object permissions I just found. I will start off with this and build the rest around it.
http://www.sqlservercentral.com/Forums/Topic453290-146-2.aspx#bm534643
August 8, 2011 at 4:47 pm
The DBA could just script out the database from SSMS and include object permissions, but I understand that can be slow.
August 8, 2011 at 4:41 pm
I think the issue here is preserving the users and permissions from the test database before restoring over it, and of course losing the existing permissions.
Tables you need to look...
August 8, 2011 at 4:31 pm
to be able to use the replace option and overwrite the existing database to the existing file locations the logical file names and no of files must match.
Run restore filelistonly...
August 8, 2011 at 4:12 pm
you would have to offline the database, use alter database modify file, physiacally rename the file, then online the database again.
so the database won't be detached but you will need...
August 8, 2011 at 4:03 pm
the restore will fail. Use the with move cluase to move the physical files to a different location.
August 8, 2011 at 4:00 pm
its just the way the wizard works, it expects a share to be set up because normally the copy job on the destination server will need to be able to...
August 5, 2011 at 2:55 pm
Gianluca Sartori (8/5/2011)
Well, I find Ola's script very easy to use.However, if he gets stuck, we can alway help, no? 😉
thats why we're here! 🙂
August 5, 2011 at 3:38 am
.....one thing I would do though whatever script you use is to exclude small tables from the reindex as there is no benefit from defragmenting them, so anything with less...
August 5, 2011 at 3:34 am
Viewing 15 posts - 1,561 through 1,575 (of 4,745 total)