Forum Replies Created

Viewing 15 posts - 5,401 through 5,415 (of 5,502 total)

  • RE: How to Create an XML in MS SQL Server 2000

    Hi,

    I'm really sorry to mess up that badly with the last two approaches. :crazy: :blush:

    Final approach:

    Attached please find a bcp script that copies out your data in the desired format...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: having HTML tags/code in the Answer

    Hi,

    I'm using FireFox 2.0.0.9.

    The following post http://www.sqlservercentral.com/Forums/FindPost707540.aspx dos not show any XML data.

    However, Flo came up with a nice solution: see http://www.sqlservercentral.com/Forums/FindPost707572.aspx

    (upgrade to FireFox 3 is not required...)



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Reading from XML does not work

    kavitus (4/30/2009)


    Any good resources of starting with XQuery

    I found the following article very helpful:

    http://www.simple-talk.com/sql/t-sql-programming/xml-jumpstart-workbench/

    @Flo:

    The "quote-trick" works on my FireFox-Version, too... :w00t:



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Reading from XML does not work

    Florian Reischl (4/30/2009)


    Hi

    Your XML is not valid.

    * XML is case sensitive

    * Start element "record" and end element "RECORD"

    * Start element "deptid" and end element "DEPT"

    * Start element "DEPTID" and end...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Reading from XML does not work

    Instead of using OpenXML you should look into XQuery.

    If you have trouble getting XQuery to work, please attach the XML file together with what you've tried and we probably can...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: How to Create an XML in MS SQL Server 2000

    Hi,

    I spent some more time on the issue.

    Here's a solution that should work with SS2K:

    SELECT TOP 15

    BookType.type,

    (SELECT

    Author.au_fname,

    Author.au_lname,

    Author.phone,

    Author.address,

    Author.city,

    (Select

    BooksByAuthor.title_id,

    BooksByAuthor.title,

    BooksByAuthor.price

    FROM titleauthor t1

    INNERJOIN @titles BooksByAuthor

    ON t1.title_id = BooksByAuthor.title_id

    WHERE t1.au_id = Author.au_id

    AND BooksByAuthor.type...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: xml and sql server 2005

    Alternative to GSquared's solution you also can directly select the values (without the .query('.') part):

    --based on GSquared's solution in previous post

    select Photos.Photo.value('(@path)[1]','varchar(100)') as PhotoPath

    from @XML.nodes('(jpgrotator/photos/photo)') Photos(Photo)



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: How could i get following result

    AFAIK it stand for Original Poster (the one who started the thread with the first post).



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: How could i get following result

    saurabh.dwivedy (4/29/2009)


    Just wanted to mention a small point here: Your code assumes that the starting position will always be 1. What happens if the match string were to be somewhere...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: How to Create an XML in MS SQL Server 2000

    Unfortunately, the data you provided cannot be used right away, since I don't have a database "pubs" nor the tables you referred to.

    It took me a moment to reformat your...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Looking for a query match in 1 of multiple columns

    Hi,

    like Gail already stated, normalization of the table would solve the issue in general by using "the easy way"... 🙂

    Your database design has the following "disadvantages": Where do you store...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: How to Create an XML in MS SQL Server 2000

    Please post sample data as stated in my post above (table definition, sample data ready to insert and expected output).



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: How to Create an XML in MS SQL Server 2000

    Maybe the following article will help you (Google search string: "SQL 2000 FOR XML"):

    http://www.databasejournal.com/features/mssql/article.php/2196461/XML-and-SQL-2000-Part-1.htm

    If you need a more detailed explanation you should provide more detailed information as well.

    For help on...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: How could i get following result

    Hi Atif,

    you need to remove the '%' from the left side of your like clause.

    Otherwise a val='23456789123' will show up as a result, but it shouldn't.



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: How to find the SP depends on

    You can query the text column of syscomments.



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

Viewing 15 posts - 5,401 through 5,415 (of 5,502 total)