Forum Replies Created

Viewing 15 posts - 16 through 30 (of 388 total)

  • RE: "select into "query

    Hi,

    Do you have trigger on the target table?

    ...and your only reply is slàinte mhath

  • RE: SQL server 2008 : database installation

    Hi,

    You need to install only Integration Services to be able to run the packs from command line or .NET code. Obviously, if you want to deploy the packs to the...

    ...and your only reply is slàinte mhath

  • RE: Run Stored Procedure from VB

    You ave to create SQLConnection object, then SQL Command, configure the SQLCommand object and eventually execute it. There are several methods of execution, varying with the returned results. Please read...

    ...and your only reply is slàinte mhath

  • RE: Excessive SQL Compilation

    Thanks for sharing this. The trick with sp:CacheMiss is interesting to know.

    Piotr

    ...and your only reply is slàinte mhath

  • RE: Statistics

    That's a nice question, thanks Ron.

    For what it's worth, I remembered that I read about this naming convention in Inside SQL Server 2005 Query Tuning and Optimization. Page 229. 🙂

    Also...

    ...and your only reply is slàinte mhath

  • RE: Clustered index scan versus seek

    Are you sure that you have exactly same schema on this database and others? It maybe that lack of an index on other table triggers scan on the big one....

    ...and your only reply is slàinte mhath

  • RE: Overactive use of Temp Tables?

    How does your code populate the temp tables? By the look of your last post would it be a loop or cursor? Please forgive me if I am wrong.

    Have you...

    ...and your only reply is slàinte mhath

  • RE: deletion of 2 million records

    Thanks Paul, I didn't see this post before. I really enjoy Craig's posts about execution plans.

    Regards

    Piotr

    ...and your only reply is slàinte mhath

  • RE: deletion of 2 million records

    I found it might be better to use TOP syntax in the end anyway. The ROWCOUNT setting appears to be not taken into consideration by the query optimizer and this...

    ...and your only reply is slàinte mhath

  • RE: TSQL using parameters does not use the index

    Tom, you might also consider adding Execute SQL Task to your package to grab the newsequentialguid() from database instead of using the ExecutionInstanceGuid. It looks like you would need to...

    ...and your only reply is slàinte mhath

  • RE: sp_executesql - LINQ - Performance tuning

    Could you post execution plans for both queries? Have you tried to wrap the query in a stored proc and pass the parameters to it? The sp_executesql overhead is minimal,...

    ...and your only reply is slàinte mhath

  • RE: Error with dynamic SQL

    If may I ask, why do you want to run this code in a cursor? It doesn't look like you need to.

    Regards

    Piotr

    ...and your only reply is slàinte mhath

  • RE: It is possible to do this in SQL Server Triggers?

    Yes, basically you will have rows in inserted and deleted pseudotables for UPDATE, in inserted for INSERT and in deleted only for DELETE.

    So you'd have to check something like

    if(exists...

    ...and your only reply is slàinte mhath

  • RE: procedure or direct query?which one is best

    Agreed, if it possible, batch the data. You can build an xml fragment and flush it to database at appropriate interval, the performance of your app will gain tremendously.

    Regards

    Piotr

    ...and your only reply is slàinte mhath

  • RE: table scan problem

    Would you mind posting actual execution plans for both cases? There is a chance that query optimizer doesn't have enough information (statistics) about the values of dates in the temp...

    ...and your only reply is slàinte mhath

Viewing 15 posts - 16 through 30 (of 388 total)