Solved

Line 1: Incorrect syntax near 'XML'.

Posted on 2002-07-10
2
293 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 100 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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

623 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