Forum Replies Created

Viewing 15 posts - 5,956 through 5,970 (of 15,381 total)

  • RE: Problem with SQL Query

    dwain.c (1/13/2014)


    Sean Lange (1/13/2014)


    Of course let's not forget to include the cleanup to drop our temp tables.

    drop table #DEMOGRAPHICS

    drop table #CHARTATTACHMENT

    drop table #NOTES_TEXTDATA

    This is awesome advice. Is that in...

  • RE: Are the posted questions getting worse?

    Here is a true story from the field that a buddy of mine shared with me yesterday.

    Yesterday my supervisor sent me an email regarding a view that wasn't returning accurate...

  • RE: Problem with SQL Query

    I will make the assumption that you didn't actually read the article that was suggested. If you had you would have realized that we want is create table statements and...

  • RE: DIFFERENCE BETWEEN NOLOCK VS WITH(NOLOCK) IN SQL SERVER 2008

    Alan.B (1/13/2014)


    I will ignore your comment about suggesting that always using NOLOCK is a good idea when integrity of the results is not important.:w00t:

    To be clear (and to avoid being...

  • RE: case in where clause

    Not big on making this easy for anybody I see. Please post this as consumable data. Here is an example:

    create table #Address

    (

    idAddress int,

    idCompany int,

    IdClient int,

    MyAddress varchar(20)

    )

    insert #Address

    select 1 as idAddress,...

  • RE: Problem with SQL Query

    Skuldouggery (1/13/2014)


    I'm a little confused. Is that data at the bottom of what I posted not appropriate? Also, I do not know how to convert the Text datatype...

  • RE: case in where clause

    In order to help we will need a few things:

    1. Sample DDL in the form of CREATE TABLE statements

    2. Sample data in the form of INSERT INTO statements

    3. Expected results...

  • RE: DIFFERENCE BETWEEN NOLOCK VS WITH(NOLOCK) IN SQL SERVER 2008

    Alan.B (1/13/2014)


    kbhanu15 (1/9/2014)


    Hi All,

    can any one clarify the difference between NOLOCK and WITH(NOLOCK) in sql server 2008 ?

    which one is the best practice to use ?

    Thanks

    Bhanu

    I think everyone did a...

  • RE: Problem with SQL Query

    Skuldouggery (1/13/2014)


    Sorry, does this help? Also, I followed the link that the other gentleman had for putting some data together.

    None of this really helps a whole lot. We can...

  • RE: Advantages of INTERSECT over INNER JOIN

    You are quite welcome. That my explanation provided some insight. 🙂

  • RE: Question on Query

    Hi and welcome to the forums. It is very difficult to provide much of an answer because unfortunately you didn't much in the way of details.

    What happens if you change...

  • RE: Parameter sniffing Troubles

    There is a LOT of low hanging fruit here for performance improvements. I would say that 36 seconds is outside of the acceptable range for a query running in production....

  • RE: Advantages of INTERSECT over INNER JOIN

    j-1064772 (1/13/2014)


    You are right, I really meant INTERSECT only.

    EXCEPT was a mistake. (Also, [font="Courier New"]SELECT ProductID FROM Product WHERE NOT ProductID IN (SELECT ProductID FROM WorkOrder)[/font] also does yield the...

  • RE: Advantages of INTERSECT over INNER JOIN

    j-1064772 (1/13/2014)


    [font="Comic Sans MS"]These two T-SQL statements return the same results.

    If Microsoft deemed it necessary to add the EXCEPT command, then what are its advantages over an INNER JOIN...

  • RE: Problem with SQL Query

    Skuldouggery (1/13/2014)


    Hi,

    I ran this query multiple times last week in my SQL Server 2005 database and it worked fine. Today, I go to run the exact same query and...

Viewing 15 posts - 5,956 through 5,970 (of 15,381 total)