Forum Replies Created

Viewing 15 posts - 18,556 through 18,570 (of 22,214 total)

  • RE: Huge Query - PageIOLatch_SH among other things..

    Things like this will lead to table scans, which will kill your performance:

    WHERE

    COALESCE(Last_live_insert_date, Last_booked_insert_date)

  • RE: Stored proc execution status

    Krishna (1/30/2009)


    Why dont you run Profiler against the troubled server?

    Check the events:

    TextData

    ApplicationName

    HostName

    LoginName

    EndTime

    SPID

    CPU

    Duration

    Reads

    Writes

    Profiler records when a proc, query or statement starts and when a proc, query or statement ends. It...

  • RE: How effective CTE's are?

    Except for the recursion, a CTE is really just a more sophisticated way to create sub-selects. So they're just as effective as the sub-selects were with the added value that...

  • RE: beginner create a join table

    So it's two different databases? You can join the tables together in a query by referrencing the database name, but you can't create a foreign key across databases.

  • RE: Are the posted questions getting worse?

    You must be new in this galaxy.

  • RE: Are the posted questions getting worse?

    Bruce W Cassidy (1/29/2009)


    Greg Edwards (1/29/2009)


    I'd say that depends on if you got the correct results.:w00t:

    [font="Verdana"]Yup. I added a cross join as well. And the full outer joins...

  • RE: Are the posted questions getting worse?

    Jack Corbett (1/29/2009)


    All right, I've been essentially offline for 3 days and there are close to 100 posts on this thread AND IT has become self-aware!

    My question is, was The...

  • RE: Are the posted questions getting worse?

    GilaMonster (1/29/2009)


    Bruce W Cassidy (1/29/2009)


    sometimes it's fun having a good ol' mud-slinging match with someone who is absolutely sure they are right. And sometimes that's even me!

    We...

  • RE: Poor Performing Query When running a Report

    Jean-François Bergeron (1/29/2009)


    Wow, I did not know that. So when I receive a string, for a where Clause, like this one, for example:

    CAST(MfrCode AS NVARCHAR(max)) LIKE 'tel%' AND

    CAST(VendorCode AS NVARCHAR(max))...

  • RE: Poor Performing Query When running a Report

    Jean-François Bergeron (1/29/2009)


    Grant, does the same behavior apply for the Cast keyword? Because the application we use sends me some dynamic SQL that is always Casted as nvarchar(max). Could that...

  • RE: Become a SQL Server Developer or Administrator

    I've been a DBA, exclusively, for about 10 years now and no certification whatsoever. You just don't need one. Knowledge and experience are what really counts. If you have three...

  • RE: Poor Performing Query When running a Report

    Since the functions seem well in hand, I'll address other stuff.

    You're using CONVERT on your columns in the WHERE clause. This will absolutely prevent the indexes, if any from being...

  • RE: Am I deadlocking?

    It sounds like you're locking the resource and then blocking all others, not like a deadlock. Leave the deadlock monitors in place, but you should take a look at the...

  • RE: MAXDOP Hints

    The thing is, MAXDOP is a way to limit paralellism. A lot of times, in the OLTP type systems I work in, parallel queries cost more than they provide benefit....

  • RE: MAXDOP Hints

    Why do you want to mess with MAXDOP? Your default setting is 0, which means that SQL SErver will use as many processors as it has available to it. Maybe...

Viewing 15 posts - 18,556 through 18,570 (of 22,214 total)