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 2005 Forums
 Transact-SQL (2005)
 Filling temp table from XML based on searchcritera

Author  Topic 

raviborra
Starting Member

14 Posts

Posted - 2008-06-30 : 07:30:29
Hi,

I need to get data from the XML to Data Table dynamically based on search criteria in the Stored Proc.Could any one please suggest the best solution.

Thanks,
BRK.

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-06-30 : 07:45:49
read about OPENXML in booksonline

http://msdn.microsoft.com/en-us/library/aa276847(SQL.80).aspx
Go to Top of Page

raviborra
Starting Member

14 Posts

Posted - 2008-06-30 : 08:02:26
OpenXml is not suitable here, because search criteria should come from dynamically.That means search parameters are one or many.It depends, so i need to filter the XML dynamically.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-06-30 : 08:26:34
quote:
Originally posted by raviborra

OpenXml is not suitable here, because search criteria should come from dynamically.That means search parameters are one or many.It depends, so i need to filter the XML dynamically.


Are you storing xml in a xml datatype field?
Go to Top of Page

raviborra
Starting Member

14 Posts

Posted - 2008-06-30 : 08:42:50
No, I am stroing in VARCHAR field
Go to Top of Page
   

- Advertisement -