Forum Replies Created

Viewing 15 posts - 19,111 through 19,125 (of 22,214 total)

  • RE: Are the posted questions getting worse?

    GilaMonster (12/10/2008)


    I don't have any photos of what Steve's taking about. I was too busy getting pounded into the mat by Kalen.

    I do have a couple of fairly good photos...

  • RE: Debugging a storedprocedure in SQL 2005

    Execution plans are your friend.

    They will show what the query is doing inside the engine. From there you can determine if you need indexes etc. If the data is not...

  • RE: history of queries run on a server

    You can't get a call-by-call reference, by the dynamic management view sys.dm_exec_query_stats will show you aggregate information about any queries that are still in cache. If they've aged out of...

  • RE: Table Variables versus Temp Tables versus Permanant Tables

    Is the data loaded through XML being filtered later in the query? If so, use either a permanent table or a temporary table. If not, if the data is doing...

  • RE: retrieve the previous version of a stored procedure

    Pull a previous copy out of source control...

    If you don't have your code under source control, here's the wake-up call to get it there.

    You can't retrieve a previous copy from...

  • RE: Slow function

    Msg 208, Level 16, State 1, Line 1

    Invalid object name 'S_TIMEZONE_TEMP'

    Then supply the correct table name. You should get in the habbit of supplying the schema too, so that it...

  • RE: Difference between two instances of SQL 2005

    That's great. Thanks for following up. It's always good to know what worked and what didn't.

  • RE: Are the posted questions getting worse?

    GilaMonster (12/9/2008)


    Matt Miller (12/9/2008)


    Funny - that's the EXACT reaction I got when I tossed it back....:)

    Just about every time I've done a presentation or informal training and mentioned the problems...

  • RE: Slow function

    Sorry for the confusion. Thanks for the clarification Gail.

    It's still the approach I'd take, but I'd sure take the time to examine those indexes.

  • RE: Are the posted questions getting worse?

    That last query... the uh... you know it... well... uh...

    Never mind. That actually makes my current local favorite look intelligent:

    DECLARE @i int

    SET @i =1

    IF @i = 0

    BEGIN...

  • RE: Job fail: The log file for database[DB] is full.

    Jeffrey Williams (12/9/2008)


    Grant, I would not recommend issuing the above - especially since it is deprecated in SQL Server 2008. Here is the message you will get on a...

  • RE: Slow function

    First things first, I think your statistics may be out of date. on [SWUS].[dbo].[SW_Ord_List_Ext].[_dta_index_SW_Ord_List_Ext_23_254064091__K3_1_4_5_18_20_22] [OLE]. The estimated number of rows is 54, the actual is 48000. That's a bit of...

  • RE: Slow function

    Not surprising. The function is basically running a query for each and every row in your database.

    A better approach would be to JOIN to the lookup table, either directly or...

  • RE: Filegroups

    In general, yes, you'll want to have multiple file groups. I'd recommend them for your OLTP system too. As to specifcally how many and where, that's hard to to say....

  • RE: Job fail: The log file for database[DB] is full.

    Instead of shrinking the database at the beginning of the process, I'd suggest growing the log out to the necessary size and making sure that it's cleaned out (BACKUP LOG...

Viewing 15 posts - 19,111 through 19,125 (of 22,214 total)