Forum Replies Created

Viewing 15 posts - 4,231 through 4,245 (of 5,504 total)

  • RE: Stored Procedure Parameters

    Mando_eg (2/20/2010)


    Thanks lmu92 for your reply

    You put me on the start point, I will keep searching...

    I hope if you have some examples to put the links to see it because...

  • RE: Querying XML

    The "XML Workshop" series of articles by Jacob Sebastian (search this site for details, please) is a great start and covers the import of xml data as well as formatting...

  • RE: Stored Procedure Parameters

    Mando_eg (2/20/2010)


    Helo,

    I have 2 questions about SP:

    1- How can I make the SP's parameter receive an array value to work on each value in it ?

    2- How can I call...

  • RE: Parsing data

    Paul White (2/20/2010)


    ...

    I often hear the objection about not wanting to use CLR just for one thing 🙁

    The trouble is, until you add one, the next one will always be...

  • RE: Parsing data

    Paul White (2/19/2010)


    The CLR solution is faster than T-SQL solution in all but a very few cases - and even then there's not much in it.

    Paul

    That's probably true (I trust...

  • RE: Parsing data

    If you don't use CLR on a regular base or you'd like to see an alternative and still extremely fast way to split a string please have a look at...

  • RE: How to parse a simple xml string

    Here's an example with a subset of your data:

    DECLARE @xml XML

    SET @xml='

    <inserted

    u_user_id="{2f0a2500-1c1d-456d-83f2-ca48dbed642d}"

    u_user_type="1">

    <u_x005F_xmlextension>

    <VanillaUser xmlns="http://snowvalley.com/VanillaUser.xsd" />

    </u_x005F_xmlextension>

    </inserted>'

    SELECT

    c.value('@u_user_id[1]', 'varchar(50)') AS u_user_id,

    c.value('@u_user_type[1]', 'varchar(50)') AS u_user_type,

    c.query('u_x005F_xmlextension') AS u_x005F_xmlextension

    FROM @xml.nodes('inserted') T(c)

    For details please search this...

  • RE: Hierarchy Structure Problem

    A CTE (at least as it is used in this case) is nothing but a different kind of writing subqueries.

    Note: I used the same alias for the subqueries as I...

  • RE: Migracion de Usuario de Una Base datos y permisos en sus objetos

    Please note that posters on this forum usually will use English laguage for posting, even if it's second or third language.

    You'll limit the number of people able to help you...

  • RE: Calculating distance between 2 Easting & Northing values (UK)

    Dave Ballantyne (2/18/2010)


    With a simple google search i found this (very good) description.

    http://en.wikipedia.org/wiki/Grid_reference

    Would seem that simple Pythagoras need only be applied

    ... and based on your interesting link I used "Grid...

  • RE: Temporal Query Problem

    I thought you were all set based on Jeffs recommendation so I didn't continue to follow that thread... Sorry about that.

    Regarding a requirement from one of your previous posts:

    dataczar (2/16/2010)


    ...

    Claims...

  • RE: Hierarchy Structure Problem

    I would use a split string function (for a sample please have a look at the Tally table link referenced in my signature) to get the data in a relational...

  • RE: Calculating distance between 2 Easting & Northing values (UK)

    Just want to confirm: Are you using SQL Server 2008? (since posted in the 2K8 forum)

    If so: did you look into geospatial data type?

  • RE: Select distinct question

    ali.mahmoud.habib (2/17/2010)


    lmu92 (2/17/2010)


    You could add "ORDER BY MIN(Serial)" to your SELECT clause.

    Serial --> is not included in my select

    Select description from x

    any other idea please

    You might not like...

  • RE: Select distinct question

    You could add "ORDER BY MIN(Serial)" to your SELECT clause.

Viewing 15 posts - 4,231 through 4,245 (of 5,504 total)