Viewing 15 posts - 541 through 555 (of 607 total)
DECLARE @sql NVARCHAR(MAX) = N'
EXEC [YourDatabase]..sp_executesql N''CREATE USER [domain\bck_user] FOR LOGIN [domain\bck_user]''';
EXEC sp_executesql @sql;
SET @sql = N'
EXEC [YourDatabase]..sp_executesql N''EXEC sp_addrolemember N''''db_backupoperator'''', N''''domain\bck_user''''''';
EXEC sp_executesql
October 9, 2012 at 8:05 am
Recovery mode refers to the transaction log, which is not the same as server logs.
October 9, 2012 at 7:20 am
NOLOCK is not a performance tool and when used as such is dangerous.
October 9, 2012 at 6:19 am
Hi,
If you cast your VARCHAR(MAX) to XML then SSMS can display the entire contents in an XML editor window.
DECLARE @Cmd NVARCHAR(MAX);
SET @Cmd = CAST('/*' AS NVARCHAR(MAX)) + REPLICATE(CAST('x' AS NVARCHAR(MAX)),50000)...
October 8, 2012 at 8:34 am
You have a comma just before the END statement. Remove that.
September 14, 2012 at 2:08 am
Note, @@FETCH_STATUS contains one of the following values:
0: The FETCH statement was successful.
-1: The FETCH statement failed or the row was beyond the result set.
-2: The row fetched is...
September 11, 2012 at 3:28 am
Increase the size of your variables to use a longer path
DECLARE @MyFileName varchar(255), @COMMAND VARCHAR(255)
September 11, 2012 at 2:42 am
AdventureWorks2012 as listed in your error message is 2012
September 10, 2012 at 8:14 am
Other way. You cannot attach a 2012 database onto an earlier version.
September 10, 2012 at 7:23 am
UPDATE Vehicle
SET Version = Version + ' BT'
WHERE unitnr = '140'
September 3, 2012 at 3:16 am
Patch installed, all restores went through without an issue.
Thanks.
August 31, 2012 at 1:01 am
Thanks. I'll feedback as soon as it is installed on our test server.
August 30, 2012 at 7:41 am
I have a number of users connected to the server so I cannot try it without Intellisense.
August 30, 2012 at 5:46 am
I found a workaround for now:
1. Delete the database before restoring.
2. Open a remote desktop session on the server and run the restore there.
Strange.
Edit to add: This is not consistent,...
August 30, 2012 at 3:42 am
Viewing 15 posts - 541 through 555 (of 607 total)