Forum Replies Created

Viewing 15 posts - 2,281 through 2,295 (of 5,841 total)

  • RE: Union Join between 3 SQL Queries

    Keith Tate (12/11/2013)


    I would look at this part of your where clauseand (spt.IsNextOfKin=1)or /* using OR as not ALL employees meet the three conditions */

    ([set].IsNextOfKin=1)or

    (sat.IsNextOfKin=1)

    If you want one of those...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Merge - Pros and cons

    Lempster (12/10/2013)


    Can you not even be bothered to type "TSQL MERGE" into your favourite search engine? Jeez...

    Which, or how many, of the 297000 returns that Google brings back would you...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: SQL SERVER 2012 MIGRATION FROM 2005, Help needed!!

    srikanth5868, please start a new thread for your question.

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: SQLServerCentral apologizes and you can win a book

    Good on SQLServerCentral.com for stepping up publicly on this. The book give-away is just icing. Here is a very complex example I show in my SQL Server 2012...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Slow Query Issue...

    select distinct top 100

    i.invoice_id, i.buyer_code, i.submit_time, i.request_id

    from

    dbo.invoice i inner join dbo.invoice_adj ia on i.invoice_id = ia.invoice_id and ia.amount !=0

    where

    (i.detail_amount != 0 or i.tax_amount!=0)

    and not exists (select 1

    from dbo.invoice_detail...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Query performance

    Compare the amount of data in the tables involved. Perhaps someone did some inserts or deletes that changed estimated row counts.

    Verify that the queries are EXACTLY the same, and...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: SQL SERVER 2012 MIGRATION FROM 2005, Help needed!!

    SQL!$@w$0ME (11/29/2013)


    Thanks a lot guys... I forgot to mention that this dev environment is a VM. Does these drive recommendations still applies even if its in vm?

    Sure, but being a...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: SQL SERVER 2012 MIGRATION FROM 2005, Help needed!!

    SQL!$@w$0ME (11/28/2013)


    For dev environment d: for app, e: for data, f: for log, g: for tempdb and h: for backup is it too much im asking for?

    Disk letters mean...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: SQL SERVER 2012 MIGRATION FROM 2005, Help needed!!

    SQL!$@w$0ME (11/28/2013)


    Hi All,

    We are planning to migrate to SQL Server 2012 from 2005. We are in the initial process of building a 2012 DEV environment in Windows 2012. Please assist...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Merge - Pros and cons

    I gave a very good talk on MERGE that you can download here: http://sqlsaturday.com/217/schedule.aspx

    Note you can View All Events and open the schedule page for every SQL Saturday that...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: A "special" stored procedure problem

    I am sorry Luka, but I still have no idea what you need here. Your data doesn't match the graphic you gave (which covers 2010-03-26 06:00 through 2010-03-27 06:00),...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: How to reduce the joins in sql querry

    jcb (11/20/2013)


    ...(inner) joining 10 huge (well designed) tables by (tunned) indexed columns ill run smoothly.

    Until you have some data value skew, in which case the probability of getting screwed increases...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: A "special" stored procedure problem

    Please provide a sample table with sample data and expected outputs. We can't help easily based on verbal descriptions.

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Getting an error when attempting to insert a record into a table.

    Sean Lange (11/18/2013)


    There is nothing wrong with your ddl. I am guessing this is on the .NET side. What does the code look like?

    I concur. Run Profiler with RPC...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Mass Delete Just Hangs

    1) IIRC, it is mandatory to update all statistics with FULLSCAN when upgrading from SQL 2005. You could be getting a horribly bad plan on the delete.

    2) use sp_whoisactive...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

Viewing 15 posts - 2,281 through 2,295 (of 5,841 total)