Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Favorites |
infavorites:mine infavorites:1234 |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Reloading a database from a backup, typically for disaster recovery, or to make a copy of a database onto another server.
1
vote
1answer
I have a database in standby mode.
-- STEP 1
-- Restore path F1 > T7
RESTORE DATABASE [TestRestore] FROM DISK = N'C:\Temp\F1.BAK' WITH FILE = 1,
NORECOVERY, NOUNLOAD, REPLACE, STATS = 5
GO
-- STEP … 1
RESTORE LOG [TestRestore] FROM DISK = N'C:\Temp\T7.TRN' WITH FILE = 1,
STANDBY = N'C:\Temp\TestRestore_RollbackUndoFile.tuf', NOUNLOAD, STATS = 5
GO
And now I'm gonna do log shipping. My …
asked Aug 26 '18 by isxaker
0
votes
Finally, I've found what i actually need.
I can chech whether the specific file exists or not by sql server:
DECLARE @result INT
EXEC master.dbo.xp_fileexist 'C:\MOUNT\f99bae7b-d2b0-45de-94f4-064ad8d …
answered Aug 24 '18 by isxaker
1
vote
2answers
Let me explain my case.
I have a mount with database files on my local PC. I attach the database (from this mount). And then close this mount (in other word i attach db and then delete db files). So …
asked Aug 23 '18 by isxaker
2
votes
1answer
I use the following query for attaching a sql db:
CREATE DATABASE [myDb] ON
(FILENAME=N'C:\myDb\myDb.mdf'),
(FILENAME=N'C:\myDb\myDb_log.ldf'),
(FILENAME=N'C:\myDb\FILESTORE')
FOR ATTACH
In gen …
asked Jun 12 by isxaker