Viewing 15 posts - 166 through 180 (of 286 total)
Create text file srvList.txt with all your instances names (each line is new instance). Then run this from command line:
FOR /F %a IN (srvList.txt) DO osql -S %a -E -d...
May 18, 2010 at 9:22 pm
I would be interested as well to learn the difference of how SQL Server handles this because there are apparently many cases when whole procedure cache cleared (http://support.microsoft.com/kb/917828)...
May 18, 2010 at 9:14 pm
You can use cliconfg.exe utility to create SQL Server alias MyServerInstanceOne.company.com on client computer.
May 18, 2010 at 9:04 pm
You can use Profiler events "SP:Recompile Event Class" under "Stored Procedures Event Category" and "SQL:StmtRecompile Event Class" under "TSQL Event Category".
I would recommended to disable job for the time of...
May 18, 2010 at 11:29 am
I would add SET NOCOUNT ON as the first line in stored procedure (before "BEGIN"):
"setting SET NOCOUNT to ON can provide a significant performance boost, because network traffic is greatly...
May 18, 2010 at 10:37 am
Kimberly Tripp started great series Spring cleaning your indexes if you want to find out more about indexes cleanup.
May 18, 2010 at 10:33 am
Yes. Run EXEC sp_help_jobhistory @job_name = 'job_name' , @start_run_date = start_run_date . Start_run_date must be entered in the form YYYYMMDD (int).
May 13, 2010 at 6:49 am
No, it will not interrupt your production databases. The command is very safe. Check the output from this command. It should return list of SQL Server sysadmins. If you get...
May 13, 2010 at 6:45 am
Try to connect with command line (you have to log in as this new user):
osql -S SQLServerName -E -d master -Q "EXEC sp_helpsrvrolemember 'sysadmin'"
May 12, 2010 at 6:39 am
Yes, you can do it.
Create "Operating system" type job step: "sqlcmd -S SQLSRV -i C:\Tests\TestCMD.sql"
example of TestCMD.sql file :
:Setvar BackFldr "C:\TestCMD\"
!!if exist C:\TestCMD\*.bak (move K:\TestCMD\*.bak K:\TestCMD\ARCHIVE\) ELSE (ECHO No files...
May 11, 2010 at 8:28 am
Two questions:
1) Have you tried to register SQL Server under SQL Server Group in Enterprise Manager?
2) Can you verify that BULTIN\Administrators group has login on SQL Server?
May 11, 2010 at 8:02 am
I run these queries as the first step when I have complains about performance:
select top 10 * from sysprocesses order by physical_io DESC
select top 10 * from sysprocesses order by...
May 10, 2010 at 8:46 am
There is no advantage of having multiple log files in SQL 2005 and later. The files are not used at the same time. Second file will be used after the...
May 5, 2010 at 9:15 pm
I know for sure that Database Mail depends on Service Broker activated for msdb.
May 5, 2010 at 8:35 pm
I replied "No" because I would restore to the point of time when restored the last log backup.
April 30, 2010 at 12:57 pm
Viewing 15 posts - 166 through 180 (of 286 total)