SYMPTOMS
The ZySCAN Database Lookup Field makes it possible to insert information from a database into the key fields in ZySCAN/ZyINDEX. The Lookup Field is used to search for information in a database, and inserts this information in the appropriate fields. Already ZySCAN/ZyINDEX offers several functions for including database information, such as ODBC synchronization and database fields. However, with the Lookup Field users can confirm and add information visually in real-time. The Database Lookup Field function should work with all common databases using standard interfaces. The Database Lookup Field should work with ODBC and ADO interfaces.
CAUSE
Fields do not match the fields in the index (not case sensitive)
RESOLUTION
Important : the fields in the database and index should match (case sensitive!).
Step 1
To open a port in the Windows Firewall for TCP access:
- On the Start menu, click Run, type WF.msc, and then click OK.
- In the Windows Firewall with Advanced Security, in the left pane, right-click Inbound Rules, and then click New Rule in the action pane.
- In the Rule Type dialog box, select Port, and then click Next.
- In the Protocol and Ports dialog box, select TCP. Select Specific local ports, and then type the port number of the instance of the Database Engine, such as 1433 for the default instance. Click Next.
- In the Action dialog box, select Allow the connection, and then click Next.
- In the Profile dialog box, select any profiles that describe the computer connection environment when you want to connect to the Database Engine, and then click Next.
- In the Name dialog box, type a name and description for this rule, and then click Finish.
To open access to SQL Server when using dynamic ports:
- On the Start menu, click Run, type WF.msc, and then click OK.
- In the Windows Firewall with Advanced Security, in the left pane, right-click Inbound Rules, and then click New Rule in the action pane.
- In the Rule Type dialog box, select Program, and then click Next.
- In the Program dialog box, select This program path. Click Browse, and navigate to the instance of SQL Server that you want to access through the firewall, and then click Open. By default, SQL Server is at C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Binn\Sqlservr.exe. Click Next.
- In the Action dialog box, select Allow the connection, and then click Next.
- In the Profile dialog box, select any profiles that describe the computer connection environment when you want to connect to the Database Engine, and then click Next.
- In the Name dialog box, type a name and description for this rule, and then click Finish.
Step 2
- Open SQL Server Configuration Manager/SQL Server Network Configuration.
- Enable Named Pipe protocol. Stop and start SQL Server.
Step 3
- In SQL Server Management Studio add a database (LookUpDB), add a table.
Step 4
- 32-bit ODBC on Windows Server 2008 R2
- Heterogeneous data access requires having the right drivers. If you have to use 32-bit ODBC drivers, you won’t find then when you start the Microsoft ODBC Administrator because it is 64-bit. The 32-bit ODBC Administrator is found here: C:\Windows\SysWOW64\odbcad32.exe
- Open this ODBC Data Source Administrator
- Select System DSN tab, select create new data source, select SQL Server Native Client.
- Press Finish. Enter: name (e.g: lookup), description and server name. Press next.
- Enter credentials and press next. Set default database name (LookUpDB) Step through the wizard without entering additional data.
- Now the name of the new data source is listed: lookup.
Step 5
- In ZySCAN create new job template.
- For ZyFIELD add fields:
- 'ID' of type Database Lookupkey.
- Enter specific options:
- Connection string: DSN=lookup;Uid=sa;Pwd=<password>;
- Enter the database column name under the lookup tab by selecting in the pull down menu.
APPLIES TO
6.4
Comments
0 comments
Article is closed for comments.