in

dashCommerce

An ASP.NET Open Source e-Commerce Application

Bulk insert of products using SQL

Last post 09-20-2009 12:42 PM by aobi. 12 replies.
Page 1 of 1 (13 items)
Sort Posts: Previous Next
  • 06-03-2008 9:01 PM

    Bulk insert of products using SQL

    I have about 1500 products that need to be inserted into my product catalog. I have Excel sheets which have the relevent information. I know there is a way to do a bulk insert. Which tables are required for the products to be displayed? Is there a ORD for Dash 3.0?

     Thanks for any help ahead of time.

    -Stephen

    Filed under: , , ,
  • 06-04-2008 7:28 AM In reply to

    Re: Bulk insert of products using SQL

    Hi Surrealis,

    Webpro6030 is using dbCopy to import his access database (see: http://dashcommerce.org/forums/t/864.aspx).  This would definitely a utilitly that I could use as well.

    Currently, I accomplish this by importing the spreadsheet into FoxPro table (I used to do most of my programming in FoxPro) and then write small programs to create the SQL Insert commands and then run the insert commands using SQL Server Managment Studio.

    Louis

  • 06-04-2008 7:32 AM In reply to

    • bibber
    • Top 25 Contributor
    • Joined on 03-12-2008
    • Ottawa
    • Posts 45

    Re: Bulk insert of products using SQL

    Hey there,

    I thought I'd add my two cents worth in here... in my setup I have an overnight batch file that is FTP'd by my wholesaler... (it's a CSV file). I then use the bulk insert sql function to load up a temp table and from there execute a custom stored proc which validates the data, then inserts/updates the appropriate tables in the appropriate order... this occurs nightly...

    hope this helps

  • 06-20-2008 5:16 PM In reply to

    Re: Bulk insert of products using SQL

    This is great info - I am running into this issue right now.

    I have a few questions about the table structure for products.

    For a straight insert, it looks like we need existing ids for manufacturer, status, type, and shipping - other than that do we need to update the attribute table?  Or, is that only if we are using attributes?

    Any other table that needs to be updated on a bulk insert?

     Thanks!

    Filed under: ,
  • 06-24-2008 8:23 AM In reply to

    • bibber
    • Top 25 Contributor
    • Joined on 03-12-2008
    • Ottawa
    • Posts 45

    Re: Bulk insert of products using SQL

    Hey there....

    Here's the order in which I process my batches into the dashcommerce db.

    1. BULK INSERT into a temp table
    2. From the temp table I do the following;
        a. Create Manufacturer ( dashCommerce_Store_Manufacturer Table) if not exists already
        b. Create Category ( dashCommerce_Store_Category Table) if not exists already
        c. INSERT into the products table (or update if exists already) - This gets you your productID -
        d. INSERT into the dashCommerce_Store_Product_Category_Map table
        e. INSERT into the SKU Table if sku ( dashCommerce_Store_Sku Table) if doesn't exist already OTHERWISE simply update the new inventory

    VOILA!... thats all there is to it....

    Hope this helps
    da bibber

     

  • 07-14-2008 7:28 PM In reply to

    Re: Bulk insert of products using SQL

     Without me having to go and dig them out, what are the tables that have to be updated and if possible in what order? I can tweak my links to make it work.

     I used to do it when I was using the CSK but then things just started changing so fast that i deleted my site and have just came back to it because i like the new look.

     

    If your a-e is the correct or just let me know, otherwise i am going to create a mirro database and see how bad i screw it up!

     

    Thanks

    tjatwood

    www.hookupstuff.com

  • 07-14-2008 8:07 PM In reply to

    Re: Bulk insert of products using SQL

    Answer

    There is no upgrade path from dashCommerce 2.X to dashCommerce 3.X because there were quite a few changes. You can try, but no promises Smile

    --
    Big Smile ~ Chris

    Open Source = Community = Shared Responsibility = Submit A Patch!
  • 07-31-2008 1:23 PM In reply to

    Re: Bulk insert of products using SQL

    Anybody come up with a nice script to do this yet? I have been able to mass insert 1531 products into the list, but i am having problems with the over 6000 images into the right place?

     Thanks

    Tom

  • 11-01-2008 9:51 AM In reply to

    • mrbean
    • Not Ranked
    • Joined on 10-28-2008
    • Posts 6

    Re: Bulk insert of products using SQL

     I may sound like a broken record on this subject, but I have a firm belief that there should be a admin UI to import/export bulk items.  This makes or breaks the use of the ecommerce software for many business owners like myself who are not scripters/developers and feel intimidated when it comes to this.  I do not understand why the developers or thrid parties have not made a import UI for this.  Most other ecommerce systems I have reviewed and tried either had this feature in the form of a commercial version or as a add on module from either the Developers or 3rd parties.

      I know that to many who are savy to the lingo this is no problem, but as for me I haven't the luxury or the time to learn to script or code.  I would rather pay someone for a UI add in and focus on sales.

  • 01-21-2009 8:30 PM In reply to

    Re: Bulk insert of products using SQL

    I am currently working on an auto import tool, it is a windows application and i have been testing and it works quite well, i'm not sure how to make this available to the community. I have not decided if i want to build this into the admin screens or not.

    Filed under: , , ,
  • 06-18-2009 10:33 AM In reply to

    • jono1
    • Top 100 Contributor
    • Joined on 12-05-2008
    • Posts 13

    Re: Bulk insert of products using SQL

    Does anyone know if this ever happened?

    Im now in this position and could do with a program like this.

     Jon

  • 08-27-2009 8:10 PM In reply to

    • aobi
    • Top 500 Contributor
    • Joined on 05-26-2008
    • Posts 3

    Re: Bulk insert of products using SQL

    Hi,

    Not sure about the "import tool" from skobyjay... but I'm hoping to be releasing an simple (web based) "product import" utility/add-on soon.

    (am currently waiting to hear back from Chris.. will keep you posted).

     

    Regards
    aobi 

  • 09-20-2009 12:42 PM In reply to

    • aobi
    • Top 500 Contributor
    • Joined on 05-26-2008
    • Posts 3

    Re: Bulk insert of products using SQL

    Web based "product import" utility/add-on is now availabe from the dashCommerce store

     

     

    Filed under: , ,
Page 1 of 1 (13 items)