?
Solved

Line 1: Incorrect syntax near 'XML'.

Posted on 2002-07-10
2
Medium Priority
?
295 Views
Last Modified: 2006-11-17
I just installed sql server 2000 and am trying to get the following statement to execute from query analyzer.  However I get the Incorrect syntax near 'XML'.
    SELECT 1 as Tag
           ,0 as Parent
           ,Null as [user!1!user]
    FOR XML EXPLICIT
0
Comment
Question by:maytr
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 400 total points
ID: 7144096
Maybe the database is in compatibility mode 7 (sql server 7), because I tried your syntax and got no error...

CHeers
0
 

Author Comment

by:maytr
ID: 7144498
Guess something must have installed incorrectly, I reinstalled and all is good
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

718 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question