Viewing 15 posts - 31 through 45 (of 79 total)
TheSQLGuru (6/27/2016)
What is the status of the other database? Is it suspect, offline or something like that?
All DBs are online and in sync
This was the error in the log file
AlwaysOn:...
June 28, 2016 at 8:26 am
Eirikur Eiriksson (6/9/2016)
Chitown (6/9/2016)
June 9, 2016 at 3:20 pm
GilaMonster (6/9/2016)
June 9, 2016 at 12:54 pm
Finally resolved. Missing some double, triple quotations....
Select
'RESTORE DATABASE ['+name+'] FROM DISK = N''\\dd-database\database\SQL\prod\'+name+'.bak'' WITH FILE = 1, MOVE N'''+name+''' TO N''D:\Program Files\Microsoft SQL Server\MSSQL10_50\MSSQL\DATA\'+name+'.mdf'', MOVE...
May 19, 2016 at 2:32 pm
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
Viewing 15 posts - 31 through 45 (of 79 total)