<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>AspDotNetStorefront Community | ASP.NET eCommerce Shoppingcart Software - Database</title>
		<link>http://forums.aspdotnetstorefront.com/</link>
		<description />
		<language>en</language>
		<lastBuildDate>Fri, 24 May 2013 13:18:48 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://forums.aspdotnetstorefront.com/images/misc/rss.png</url>
			<title>AspDotNetStorefront Community | ASP.NET eCommerce Shoppingcart Software - Database</title>
			<link>http://forums.aspdotnetstorefront.com/</link>
		</image>
		<item>
			<title>Updating Quantities direct from local database to aspdotnet db</title>
			<link>http://forums.aspdotnetstorefront.com/showthread.php?141603-Updating-Quantities-direct-from-local-database-to-aspdotnet-db&amp;goto=newpost</link>
			<pubDate>Thu, 02 May 2013 12:27:25 GMT</pubDate>
			<description>I am looking to automate updating my quantities on the shopping cart without having to do an import from excel.  I would like to create a local query that pulls the quantities out of my back-end database and updates the quantities on the shopping cart database.  I can do it when both db reside on...</description>
			<content:encoded><![CDATA[<div>I am looking to automate updating my quantities on the shopping cart without having to do an import from excel.  I would like to create a local query that pulls the quantities out of my back-end database and updates the quantities on the shopping cart database.  I can do it when both db reside on my server (which i did for my local test site) but when I tried to run it on the production site, it did error out.  Does anyone have experience with this?  Below is a test query I did locally.<br />
<br />
<br />
UPDATE [dbo].[ProductVariant]<br />
set Inventory = [companyDB].[DBO].ITMFIL.ITEM_RT_QTY_ON_HND<br />
 from [dbo].[ProductVariant] AS V inner join [DBO].Product AS P ON V.ProductID = P.ProductID<br />
  INNER JOIN [companyDB].[dbo].ITMFIL  on P.SKU = ITEM_NO<br />
where P.SKU = 'PART-1234'<br />
<br />
I did this in the management studio while connected to the live db.  I did put the local computer name but got an error message stating that the computer name was not in sys.systems.<br />
<br />
Any help would be great.<br />
<br />
Thanks</div>

]]></content:encoded>
			<category domain="http://forums.aspdotnetstorefront.com/forumdisplay.php?44-Database">Database</category>
			<dc:creator>rcc866</dc:creator>
			<guid isPermaLink="true">http://forums.aspdotnetstorefront.com/showthread.php?141603-Updating-Quantities-direct-from-local-database-to-aspdotnet-db</guid>
		</item>
		<item>
			<title>SQL Query String</title>
			<link>http://forums.aspdotnetstorefront.com/showthread.php?141475-SQL-Query-String&amp;goto=newpost</link>
			<pubDate>Mon, 29 Apr 2013 14:15:10 GMT</pubDate>
			<description>I have a temp table on my DB called CSV_Import that I import XLS files into, this table has 2 rows, SKU and EAN. 
 
I am trying to build a query needs to reference the SKU from the CSV_Import table, then find the SKU in either the Product or ProductVariant table and update the DownloadLocation row...</description>
			<content:encoded><![CDATA[<div>I have a temp table on my DB called CSV_Import that I import XLS files into, this table has 2 rows, SKU and EAN.<br />
<br />
I am trying to build a query needs to reference the SKU from the CSV_Import table, then find the SKU in either the Product or ProductVariant table and update the DownloadLocation row in ProductVariant (where we place our EAN's).<br />
<br />
I am struggling when a product has many variants and many different SKU's as none of the fields in the SKU row on the table Product have an entry. What happens then is that the SKUSuffix row on the ProductVariant table will have the entry that needs to be queried.<br />
<br />
This the SQL Query that I have at the moment....<br />
<br />
UPDATE ProductVariant<br />
SET DownloadLocation = CSV_Import.ean<br />
FROM ProductVariant AS ProductVariant<br />
INNER JOIN Product AS Product ON ProductVariant.ProductID=Product.ProductID<br />
INNER JOIN CSV_Import ON Product.SKU = CSV_Import.SKU<br />
<br />
Can anyone offer some help?</div>

]]></content:encoded>
			<category domain="http://forums.aspdotnetstorefront.com/forumdisplay.php?44-Database">Database</category>
			<dc:creator>DotNetDevelopments</dc:creator>
			<guid isPermaLink="true">http://forums.aspdotnetstorefront.com/showthread.php?141475-SQL-Query-String</guid>
		</item>
	</channel>
</rss>
