
ActiveX Data Objects (ADO) allow programs to access data from a wide variety of data sources. The most common use of ADO is to query tables in a relational database.
Phototicket uses ADO to collect product information from retail system databases. Phototicket needs three parameters to collect product information:
Connection String. This string is used to make the connection to the data source and usually contains such things as the type if data source, the IP address of the computer that hosts the data, the username and password required to access the data.SQL statement. This is a statement is written in a format that the data source understands that will return one row for each product in the data source. This statement may include criteria that limits the number of products. For example, we could write an SQL statement that returns only products that have been modified today.Column Names that match the columns for each returned row. The first column name will be used as the unique identifier for each product.There are four additional parameters that affect the import:
Photo URL Column Name, if specified, tells Phototicket which column name to use to download a photo for the product.Date Format tells Phototicket in which format they are in.Display Name is set to the same value as Name when a product is first imported. On subsequent imports, the Display Name is only updated if the Update Display Name flag is set. This allows staff to improve the product name for display on tickets, changing pkt to packet, for example, and not having those improvements overwritten on subsequest imports.
The column names that Phototicket can import are:
The column names closely match the names in the Phototicket Product form:

If Phototicket is running on the same computer as IdealPOS, the following settings can be used to import product data:
Provider=MSOLEDBSQL.1;Integrated Security=SSPI;Data Source=localhost\IDEALSQLSELECT StockItems.Code, StockItems.Description, StockItems.Description2, Departments.Description AS Department, Creditor.Code AS SupplierCode, Price1.Value AS Price, SpecialPrices.Price AS SpecialPrice FROM IPSTransaction.dbo.StockItems AS StockItems LEFT JOIN IPSTransaction.dbo.Departments AS Departments ON StockItems.DepartmentCode = Departments.Code LEFT JOIN IPSTransaction.dbo.Creditor AS Creditor ON StockItems.CreditorID = Creditor.ID LEFT JOIN IPSTransaction.dbo.StockItemsValue AS Price1 ON StockItems.ID = Price1.StockItemID AND Price1.Type = 1 AND Price1.Level = 1 LEFT JOIN IPSTransaction.dbo.SpecialPrices AS SpecialPrices ON StockItems.ID = SpecialPrices.StockItemIDplu_sku,name,caption,department,supplier,normal_price,special_price