Viewing 12 posts - 1 through 13 (of 13 total)
ya i could get my solution as
select
ZZ.gid,
ZZ.Record1 as 'OldRecord1',
CASE WHEN XX.Record1 IS NULL THEN 'No New Record' ELSE XX.Record1 END as 'NewRecord1' ,
ZZ.Record2 as 'OldRecord2',
CASE WHEN...
January 12, 2013 at 8:23 am
actually i need to get the output of filtered xml as
<XML >
<>
<>
.....
plz suggest a way
September 19, 2012 at 7:18 am
Actually what i am doing is my query is fetching xml from db which contains the name space
like
<XML xmmlns:https://temp.../test.xsd>
Declare @xml xml
select @xml =xmlcontent from tablename...
September 19, 2012 at 1:54 am
SELECT
dense_rank() OVER (ORDER BY C.value('local-name(.)', 'varchar(50)')) AS 'SN',
NodeName = C.value('local-name(.)', 'varchar(50)')
, NodeValue = C.value('(.)[1]', 'varchar(50)')
FROM @xml.nodes('/XML/Provider/*') AS T(C)
actually the xml that i am fetching is very large approx 5mb...
September 16, 2012 at 2:08 am
actually the out put of the query changes using ur suggestion.The value of SN column changes
set @starttag ='XML'
set @root ='Provider'
SELECT
dense_rank() OVER (ORDER BY C.value('local-name(.)', 'varchar(50)')) AS 'SN',
NodeName = C.value('local-name(.)',...
September 12, 2012 at 7:33 am
Actually i have a dynamic XML.I have only the starting root node of the xml.The child nodes are dynamic keeps on changing ...I have to translate to it into...
September 10, 2012 at 10:52 am
I am getting the out put of a query as
SN NodeName NodeValue
1 ...
September 10, 2012 at 3:09 am
i tried to achieve this by creating a table variable and altering its structure with the node name by traversing a loop. and again inserting the node values to the...
September 9, 2012 at 7:27 am
if i can manage to get the the starting and the root node as reference...i can make it very generalized like:-
Declare @xml xml
Set @xml = ...
September 9, 2012 at 7:00 am
see this is basically for statically getting the tabular structure where i know the node names.
but for the generalized work around whats the procedure can it be possible?
I will be...
September 9, 2012 at 6:53 am
The output of the query is:-
Declare @xml xml
Set @xml =
'<XML>
<Provider>
...
September 9, 2012 at 4:38 am
I could get the node names as column names
SELECT
distinct NodeName = C.value('local-name(.)', 'varchar(50)')
-- , NodeValue = C.value('(.)[1]',...
September 6, 2012 at 1:57 pm
Viewing 12 posts - 1 through 13 (of 13 total)