Forum Replies Created

Viewing 15 posts - 46,486 through 46,500 (of 49,571 total)

  • RE: Stored Procedure executes much slower than individual query

    That's a big proc... Hmmm...

    Run it in the proc and as a query, and have a look at the execution plan of each, and the results of statistics IO.

    Are...

  • RE: Getting error when updating stats of a system table

    Marios Philippopoulos (5/20/2008)


    Thank you for the response, that makes sense.

    Don't these tables need their stats updated though, just like user tables?

    I see that some of them have not been...

  • RE: alter procedure not fully working

    I've seen that with web pages before. Very irritating.

    With stored procs, as soon as the proc is modified, or any object that the proc depends on is modified, the cached...

  • RE: Stored Procedure executes much slower than individual query

    Post the proc definition please.

    I am thinking parameter sniffing....

  • RE: Data not comitting ?

    Indeed. Is most intriguing...

    Personally, I'm thinking that an instead of trigger might be a better idea, as it allows the insert to not actually be run, removing the need...

  • RE: Parallel file operations

    TheSQLGuru (5/20/2008)


    Fixing poorly written queries and finding indexing opportunities will almost certainly provide WAY more benefit than worrying about how many files to use in a file group. 🙂

    QFT.

  • RE: alter procedure not fully working

    Altering a procedure automatically invalidates its cached plan.

    Check to make sure you don't have 2 versions, one in the dbo schema and one in a different schema

  • RE: stored proc taking too long!

    Methinks you're going too complex

    CREATE TABLE #tempFileName (

    FileNumber INT IDENTITY,

    FileName varchar(50)

    )

    INSERT INTO #TempFileName (FileName)

    SELECT DISTINCT Filename FROM #Temp

    UPDATE #Temp

    SET FileNumber = #tempFileName.FileNumber

    FROM #tempFileName WHERE #tempFileName.FileName =...

  • RE: stored proc taking too long!

    Johann, have you come right?

    If not, please post some code that reproduces the problem (complete with table creation script and inserts for sample data) and I'll see if I...

  • RE: tempdb Filegroup and Files

    In SQL Server, unless you specify an order by, the order of rows returned is not guaranteed. You've just been lucky up until now.

    I would suggest, any time you need...

  • RE: Accumulate Values

    There's an excellent article by Jeff Moden on running totals. You'll find it in the articles section here.

  • RE: Data not comitting ?

    Actually, I just noticed this little gem...

    ALTER TRIGGER [dbo].[trg_UpdateProcessedData]

    ON [dbo].[ProcessedData]

    AFTER INSERT

    ....

    DELETE ProcessedData

    WHERE HistoryID IN (SELECT...

  • RE: Integrity checks only check system databases

    Are you using a maintenance plan? I beleive in a maint plan you can specify system databases only, user databases only or all databases.

    If it's set to all, is the...

  • RE: stored proc taking too long!

    It shouldn't. Rownumber starts at 1, regardless of how many times you run it. It's the row numbers for the current query, nothing more. Each time the partition columns changes...

  • RE: stored proc taking too long!

    Sandy (5/20/2008)


    I also wants to learn Sql server 2005.......:hehe:..lolz

    Cheers!

    Sandy.

    Books Online is a good place to start.

    Johann, I could probably shave a couple more seconds off with proper indexing. In case...

Viewing 15 posts - 46,486 through 46,500 (of 49,571 total)