Difference between revisions of "Virtual Tables - Further Configuration and Troubleshooting"

From Lianjapedia
Jump to: navigation, search
Line 1: Line 1:
 
''Under Construction''
 
''Under Construction''
  
<br clear=all>
+
==Troubleshooting==
 +
 
 +
===Virtual Table marked as (encrypted) / File does not exist===
  
 
[[{{ns:file}}:vt2_encrypted.png|376px|thumb|left|link={{filepath:vt2_encrypted.png}}|Marked as encrypted]]
 
[[{{ns:file}}:vt2_encrypted.png|376px|thumb|left|link={{filepath:vt2_encrypted.png}}|Marked as encrypted]]
 +
 +
 +
If your virtual table has ''''(encrypted)'''' next to its name in the Databases sidebar (Data or Apps Workspaces), this indicates that there is a problem accessing the remote data.
 +
 +
  
 
<br clear=all>
 
<br clear=all>
  
 
[[{{ns:file}}:vt2_notexist.png|450px|thumb|left|link={{filepath:vt2_notexist.png}}|File 'vt' does not exist]]
 
[[{{ns:file}}:vt2_notexist.png|450px|thumb|left|link={{filepath:vt2_notexist.png}}|File 'vt' does not exist]]
 +
 +
 +
If you switch to the '''Console''' Workspace, you may also see the error '''File 'name-of-your-virtual-table' does not exist''' reported, during the virtual table creation, or when you try to [[USE]] the virtual table.
 +
 +
If you created your virtual table manually - from the '''New virtual table''' dialog or using the [[CREATE VIRTUALTABLE]] command, rather than using '''Import ODBC database''' or '''Create Virtual Tables from ODBC''' from the Database '''Additional commands''' - it is useful to issue a DIR in the Lianja/VFP command window (with your database open) to check the details of the virtual table.  If you have any errors in your '''connstr''' or select statement, these can be corrected in the '''Modify virtual table''' dialog in the Table '''Additional commands'''.
  
 
<br clear=all>
 
<br clear=all>
  
 
[[{{ns:file}}:vt2_odbc_console.png|450px|thumb|left|link={{filepath:vt2_odbc_console.png}}|Test connection in ODBC Console]]
 
[[{{ns:file}}:vt2_odbc_console.png|450px|thumb|left|link={{filepath:vt2_odbc_console.png}}|Test connection in ODBC Console]]
 +
 +
 +
The next thing to check is whether you can access your remote data from the ODBC Console.  Close your Lianja database - from the Data Workspace or using the [[CLOSE DATABASE]] command in the Lianja/VFP command window - then select the ODBC command window.  Enter the Connstring details, then click the green tick to connect.
 +
 +
If you are unable to connect, check that the remote data server is running, that there are no network issues and that your user and password are valid and correctly entered.  Tracing can be enabled in the Windows ODBC Data Source Administrator (32 bit) or Linux unixODBC odbc.ini file to help with determining connection problems if required.
 +
 +
Once connected, check that you can run the select statement used by your virtual table.  Errors returned by the ODBC Driver will be reported.
 +
 +
For example, the Visual FoxPro Driver will return the following error if your table includes 'Integer (AutoInc)' type fields: '''** Error 123 ** [Microsoft][ODBC Visual FoxPro Driver]Not a table.'''
  
 
<br clear=all>
 
<br clear=all>

Revision as of 10:38, 15 September 2014

Under Construction

Troubleshooting

Virtual Table marked as (encrypted) / File does not exist

Marked as encrypted


If your virtual table has '(encrypted)' next to its name in the Databases sidebar (Data or Apps Workspaces), this indicates that there is a problem accessing the remote data.



File 'vt' does not exist


If you switch to the Console Workspace, you may also see the error File 'name-of-your-virtual-table' does not exist reported, during the virtual table creation, or when you try to USE the virtual table.

If you created your virtual table manually - from the New virtual table dialog or using the CREATE VIRTUALTABLE command, rather than using Import ODBC database or Create Virtual Tables from ODBC from the Database Additional commands - it is useful to issue a DIR in the Lianja/VFP command window (with your database open) to check the details of the virtual table. If you have any errors in your connstr or select statement, these can be corrected in the Modify virtual table dialog in the Table Additional commands.


Test connection in ODBC Console


The next thing to check is whether you can access your remote data from the ODBC Console. Close your Lianja database - from the Data Workspace or using the CLOSE DATABASE command in the Lianja/VFP command window - then select the ODBC command window. Enter the Connstring details, then click the green tick to connect.

If you are unable to connect, check that the remote data server is running, that there are no network issues and that your user and password are valid and correctly entered. Tracing can be enabled in the Windows ODBC Data Source Administrator (32 bit) or Linux unixODBC odbc.ini file to help with determining connection problems if required.

Once connected, check that you can run the select statement used by your virtual table. Errors returned by the ODBC Driver will be reported.

For example, the Visual FoxPro Driver will return the following error if your table includes 'Integer (AutoInc)' type fields: ** Error 123 ** [Microsoft][ODBC Visual FoxPro Driver]Not a table.


Modify Virtual Table with uid/pwd


Virtual Table now OK


Underscore in table name


Modify Virtual Table so table name not translated


Virtual Table now OK