G
Guest
Hi
I am trying to design a system such that I can store all of a user's information as a XML string stored in a field in the database (SQL2000). Let's say the XML string has XML tags such as first name, last name, phone number, address etc. Is there a way to query the SQL database based on a XML tag? eg: Can I query the database saying, select user id for all users with last name = "Cooper" even though the last name of the user is embedded in the xml string field of the table? (assuming that user id and the xml string are fields in the database table
One way of doing this would be to read the xml string and then parse it. But when I have a large number of users, this could get very slow. Is there a better way of doing this
Thanks
-Divya
I am trying to design a system such that I can store all of a user's information as a XML string stored in a field in the database (SQL2000). Let's say the XML string has XML tags such as first name, last name, phone number, address etc. Is there a way to query the SQL database based on a XML tag? eg: Can I query the database saying, select user id for all users with last name = "Cooper" even though the last name of the user is embedded in the xml string field of the table? (assuming that user id and the xml string are fields in the database table
One way of doing this would be to read the xml string and then parse it. But when I have a large number of users, this could get very slow. Is there a better way of doing this
Thanks
-Divya