Viewing 15 posts - 2,731 through 2,745 (of 6,401 total)
check the execution plan, update all statistics rebuild all indexes
also check out the links in my signature on posting performance problems
January 24, 2013 at 4:30 am
ON ALL SERVER details that the trigger is a instance wide trigger and not specific to a database.
January 24, 2013 at 4:18 am
You could try SQL Data Generator 2.0 from Red-Gate its a licenced product but you do get a free trial, sure if you search for "SQL Sample Data Generator" you...
January 24, 2013 at 3:50 am
query sys.master_files, there is a size column which is in pages, so multiply the value by 8, to get size in KB for that file, then sum them up based...
January 24, 2013 at 3:36 am
You will need to change the event from DDL_EVENT to the correct event type which is DDL_LOGIN_EVENTS
DDL Event Tree - http://msdn.microsoft.com/en-us/library/bb510452%28v=sql.100%29.aspx
You will need to query the eventdata() to get...
January 24, 2013 at 3:33 am
Basic server wide trigger for all DDL events, need to ensure that DB mail is enabled, or change the trigger to insert into an audit table somewhere
CREATE TRIGGER ................. ON...
January 24, 2013 at 3:12 am
function sendmail{
Write-Host "Sending Email"
#SMTP server name
$smtpServer = ""
#Creating a Mail...
January 24, 2013 at 3:01 am
DECLARE @sql NVARCHAR(MAX)
SELECT @sql =
REPLACE(
CAST(
(
SELECT 'USE ' + QUOTENAME(name) +';' + CHAR(13) + CHAR(10) +
--PUT WHAT YOU WANT TO DO IN EACH DATABASE IN THIS BLOCK
----
'SELECT ' + CHAR(13)...
January 24, 2013 at 2:53 am
Koen Verbeeck (1/24/2013)
Either you see that as "coffee-time", or you can solve...
January 24, 2013 at 2:40 am
That is one for testing per your environment as either could produce the best result.
I would do a test without the primary key, insert the data, create the primary key...
January 24, 2013 at 2:34 am
Out of interest what is the reasoning behind having it logshipped to your developer instance?
January 24, 2013 at 2:30 am
NOLOCK - Implements dirty read, or isolation level 0 locking, which means that no shared locks are issued and no exclusive locks are honored. When this option is set, it...
January 24, 2013 at 2:27 am
This would be one for powershell, query the Get-WMIObject Win32_Process cmdlet see how many sqlserver.exe processes are running and if > 5 send you a mail.
Could then set it up...
January 24, 2013 at 2:11 am
subbareddy542 (1/24/2013)
nolock option it good for reading data.
What???????? NOLOCK option is not always good for reading data.
Do you understand the problems that NOLOCK give you?
Before you start putting query hints...
January 24, 2013 at 2:08 am
nivedita talukdar (1/23/2013)
I'm new to this forum and want to learn and develop SQL Server 2008 R2 Reporting services which is one of the utmost requirement to sustain my...
January 24, 2013 at 1:59 am
Viewing 15 posts - 2,731 through 2,745 (of 6,401 total)