Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Invalid syntax error message

Author  Topic 

RitaBowman
Starting Member

10 Posts

Posted - 2007-05-16 : 11:22:01
I am receiving the following message

Server: Msg 170, Level 15, State 1, Line 30
Line 30: Incorrect syntax near './Language/ID'.

Using this code


DECLARE @LocalizedContentXML AS INT

DECLARE @LanguageContent TABLE
( LanguageId int Not Null )

INSERT INTO @LanguageContent
( LanguageId )

-- Values (1)

SELECT *
FROM OPENXML(@LocalizedContentXML, '/ArrayOfQuestionnaireMode/QuestionnaireMode/ModeLanguageCollection/QuestionnaireModeLanguage', 3)
WITH
( LanguageId './Language/ID')



I can't see what the problem is. The xpath is correct, other's have looked at it and can't figure it out either.

Any ideas?

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2007-05-16 : 11:40:27
quote:
Originally posted by RitaBowman

I am receiving the following message

Server: Msg 170, Level 15, State 1, Line 30
Line 30: Incorrect syntax near './Language/ID'.

Using this code


DECLARE @LocalizedContentXML AS INT

DECLARE @LanguageContent TABLE
( LanguageId int Not Null )

INSERT INTO @LanguageContent
( LanguageId )

-- Values (1)

SELECT *
FROM OPENXML(@LocalizedContentXML, '/ArrayOfQuestionnaireMode/QuestionnaireMode/ModeLanguageCollection/QuestionnaireModeLanguage', 3)
WITH
( LanguageId int './Language/ID')



I can't see what the problem is. The xpath is correct, other's have looked at it and can't figure it out either.

Any ideas?



Harsh Athalye
India.
"The IMPOSSIBLE is often UNTRIED"
Go to Top of Page

RitaBowman
Starting Member

10 Posts

Posted - 2007-05-16 : 12:19:45
Thank you very much. I've spent about 6 hours trying to debug this. I would feel really, really bad, but my colleagues didn't catch it either.
Go to Top of Page
   

- Advertisement -