Results 1 to 7 of 7

Thread: openxml

  1. #1
    Join Date
    Jun 2003
    Posts
    4

    Unanswered: openxml

    Any time I try to use the OPENXML() function in a select statement I get

    Invalid object name 'OPENXML'.



    Here is an extract of my code:

    SELECT * FROM OPENXML(@hDoc, '//APPLICATION/Applicant')

    Any ideas why this doesn't work?

  2. #2
    Join Date
    Aug 2002
    Location
    Scotland
    Posts
    1,578
    What is the version and SP level of SQL Server?
    Also compatibility level of database?
    --Satya SKJ
    Microsoft SQL Server MVP
    [IMG]http://sqlserver-qa.net/google_bart.gif[/IMG]

  3. #3
    Join Date
    Jun 2003
    Posts
    4
    SQL Server Enterprise 2000 SP 3 running on NT

  4. #4
    Join Date
    Aug 2002
    Location
    Scotland
    Posts
    1,578
    Have you followed as per the syntax from books online for OPENXML.
    --Satya SKJ
    Microsoft SQL Server MVP
    [IMG]http://sqlserver-qa.net/google_bart.gif[/IMG]

  5. #5
    Join Date
    Jun 2003
    Posts
    4
    Yep.

    SELECT * FROM OPENXML(@hDoc, '//APPLICATION/Applicant')

  6. #6
    Join Date
    Aug 2002
    Location
    Scotland
    Posts
    1,578
    Its really weird, when I tried on my machine no problem. Have you tried the same query from other client.
    --Satya SKJ
    Microsoft SQL Server MVP
    [IMG]http://sqlserver-qa.net/google_bart.gif[/IMG]

  7. #7
    Join Date
    Jun 2003
    Posts
    4
    I've tried it on multiple clients and indeed multiple servers!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •