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.
| Author |
Topic |
|
RitaBowman
Starting Member
10 Posts |
Posted - 2007-05-16 : 11:22:01
|
I am receiving the following messageServer: Msg 170, Level 15, State 1, Line 30Line 30: Incorrect syntax near './Language/ID'.Using this codeDECLARE @LocalizedContentXML AS INTDECLARE @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 messageServer: Msg 170, Level 15, State 1, Line 30Line 30: Incorrect syntax near './Language/ID'.Using this codeDECLARE @LocalizedContentXML AS INTDECLARE @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 AthalyeIndia."The IMPOSSIBLE is often UNTRIED" |
 |
|
|
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. |
 |
|
|
|
|
|
|
|