Forum Replies Created

Viewing 15 posts - 151 through 165 (of 328 total)

  • RE: Join Issue

    I got the same results as Dung Dinh when I set up a similar test scenario, I only got one row from the resulting query. You might want to look...

  • RE: Join Issue

    Heres a fairly literal approach. However, I'm sure theres more interesting ways to go about it!

    select s.id, s.name1,s.name2,d.[desc]

    from dbo.Test_Join_Source s

    inner join dbo.Test_Join_Destination d

    on

    s.name1=d.name1

    union

    select s.id, s.name1,s.name2,d.[desc]

    from dbo.Test_Join_Source s

    inner join dbo.Test_Join_Destination...

  • RE: Why does my SELECT query only return results with "TOP XX" in front of it?

    ALZDBA (5/21/2012)


    and of course, your function causes any indexes defined on that column not to be used as efficient as possible, if used at all.

    No doubt, change the code or...

  • RE: Why does my SELECT query only return results with "TOP XX" in front of it?

    Lowell (5/21/2012)


    because you are putting a function on thee column, SQL has to convert the WHOLE table to give you results.

    with a TOP, it can shortcut and convert fewer...

  • RE: Japnese char in XML

    when defining your cursor, maybe you could use nvarchar(max) instead of varchar(max), just a thought!

    DECLARE Exp_cursor CURSOR for

    select x.nodeValue

    from

    (

    -- this line I would change each occurrence of 'varchar(max)' to...

  • RE: Virtual Server and SQL 2008 R2 disconnecting

    I would have a first look at the networking side. How does remote desktop to the server work for instance, does that work fine?

  • RE: Please help with my data data model design.

    Steve Thompson-454462 (5/3/2012)


    patrickmcginnis59 (5/3/2012)


    Steve Thompson-454462 (4/27/2012)


    I'm curious as to why an attribute such as Student is getting it's own table. Is there more Student-related data that needs to be tracked?

    I...

  • RE: Please help with my data data model design.

    Steve Thompson-454462 (4/27/2012)


    I'm curious as to why an attribute such as Student is getting it's own table. Is there more Student-related data that needs to be tracked?

    I would have a...

  • RE: How to convert this XML into columns

    Sean Lange (5/2/2012)


    patrickmcginnis59 (5/2/2012)


    Sean Lange (5/2/2012)


    Well unless you are doing on the most god awful things I have seen some sql people do...which is to create a temp table and...

  • RE: How to convert this XML into columns

    Sean Lange (5/2/2012)


    Well unless you are doing on the most god awful things I have seen some sql people do...which is to create a temp table and then call a...

  • RE: Statement giving tempdb space errors - help!

    rarara (4/30/2012)


    (snip)

    1) Is there any way for me to determine the size of TEMPDB needed based on the table sizes, and how many rows might be getting selected prior to...

  • RE: Column = anything

    I know that when I write report queries, I often use:

    SELECT COL1, COL2, COL_W_CRITERIA WHERE COL_W_CRITERIA = @criteriaparam OR @criteriaparam = 'all'

    Then if the user enters 'all' for the criteria...

  • RE: What's a Reasonable Timeframe for a Cursor To Remain Open On SQL Server?

    What I would do is ask the vendor how they prefer their application's database indexes get maintained without interfering with their cursors and then follow through with what they advise.

  • RE: sp to create date table

    I ran it by chopping off the insert portion as I didn't have a table definition and the code seemed to run ok, returning a bunch of rows with date...

  • RE: Help - I have not coded in a long time

    @adrian.facio

    nice solution!

Viewing 15 posts - 151 through 165 (of 328 total)