Forum Replies Created

Viewing 15 posts - 48,766 through 48,780 (of 49,571 total)

  • RE: SP Performance Difference

    Then it's definatly a parameter sniffing issue. Can you try another .net experiment please?

    First revert back to the old stored proc, without the variables.

    This time, instead of passing the...

  • RE: SP Performance Difference

    Can't see the images, because they're on your machine. Could you paste the differeing lines of the exec plan, as well as the query that you called the .net with?

    Thanks

  • RE: SP Performance Difference

    It could be parameter sniffing. I wouldn't think so if you used the proc in SSMS, but is a possibility.

    Can you post the proc, the code you used to call...

  • RE: SP Performance Difference

    Have a look at the exec plan for both, see what the differences are.

    In management studio, just run with the execution plan option on. for the application run one, you...

  • RE: Restore Database to another server

    Is there enough space on the drive?

    Is the drive (or folder) read only or encrypted?

  • RE: Performance gap between two seemingly identical databases

    Are the statistics up to date on both databases? Are the indexes on one more fragmented than on he other?

  • RE: function for current transaction....

    Pleasure

  • RE: Distinct with no order

    I saw your example. Why 3,1,2. why not 2,1,3?

    As I said, if you want to have data in a specific order (whatever it may be) you have to specify an...

  • RE: Distinct with no order

    What do you mean by 'no order'?

    If you want your data back in a specific order, you must specify an order by clause. Otherwise it comes back however the...

  • RE: Old editing...

    Or maybe what I've seen on a lot of other forums. The text bix to enter the new post is at the top of the page and all the other...

  • RE: divide by zero, but no fields are zero

    Try this way indstead. Aside from the divide by zero, it's better for index selection (if you have appropriate indexes)

    Select *

    from table t

    where t.value_a > 10*t.value_b

    AND t.value_c...

  • RE: function for current transaction....

    Or you can use sys.dm_exec_requests and pass the SQL handle to the sys.dm_exec_sql_text function and get the entire sql statement. (DBCC Inputbuffer only displays the first 255 characters)

    select * from...

  • RE: please help me with this index problem..??

    That's not ideal either because, at optimisation, the query optimiser can't evaluate the first half of the or. SQL doesn't have short circuit evaluation

    The only way I've managed to deal...

  • RE: SQL Server 2005 Adoption

    Don't know about the global parameters, I don't think we use them. Our DTS packages are mainly complex data flows.

    What we decided to do was to ensure that the people who...

  • RE: SQL Server 2005 Adoption

    Not sure if this is addressed to me or not, but I'll answer.

    No, we're not using SSIS to exec the DTS packages. We imported the DTS packages as legacy objects...

Viewing 15 posts - 48,766 through 48,780 (of 49,571 total)