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/18 10:03] – [Syntax] 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>SetSQL("SELECT * FROM [volumes]");</sxh>+Select all fields from table volumes
  
-==== Example ====+<code> 
 +SetSQL("SELECT * FROM [volumes]"); 
 +</code>
  
-SetSQL: Select the Barcode and Location fields from Excel Spreadsheet workbook Inventory. 
  
-<sxh>SetSQL("SELECT Barcode,Location FROM [Inventory$]");</sxh>+Select the Barcode and Location fields from Excel Spreadsheet workbook Inventory. 
 + 
 +<code> 
 +SetSQL("SELECT Barcode,Location FROM [Inventory$]"); 
 +</code> 
 + 
 +{{tagimport_engine sync_engine}}
engine/import/setsql.1550484186.txt.gz · Last modified: 2025/01/21 22:07 (external edit)