Viewing 15 posts - 991 through 1,005 (of 1,160 total)
SQL* (7/26/2010)
hi,BEGIN TRAN
create table #Table (Tableid int identity(1,1), TableName Varchar(500))
INSERT INTO #Table
SELECT 'Tablename'
UNION
SELECT 'Tablename2'
UNION
SELECT 'Tablename3'
ROLLBACK TRAN
Since you are issuing BEGIN TRAN before the table creation, when you ROLL BACK it...
July 26, 2010 at 11:02 pm
Not sure your requirement of FULL memory analysis.
You can use DBCC MEMORYSTATUS
July 26, 2010 at 10:47 pm
Failed to deliver an event to event consumer NTEventLogEventConsumer="SCM Event Log Consumer" with error code 0x80041003. Dropping event.
0x80041003 means Current user does not have permission to perform the action.
Can you...
July 26, 2010 at 10:30 pm
In the same Maintenance Plan, create 3 three different clean up tasks (each for .trn, diff, .bak).
Hope this helps!
July 26, 2010 at 12:47 pm
Yes you can. It can be something like
exec xp_cmdShell 'del @File /Q'
/Q= Quiet mode, do not ask if ok to delete on global wildcard
July 26, 2010 at 9:06 am
There is no such rule as to whether CHECKDB or REBUILD should run first. Based on your requirements, those jobs can run in any order.
July 26, 2010 at 8:05 am
You cannot edit the Mail Content of the one sent by the Native Maintenance Task.
You can create your own SSIS Package and include Mail Task, in which you can...
July 26, 2010 at 7:26 am
You can use the Profiler tool to capture this information.
In "Event Selection" click "Show All events" and select "Audit Login Failed".
July 26, 2010 at 7:16 am
In-place upgrade is usually the better option. However, ensure to have good backups.
July 26, 2010 at 3:36 am
If the drive "Z" is still available, try to copy the contents of the DVD to the location specified in the error message
July 26, 2010 at 3:33 am
It can be achieved using the same logic. Here is an example
EXEC SP_MSFOREACHDB @COMMAND1 ='use [?]
if db_name()like ''%temp%''
begin
exec sp_helpfile
end
'
July 25, 2010 at 11:19 pm
As seen in Wikipedia
The only known difference between .cmd and .bat file processing is that in a .cmd file the ERRORLEVEL variable changes even on a successful command that...
July 25, 2010 at 11:10 pm
You can create a stored procedure for this code and use sp_MSforeachdb to execute it against each database.
Example:
EXEC SP_MSFOREACHDB @COMMAND1 ='SELECT DB_NAME(),DATABASEPROPERTYEX([?],'IsAutoClose''
July 25, 2010 at 11:01 pm
You may find the "Finding Specific Events Within a Trace" section in this article useful.
July 25, 2010 at 9:00 pm
Viewing 15 posts - 991 through 1,005 (of 1,160 total)