Viewing 15 posts - 31 through 45 (of 74 total)
Maybe close but close enough
Select
'RESTORE DATABASE ' + QUOTENAME(name) + 'FROM DISK = N''\\dd-database\database\SQL\prod\Voxco_2008R2\SS-VX-SQL1' + name + '.bak''
WITH FILE = 1,
MOVE ' + name +...
May 19, 2016 at 1:06 pm
Lowell (5/17/2016)
Sean Lange (5/17/2016)
Chitown (5/17/2016)
All, I need to refresh 1100+ DBs from Prod to QA. Is there any easy to accomplish this task?
You will become familiar with both the backup...
May 19, 2016 at 12:12 pm
I am actually getting close.
Select 'RESTORE DATABASE [' + name + '] FROM DISK = \\database\sql\prod\[' + name + ']\;
'
FROM sys.databases
;
May 17, 2016 at 11:32 am
We already have a full backup in place from this weekend.
Select 'RESTORE DATABASE [' + name + '] FROM DISK = (Backup location);
'
FROM sys.databases
I figured out half of...
May 17, 2016 at 11:03 am
I have learned how to stay calm. Even though it felt like a lifetime, I scripted it out, restored the full backup and dif and no TLOGS. Took forever but...
April 8, 2016 at 6:11 am
That's a good start.
Now what if someone accidentally forgets to add a WHERE clause to "DELETE FROM OrderData"?
I will personally kick his/her butt :-). Since it's prod, no one is...
March 31, 2016 at 10:11 am
Hugo Kornelis (3/31/2016)
I recommend using this opportunity as a test case to check how long the restore will take. Then compare that with the...
March 31, 2016 at 9:00 am
TheSQLGuru (3/31/2016)
March 31, 2016 at 8:58 am
Yes. The last time we patched all servers was last week.
March 24, 2016 at 1:07 pm
Getting close
drop table #test
create table #test (command varchar (500))
insert into #test SELECT 'USE [' + name + N'] '
+ 'CREATE USER [innem.sa] for login [innem.sa]'
FROM...
March 17, 2016 at 3:04 pm
John Mitchell-245523 (3/14/2016)
SELECT name FROM sys.servers WHERE server_id = 0
SELECT SERVERPROPERTY('ServerName')
John
Thanks for the response.
March 14, 2016 at 11:01 am
Enabling the named pipe did the trick.
February 25, 2016 at 11:08 am
Luis Cazares (2/16/2016)What happens if the second job gets disabled as well?
Why don't you simply set notifications for successful runs?
I have thought about setting the notification for successful runs but...
February 18, 2016 at 1:24 pm
Thanks for the reply all but the problem has been solved.
The only thing that I couldn't understand was that the user I had created was not able to access...
December 9, 2015 at 8:22 am
Jeff Moden (12/7/2015)Ok... let's just say that you get a script working to do such a notification for your index rebuild job and it sends you an email that the...
December 8, 2015 at 10:02 am
Viewing 15 posts - 31 through 45 (of 74 total)