Viewing 15 posts - 48,016 through 48,030 (of 59,064 total)
Don't ever let the defaults for auto-growth on a database occur... it takes 73 disk fragments just to reach 1GB using the default settings.
I'm with Steve... make sure the size...
September 29, 2008 at 9:03 pm
The_SQL_DBA (9/29/2008)
September 29, 2008 at 8:58 pm
OK... here we go... as usual, how the code works is explained as comments in the code...
/* Careful! This bit of code drops tables for test purposes! Could...
September 29, 2008 at 8:42 pm
Wow! Someone either left you a heck of a mess, or you're trying to resolve a "hunt group" from an Avaya telephone switch (seriously, been there, done that). ...
September 29, 2008 at 7:36 pm
I must admit, though, there is absolutely no need for the dynamic SQL...
DECLARE @TableNameSYSNAME
SET @TableName = 'dbo.JBMTest' --LOOK!!!! CHANGE THE TABLE NAME!!!!
SELECT TOP 1 [Rows]...
September 29, 2008 at 7:04 pm
The problemwith all of you folks getting the Null is that you didn't read the script... it's setup to get the rowcount for a table called "TimeZones" which you probably...
September 29, 2008 at 6:56 pm
Not "ShowConfig"... DBCC SHOWCONTIG
September 29, 2008 at 6:26 pm
Heh... I can show you a query plan for two queries... one comes up with 100% of the batch size and the other 0%... when you run the queries, the...
September 29, 2008 at 2:24 pm
Jackal (9/29/2008)
Jane, thanks for posting your article, one things I did notice was;
"Stored procedures should be named by function and the object they work on. Standard prefix like āpā,...
September 29, 2008 at 2:18 pm
Heh... I think we have another set-based convert on our hands. Well done!:D
September 28, 2008 at 8:59 pm
Liam Willis (9/22/2008)
This is a very busy database and we took the decision a couple of years ago to switch off the auto update statistics as it was affecting...
September 28, 2008 at 8:54 pm
Sounds like you've successfully made a believer out of someone, Matt. š Now, all we have to do is convert the other bazillion folks who think there is any...
September 28, 2008 at 8:49 pm
jcrawf02 (9/26/2008)
Normally, that would solve my problem, but I can't create a function. Only temp objects.
Are you creating a stored procedure or just a script? I need to know...
September 28, 2008 at 8:28 pm
Except in rare cases like a pass-through view (like a synonym), SELECT * will frequently (usually) make it impossible to do index seeks.
September 28, 2008 at 7:24 pm
In other words, start by doing an OUTER JOIN on the homes table with all the other tables. Then, wittle from there.
September 28, 2008 at 7:16 pm
Viewing 15 posts - 48,016 through 48,030 (of 59,064 total)