Forum Replies Created

Viewing 15 posts - 5,806 through 5,820 (of 8,416 total)

  • RE: XML Parse Query

    This works too:

    SELECT n1.value('.', 'VARCHAR(30)'),

    n2.value('.', 'INTEGER'),

    n3.value('.', 'BIT')

    FROM @XML.nodes('./xfadata/changeDebitCard') Nodes (node)

    CROSS

    APPLY...

  • RE: SQL Query - Pivot

    lmu92 (2/26/2010)


    Would you mind providing a test scenario so we have sometihng to play with? (table def, some sample data and your current query)

    I'll second that. I'm happy to...

  • RE: Sort output on diffent columns

    Divya Agrawal (2/26/2010)


    Is it possible to do this without using dynamic query?

    It is, but it is difficult to get it right, and more importantly, to get it to stay that...

  • RE: Pivot to 1 column

    Good, I am genuinely pleased you took it all the right way. Thanks Lutz!

  • RE: Identity field on each table

    Jeff Moden (2/26/2010)


    Heh... I've never actually met or heard of anyone who has actually done that.

    Hello! Pleased to meet you.

    Actually, I worked at a place which started at one...

  • RE: Identity field on each table

    GilaMonster (2/26/2010)


    It's common, but it doesn't have to be int. As far as I know, any numeric data type will work

    You can use decimal, int, numeric, smallint, bigint, or tinyint...

  • RE: Want to convert my nvarchar(512) to nvarchar(max)

    rajesh-210109 (2/24/2010)


    If i change my column type from nvarchar(512) to nvarchar(max), will it degrade the performance?

    It might do. While the physical storage won't change much (the Storage Engine pretty...

  • RE: Please Help - I've gone cross eyed.

    GilaMonster (2/26/2010)


    Seriously, there is no good way of getting an ID value from the database, then later putting the rest of the row in.

    There is, and it's called a Sequence...

  • RE: Fast random row selector

    Is the ID field on the Keyworld table a sequence number? Is it guaranteed to be contiguous? If so, simple determine the lowest (MIN) and highest (MAX) current...

  • RE: Slow performant select query, yet apparently simple.

    Those TOP expressions really require an ORDER BY to make sense.

    The width of your table is a problem, consider moving the LOB data off row.

    As Jeff says, the thing to...

  • RE: SQL Server 2005 Performance Issue with insertion of 2000 Recs per Second ( 300 KB of Data)

    Two small observations:

    1. You're passing a unique identifier to the procedure that isn't used

    2. The clustered index you have defined is likely causing many page splits

    Paul

  • RE: Calculating interest query

    Chris,

    Turns out all that is needed to get rid of the index spool is to define the clustered index as UNIQUE. Given that information, a better plan is produced...

  • RE: SQL Random selection with NewID()

    shawndidy (2/25/2010)


    Tanks alot for going to great length and writing this PL/SQL script. I'm still mastering Pl?QL.

    This was the statement that led me to believe you didn't know 😉

    I have...

  • RE: Pivot to 1 column

    lmu92 (2/27/2010)


    Ok, I see your point.

    Didn't have to deal with those "special characters" in my concatenation scenarios (yet), so I wasn't aware of the side effects. Thanks for clarification. Learned...

  • RE: dynamic sql issues

    Dave Ballantyne (2/27/2010)


    From what I have found forced parametrization does, as you would expect , completely negate any thing in that article. I do have a lump of code...

Viewing 15 posts - 5,806 through 5,820 (of 8,416 total)