Viewing 15 posts - 991 through 1,005 (of 1,157 total)
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
Pradeep Adiga
Blog: sqldbadiaries.com
Twitter: @pradeepadiga
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.
Pradeep Adiga
Blog: sqldbadiaries.com
Twitter: @pradeepadiga
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...
Pradeep Adiga
Blog: sqldbadiaries.com
Twitter: @pradeepadiga
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".
Pradeep Adiga
Blog: sqldbadiaries.com
Twitter: @pradeepadiga
July 26, 2010 at 7:16 am
In-place upgrade is usually the better option. However, ensure to have good backups.
Pradeep Adiga
Blog: sqldbadiaries.com
Twitter: @pradeepadiga
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
Pradeep Adiga
Blog: sqldbadiaries.com
Twitter: @pradeepadiga
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
'
Pradeep Adiga
Blog: sqldbadiaries.com
Twitter: @pradeepadiga
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...
Pradeep Adiga
Blog: sqldbadiaries.com
Twitter: @pradeepadiga
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''
Pradeep Adiga
Blog: sqldbadiaries.com
Twitter: @pradeepadiga
July 25, 2010 at 11:01 pm
I feel VARCHAR would suite this.
Pradeep Adiga
Blog: sqldbadiaries.com
Twitter: @pradeepadiga
July 25, 2010 at 10:50 pm
You may find the "Finding Specific Events Within a Trace" section in this article useful.
Pradeep Adiga
Blog: sqldbadiaries.com
Twitter: @pradeepadiga
July 25, 2010 at 9:00 pm
Check if the remote connections are enabled or not.
This article explains how to configure it.
Pradeep Adiga
Blog: sqldbadiaries.com
Twitter: @pradeepadiga
July 25, 2010 at 8:58 pm
Any FULL backup operation will complete in such a way that when it is restored the Database will be in a consistent state.
This article by Paul Randal explains it...
Pradeep Adiga
Blog: sqldbadiaries.com
Twitter: @pradeepadiga
July 25, 2010 at 3:13 am
$partacu$ (7/24/2010)
When I try to start the SQL server using the following command I continuosly get login error from application logins in the command prompt:
C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\sqlservr.exe -m
This...
Pradeep Adiga
Blog: sqldbadiaries.com
Twitter: @pradeepadiga
July 25, 2010 at 2:53 am
In sysprocesses, one SPID can have multiple OS threads (KPID). Yes, the SPID for which one of the threads is consuming more CPU is the cause for CPU spike.
You...
Pradeep Adiga
Blog: sqldbadiaries.com
Twitter: @pradeepadiga
July 25, 2010 at 1:45 am
Viewing 15 posts - 991 through 1,005 (of 1,157 total)