ShipRush
SQL: Getting Data from the Northwind DatabaseThis page is a walk through to set up ShipRush with the Northwind database on SQL Server or MSDE 2000.
At the end of these steps, you will have a working ShipRush SQL setup,
and can even use a
bar
code scanner with it.
Parts List:
SQL Server 2000, 2005, MSDE 2000 or SQL Express
ShipRush itself downloaded, ready to install
Have the parts?
Let's go:
Create a new database in the SQL Server. 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. This creates the database and populates the system with data.
Install ShipRush. If running the ShipRush demo, choose "ADO and SQL Databases" when prompted for the host system. If you have a ShipRush license, enter your ShipRush SQL serial number.
ShipRush will go to the System Tray.
Right click on ShipRush, select Settings | Program Settings and then press CM Settings
Press Import Settings From File:

And navigate to the example script "Northwind_MSSQL.xml" (from the example kit)
Now go to the Getting Contact Info and Writing History Info and set the ADO Connection string to connect to your NorthwindCS database:

If you
have a supported bar code scanner, configure
it and then check the option and test it in the USB Scanner
Setup screen.
Press OK.
ShipRush goes to the system tray.
If you do not have a bar code scanner, Double click on the ShipRush icon in the system tray
The search screen pops up:

Enter an order number. Try these examples:
10616
10394
10482
When ShipRush pops up, either press Ship or Cancel to complete the shipment.
That is it! You are now shipping with ShipRush SQL.
If you have a bar code scanner. Double click on ShipRush to
bring up the Search screen.
Scan these bar codes (print them out first -- laser scanners usually cannot scan from the screen):
Hint: If ShipRush is in the system tray, scan the code
twice to get ShipRush to pop all the way up.

Order 10616

Order 10394

Order 10482
You can see this kit in action in the Northwind example video.
The Northwind example is simple. This example:
1) Retrieves the customer address based on Orders.OrderID
2) Updates the shipping cost in Orders
The 'get' data query is simple:
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%%'
That is it.
The write history query is also simple:
update dbo.Orders set Freight = %SHIPPINGCHARGES% where OrderID = %RecordID%
As you see, the RecordID value is special. It flows through ShipRush, coming into ShipRush in the SELECT, and then being used in the WHERE clause of the UPDATE.
You can see this kit in action in the Northwind example video.