TapeTrack Documentation

Because there is more to tape management than you ever realized

User Tools

Site Tools


engine:import:setsql

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
engine:import:setsql [2019/02/19 02:43] – [Example] Scott Cunliffeengine:import:setsql [2025/01/21 22:07] (current) – external edit 127.0.0.1
Line 3: Line 3:
 Set the SQL string that will be used to query the SQL data source. Set the SQL string that will be used to query the SQL data source.
  
-==== Phase ====+===== Phase =====
 This instruction is used by the TapeTrack Import Engine. This instruction is used by the TapeTrack Import Engine.
  
-==== Syntax ==== +===== Syntax ===== 
-**SetSQL**//(sql);//+''SetSQL(sql);''
  
-  * ''sql'' The SQL string that will be used to query the SQL data source.+^ Variable ^ Type ^ Description ^ Min Length ^ Max Length ^ 
 +|sql | String | The SQL string that will be used to query the SQL data source.| 1 | 512 |
  
-==== Example ==== +===== Example =====
-SetSQL: Select all fields from table volumes+
  
-<sxh plain;>+Select all fields from table volumes 
 + 
 +<code>
 SetSQL("SELECT * FROM [volumes]"); SetSQL("SELECT * FROM [volumes]");
-</sxh>+</code> 
  
-==== Example ====+Select the Barcode and Location fields from Excel Spreadsheet workbook Inventory.
  
-SetSQL: Select the Barcode and Location fields from Excel Spreadsheet workbook Inventory.+<code> 
 +SetSQL("SELECT Barcode,Location FROM [Inventory$]"); 
 +</code>
  
-<sxh>SetSQL("SELECT Barcode,Location FROM [Inventory$]");</sxh>+{{tagimport_engine sync_engine}}
engine/import/setsql.1550544201.txt.gz · Last modified: 2025/01/21 22:07 (external edit)