Viewing 13 posts - 16 through 28 (of 28 total)
I just modified the SQL you sent and put the XML data in # table and wow it is much faster.
INSERT INTO #xmlData
SELECT CAST((SELECT '' + line
...
October 25, 2012 at 2:36 pm
I don't see much difference in performance. I have heard that OPENXML is faster, never used though. Do you think using OPENXML will be much faster? If so, how will...
October 25, 2012 at 1:20 pm
Nevermind.... I figured it out. Added a ID column and use the ID in the while.
SELECT @RecordID = MIN(ID) from #tblGroups
WHILE @RecordID IS NOT NULL
BEGIN
October 17, 2012 at 1:24 pm
;WITH XMLNAMESPACES ( default 'http://schemas.microsoft.com/office/infopath/2003/myXSD/2011-12-28T21:32:27')
SELECT
c.value('field1[1]','varchar(100)'),
c.value('field2[1]','varchar(100)')
--, other nodes here
FROM
YourTableName y
CROSS APPLY yourXmlCol.nodes('//myFields') t(c);
February 22, 2012 at 7:18 am
Yes, the table has 4 columns but the data for 5 directores and it's permissions is stored in single record. I want the output to have 5 rows instead of...
December 6, 2011 at 9:10 am
The query works great... The only column which I am not able to shred is the <DataSet Name="">. Any help on this is appreciated.
-<DataSets>
+<DataSet Name="GetLastCalendarDate">
+<DataSet Name="PrevDate">
+<DataSet...
November 2, 2011 at 12:52 pm
Tried with the new query but performance is a issue. If anybody can help with OPENXML query that would be great. I know in the past some has said that...
September 1, 2011 at 8:16 am
Dave, can you be more specific on which underlying design is wrong and which sort of problem I will be fighting?
March 8, 2011 at 9:25 am
Attached are the 2 execution plans (with and without variable). Regarding disbaling parameter sniffing, after we upgraded our databases to SQL 2008 R2 from SQL 2005 version many of our...
March 8, 2011 at 8:56 am
How about Reporting services on SQL Server 2005 32 bit be able to pull data from SQL Server 2008 64 bit databases?
April 19, 2010 at 7:29 am
So only Enabling /PAE should also help.., right?
July 25, 2008 at 11:00 am
Viewing 13 posts - 16 through 28 (of 28 total)