I am trying to write a extremely simple Sql Server 2000 Query through VS 2003 Query. I made a view and now I am trying to use For XML RAW to bring back xml from that view.
If I type this:
SELECT * FROM ViewName
WHERE (EMPLOYEEID = '46109')
It brings back 14 beautiful rows
If I type this
SELECT * FROM ViewName
WHERE (EMPLOYEEID = '46109')
FOR XML RAW
It brings back 2 lines that say <Binary>
When I go directly against my Sql Server those lines turn out to be one full xml line <raw attributes /> and one half line <raw attributes
What am I doing wrong here... I have been at work trying to figure this out for the past 2 days! It seems that Sql Server 2000 doesn't like for XML and views together! It works if I query all 13 tables but that will take entirely to long.
If I type this:
SELECT * FROM ViewName
WHERE (EMPLOYEEID = '46109')
It brings back 14 beautiful rows
If I type this
SELECT * FROM ViewName
WHERE (EMPLOYEEID = '46109')
FOR XML RAW
It brings back 2 lines that say <Binary>
When I go directly against my Sql Server those lines turn out to be one full xml line <raw attributes /> and one half line <raw attributes
What am I doing wrong here... I have been at work trying to figure this out for the past 2 days! It seems that Sql Server 2000 doesn't like for XML and views together! It works if I query all 13 tables but that will take entirely to long.