This page is a walk through to set up Descartes ShipRush with the Northwind database on SQL Server or MSDE 2000.
Note: This file references our example kit, found here.
Lets get started:
Create a new database in the SQL Server and name it NorthwindCS.
Unzip the example kit, and locate the file "NorthwindCS.SQL".
Log into SQL Server (with Query Analyzer or equivalent) and change to the NorthwindCS database.
Run the "NorthwindCS.SQL" script in the database to create the database and populate the system with data.
Install or launch the Desktop Toolbox if not already running.
Navigate to the Webstore Settings area for your SQL Webstore and click Edit.
Fill in your "Select" and "Update" SQL strings and click Save.
Use your Barcode Scanner, or launch the search box from the Desktop Toolbox, to find an order.
Process the Shipment in Descartes ShipRush.
SQL Code Discussion
Here is the Get Data Query:
SELECT
o.OrderID as RecordID,
o.ShipName as ContactName,
c.CompanyName as CompanyName,
o.ShipAddress as Address1,
o.ShipCity as City,
o.ShipRegion as State,
o.ShipPostalCode as ZIP,
o.ShipCountry as Country,
c.Phone as Phone
FROM dbo.orders o
LEFT OUTER JOIN dbo.Customers c ON c.CustomerID = o.CustomerID
WHERE o.OrderID LIKE '%SEARCHPARAM%%'
And here is the Write History Query:
update dbo.Orders set Freight = %SHIPPINGCHARGES% where OrderID = %RecordID%
Next: SQL Webstore - Fields Reference