Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 2 of 2

Thread: SQL Import customer levels ?

  1. #1
    joecalardo is offline Member
    Join Date
    May 2011
    Posts
    61

    Default SQL Import customer levels ?

    Hello, trying to get this code to work:

    UPDATE Product SET CustomerLevelID=1 WHERE ProductID=####;

    Doesn't seem to be working.

    Also trying to set Customer Level Extended Prices as well, so my products I uploaded will be selected for Customer Level, and then add the extended prices for those products

    I'm trying to use my excel sheet to make a query, Product ID is column A, VariantId is column B, Customer Level is column C, and Extended Price is column D

    Anyone know what I'm doing wrong ?

  2. #2
    BFG 9000 is offline Senior Member
    Join Date
    Oct 2006
    Location
    South UK
    Posts
    882

    Default

    There is no CustomerLevelID in the Product table....

    You need these queries :-


    C#/VB.NET Code:
    ="INSERT INTO dbo.ProductCustomerLevel (ProductID, CustomerLevelID) values ("&A1&","&C1&");"
     
     
    ="INSERT INTO dbo.ExtendedPrice (VariantID, CustomerLevelID, Price) values ("&B1&","&C1&","&D1&");" 


    TTFN

    BFG