Viewing 15 posts - 2,506 through 2,520 (of 5,841 total)
I think the author forgot a much better, more targeted option: RECOMPILE on the statement(s) INSIDE the sproc that are being screwed by parameter sniffing/plan caching. That is...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
July 15, 2013 at 12:03 pm
How about something like this? You can do a table of numbers to generate a set of them with the required distribution.
DECLARE @i float = RAND(CHECKSUM(NEWID()))
SELECT CASE WHEN @i...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
July 9, 2013 at 8:06 pm
I am wondering why you are using the older 1204 for deadlock information instead of (usually more useful) 1222.
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
July 6, 2013 at 8:24 am
Protest all you want. But do note that I was NOT unequivocal in my statements and did allow for edge-case usage. 🙂
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
July 5, 2013 at 8:35 am
Try a profiler run to capture poorly performing statements. Also use PerfMon and Task Manager to capture performance metrics. Your indications suggest CPU issues. Find bad query(s)...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
July 4, 2013 at 5:38 am
To be direct, I can't stand the new format!! Way too much wasted space. If this was done for "mobile-friendly" formatting, give users the ability to specify what...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
July 3, 2013 at 10:13 am
Not sure, but I think 2005 SP2 might have 2000 SP3 beat for the "WOW, how badly can you FUBAR a patch?!?" award. :w00t:
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
July 2, 2013 at 7:11 pm
Lowell (7/2/2013)
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
July 2, 2013 at 12:30 pm
DannyCool (7/2/2013)
i am trying to automate sql 2012 installation and i dont want to install sql2012 and sp1 separately. I want it in 1 install file.
I am trying to...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
July 2, 2013 at 9:31 am
pjrpjr7 (6/26/2013)
[CustID] tinyint NULL,
[TxnID] tinyint not NULL,
[TxnTime] datetime NULL,
[Amount] int NULL
) ON [PRIMARY]
INSERT [dbo].[SampleExcel2] ([CustID], [TxnID], [TxnTime], [Amount]) VALUES (1, 1, '6/1/13 12:30 AM', 900)
INSERT [dbo].[SampleExcel2] ([CustID], [TxnID],...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
June 26, 2013 at 5:55 pm
pjrpjr7 (6/26/2013)
I have a table wherein I have customerID, transactionid, transactiontime, amount. My requirement is that I need to fetch only those customers who had 3 or more transactions within...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
June 26, 2013 at 1:32 pm
I have a client that has several thousand SQL Express instances at their clients, hosting tens of thousands of databases. Works fine, lasts a long time! 🙂
Sounds like your...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
June 26, 2013 at 8:46 am
If nothing else make sure you collect Differential FileIO Stalls and Differential WaitStats during periods of slow (and regular?) performance so you can say definitively "look, you morons, it is...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
June 26, 2013 at 8:43 am
ALZDBA (6/25/2013)
4x136GB -> 2 RAID1 volumes -> C-drive and D-drive
2x300GB -> 1 RAID1 volume -> E-drive
I hope they upgraded all hardware drivers before they made it available because that...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
June 26, 2013 at 7:45 am
mayurkb (6/25/2013)
TheSQLGuru (6/25/2013)
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
June 25, 2013 at 3:24 pm
Viewing 15 posts - 2,506 through 2,520 (of 5,841 total)