SQL Query Stalls While Importing a ClickBank XML feed into SQL Database
Perfect Erland! Many, MANY thanks!Ken McArthur http://kenmcarthur.com
View ArticleSQL Query Stalls While Importing a ClickBank XML feed into SQL Database
And if you wonder how I and Alejandro know all this, the answer is that XML performance in SQL Server is very much about trial and error. So if one thing doesn't work, try another. Even if it appears...
View ArticleSQL Query Stalls While Importing a ClickBank XML feed into SQL Database
Here is a version without using an xml variable.INSERT INTO dbo.cbimport ( CategoryName, Title, Site, PopularityRank, Description, HasRecurringProducts, Gravity, EarnedPerSale, PercentPerSale,...
View ArticleSQL Query Stalls While Importing a ClickBank XML feed into SQL Database
I was back home, and was able to test it, but Erland beat me. It takes 8 seconds to load 14393 rows.SET NOCOUNT ON; USE tempdb; GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON...
View ArticleSQL Query Stalls While Importing a ClickBank XML feed into SQL Database
By the way, thanks for giving a link to the actual data. That helps a lot!Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se
View ArticleSQL Query Stalls While Importing a ClickBank XML feed into SQL Database
Try this:DECLARE @x xml SELECT @x = Convert(xml, x, 2) FROM OPENROWSET( BULK 'c:\temp\marketplace_feed_v2.xml', SINGLE_BLOB) AS T(x)INSERT INTO cbimport (CategoryName, Title, Site,...
View ArticleSQL Query Stalls While Importing a ClickBank XML feed into SQL Database
Hey Kalman,Many thanks for taking the time to respond. Unfortunately, it's not available on Microsoft SQL Server Management Studio Express9.00.4035.00. Wish it was. A simple import wizard would be...
View ArticleSQL Query Stalls While Importing a ClickBank XML feed into SQL Database
How about SSIS?SSIS Import/Export Wizard:http://www.sqlusa.com/bestpractices/ssis-wizard/XML Import article:How to Import XML Into SQL SSISKalman Toth SQL SERVER 2012 & BI TRAININGNew Book:...
View ArticleSQL Query Stalls While Importing a ClickBank XML feed into SQL Database
Still going ... 280 records in an hour and 12 minutes.Ken McArthur http://kenmcarthur.com
View ArticleSQL Query Stalls While Importing a ClickBank XML feed into SQL Database
Thanks Hunchback!I took your select statement and executed it and it's still going 49 minutes later with 187 records showing in the results panel.At least your way, got some results back. The query is...
View ArticleSQL Query Stalls While Importing a ClickBank XML feed into SQL Database
Here are a couple of suggestions.1 - Do not reference the parent axis (..), and instead use the nodes() method one level up and drill down using the APPLY operator.2 - Do not use the query() method if...
View ArticleSQL Query Stalls While Importing a ClickBank XML feed into SQL Database
Hey Folks,I need a SQL Query to Import an XML Datafeed for Clickbank -- which is located at: http://www.clickbank.com/feeds/marketplace_feed_v2.xml.zip -- into a SQL Server Database running on...
View Article