<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
<channel>
<title><![CDATA[FLEXquarters.com Limited]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/]]></link>
<description />
<generator><![CDATA[Kayako case v4.66.2]]></generator>
<item>
<title><![CDATA[ [QXL-ALL] Function List]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/3071]]></link>
<guid isPermaLink="false"><![CDATA[6917ff2a7b53421ff4066020e2d89eec]]></guid>
<pubDate><![CDATA[Fri, 17 Mar 2023 13:55:53 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[&nbsp;[QXL-Desktop] &amp; [QXL-Online] Function List
QXL Desktop&nbsp;uses the QODBC Desktop driver to query QuickBooks Desktop. Commands available in QODBC Desktop will also work in the QXL desktop application.
QXL Online uses the QODBC Online driver t...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">&nbsp;[QXL-Desktop] &amp; [QXL-Online] Function List</span></h2>
<p>QXL Desktop&nbsp;uses the QODBC Desktop driver to query QuickBooks Desktop. Commands available in QODBC Desktop will also work in the QXL desktop application.</p>
<p>QXL Online uses the QODBC Online driver to query QuickBooks Online. Commands available in QODBC Online will also work in the QXL Online application.</p>
<p>Please refer to: <a href="https://qodbc.com/links/2343">https://qodbc.com/links/2343</a>.</p>
<h2 class="style6">&nbsp;</h2>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QXL-ALL] Stored Procedures Command List]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/3070]]></link>
<guid isPermaLink="false"><![CDATA[bb073f2855d769be5bf191f6378f7150]]></guid>
<pubDate><![CDATA[Fri, 17 Mar 2023 13:43:22 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[[QXL- Desktop] &amp; [QXL- Online]&nbsp;Stored Procedures Command List
QXL Desktop&nbsp;uses the QODBC Desktop driver to query QuickBooks Desktop. Commands available in QODBC Desktop will also work in the QXL desktop application.
QXL Online uses the QOD...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">[QXL- Desktop] &amp; [QXL- Online]&nbsp;Stored Procedures Command List</span></h2>
<p>QXL Desktop&nbsp;uses the QODBC Desktop driver to query QuickBooks Desktop. Commands available in QODBC Desktop will also work in the QXL desktop application.</p>
<p>QXL Online uses the QODBC Online driver to query QuickBooks Online. Commands available in QODBC Online will also work in the QXL Online application.</p>
<p>Please refer to: <a href="https://qodbc.com/links/2342">https://qodbc.com/links/2342</a></p>
<h2 class="style6">&nbsp;</h2>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QXL-All] The input string was not in a correct format / The input string was not in the correct format]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/3051]]></link>
<guid isPermaLink="false"><![CDATA[f0b1d5879866f2c2eba77f39993d1184]]></guid>
<pubDate><![CDATA[Tue, 05 Jul 2022 12:38:06 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[The input string was not in a correct format / The input string was not in the correct format
Problem Description:
I am running QXL and MS Office 365.
I have tried exporting to XLSX, XLS, and even CSV format, but only the file header row writes.
Also,...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;">The input string was not in a correct format / The input string was not in the correct format</span></h2>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Problem Description:</span></span></h3>
<p>I am running QXL and MS Office 365.</p>
<p>I have tried exporting to XLSX, XLS, and even CSV format, but only the file header row writes.</p>
<p>Also, I am getting the following error in QXL logs:</p>
<p>Error Occurred: When attempting to update the value: 80000007-1539326465 - The input string was not in the correct format. Select * from Account, QXL, AdditionalInfo: table selection - Account, Table-0, Tables-151.</p>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Solution:</span></span></h3>
<p>Please open the 'Region Setting' and verify each 'Region setting' as formatted in the screenshots below.</p>
<p>Please press the 'Windows' key and type 'Region Settings' in the search bar.</p>
<p>Please open 'Region Settings.'</p>
<p align="center"><img src="https://support.flexquarters.com/esupport/newimages/3051/Frist.png" alt="" /></p>
<p>Please click on 'Related Settings.</p>
<p align="center"><img src="https://support.flexquarters.com/esupport/newimages/3051/Sec.png" alt="" /></p>
<p>Please click on 'Region.'</p>
<p align="center"><img src="https://support.flexquarters.com/esupport/newimages/3051/Third.png" alt="" /></p>
<p>Please click on 'Additional Settings...', and it should open the 'Customize Format' window.</p>
<p align="center"><img src="https://support.flexquarters.com/esupport/newimages/3051/Forth.png" alt="" /></p>
<p>In the 'Number' tab, please ensure you have given input as "."(Dot) in 'Decimal Symbol,' which you can see as displayed in the screenshot below.</p>
<p>Using a comma or any other decimal symbol may result in a "The input string was not in a correct format" error.</p>
<p align="center"><img src="https://support.flexquarters.com/esupport/newimages/3051/Five.png" alt="" /></p>
<p>Please select a 'Currency Symbol' according to your country's currency symbol in the' Currency' tab.</p>
<p>As per my regional settings, I have selected the UK currency symbol (&pound;) here.</p>
<p align="center"><img src="https://support.flexquarters.com/esupport/newimages/3051/Six.png" alt="" /></p>
<p>In the 'Time' tab, the 'Short Time' should be in a valid format.</p>
<p align="center"><img src="https://support.flexquarters.com/esupport/newimages/3051/Seven.png" alt="" /></p>
<p>Please specify the 'Short Date' format in the 'Date' tab according to your country's date format.</p>
<p align="center"><img src="https://support.flexquarters.com/esupport/newimages/3051/Eight.png" alt="" /></p>
<p>Please click on " Apply " and save the settings.<br />Please retest the same issue you are facing.</p>
<p align="center">&nbsp;</p>
<p>If you still face the issue, please raise a support ticket. <a style="font-family: Arial, Helvetica, sans-serif;" href="http://support.flexquarters.com/esupport/index.php?/Tickets/Submit">(Click Here to submit a support ticket.)</a></p>
<p>Please attach the files listed below while submitting the ticket to analyze your issue.</p>
<p>1) Screenshot of QXL Application -- &gt;Settings/Options--&gt; About Tab<br />2) Screenshot of the problem you are facing. (as an attachment) - Full Screen<br />Share the entire log files as an attachment in text format from<br />3) Share&gt;&gt; C:\Users\yourUserName\AppData\Roaming\QXL - QuickBooks Data Export Made Easy"&gt;&gt;Config.xml<br />4) QXL Logs from QXL -&gt; Options -&gt; Messages -&gt; Review QXL Message Or %AppData%\QXL - QuickBooks Data Export Made Easy\QXLMessages.txt<br />5) QXL Logs from QXL -&gt; Options -&gt; Messages -&gt; Review SDK Messages (as an attachment)<br />6) Which Windows OS are you using? Please share OS details.<br />7) Did you upgrade anything?<br />Please refer to How to take a screenshot: <a href="http://www.qodbc.com/links/screenshot.htm" target="_blank">www.qodbc.com/links/screenshot.htm</a>.</p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - Getting Unexpected extra token error in Date Field Query]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2726]]></link>
<guid isPermaLink="false"><![CDATA[b1c00bcd4b5183705c134b3365f8c45e]]></guid>
<pubDate><![CDATA[Mon, 11 Jan 2016 10:28:03 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[ Troubleshooting - Getting Unexpected extra token error in Date Field Query 
Problem Description:
I am trying to query the Transaction table based on the TxnDate field.I tried the code below.OdbcCommand SourceCmd = new OdbcCommand("Select * from Transac...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;"> Troubleshooting - Getting Unexpected extra token error in Date Field Query </span></h2>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Problem Description:</span></span></h3>
<p><span style="font-family: Arial,Helvetica,sans-serif;">I am trying to query the Transaction table based on the TxnDate field.<br /><br />I tried the code below.<br /><br />OdbcCommand SourceCmd = new OdbcCommand("Select * from Transaction where TxnDate &gt;= {d '2010-01-01'} and TxnDate &lt;= {d '" + DateTime.Now.ToString("yyyy-MM-dd") + "'} ", cnQODBC);<br /><br />I am getting this error:<br /><br />ERROR [42000] [QODBC] [sql syntax error] Expected lexical element not found: = <br /><br />And when&nbsp;I try this one:<br /><br />OdbcCommand SourceCmd = new OdbcCommand("Select * from Transaction where TxnDate &gt;= #2010-01-01# and TxnDate &lt;= #" + DateTime.Now.ToString("yyyy-MM-dd") + "# ", cnQODBC);<br /><br />I get this error:<br /><br />ERROR [42000] [QODBC] Unexpected extra token: #<br /><br />What is the correct format to pass the date values ??<br /><br />I am using C#.<br /> </span></p>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc;">Solution:</span></span></h3>
<p><span style="font-family: Arial,Helvetica,sans-serif;"> Please refer to the article below for the date format in QODBC:<br /> <a href="http://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2203">How are dates formatted in SQL queries when using the QuickBooks-generated timestamps</a><br /><br /> </span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - Getting QODBC Not Supported error while Inserting Invoice]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2655]]></link>
<guid isPermaLink="false"><![CDATA[e0688d13958a19e087e123148555e4b4]]></guid>
<pubDate><![CDATA[Fri, 10 Jul 2015 08:43:42 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Troubleshooting - Getting the QODBC Not Supported error while inserting an invoice
Problem Description:
I am trying to insert an Invoice, but I am getting the following error: [QODBC] Not supported (#10003)  I am using below SQL statements: INSERT INTO ...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">Troubleshooting - Getting the QODBC Not Supported error while inserting an invoice</span></h2>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Problem Description:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;">I am trying to insert an Invoice, but I am getting the following error:<br /><br /> [QODBC] Not supported (#10003) <br /><br /> I am using below SQL statements:<br /><br /> INSERT INTO "InvoiceLine" ("InvoiceLineItemRefListID," "InvoiceLineDesc," "InvoiceLineRate," "InvoiceLineAmount," "InvoiceLineSalesTaxCodeRefListID," "FQSaveToCache") VALUES ('250000-933272656', 'Building permit 3', 3.00000, 3.00, '', 1)<br /><br /> INSERT INTO "Invoice" ("CustomerRefListID," "ARAccountRefListID," "TxnDate," "RefNumber," "BillAddressAddr1", "BillAddressAddr2", "BillAddressCity," "BillAddressState," "BillAddressPostalCode," "BillAddressCountry," "spending," "TermsRefListID," "DueDate," "ShipDate," "ItemSalesTaxRefListID," "Memo," "IsToBePrinted," "CustomerSalesTaxCodeRefListID") VALUES ('470001-1071525403', '40000-933270541', {d'2002-10-01'}, '1', 'Brad Lamb,' '1921 Appleseed Lane', 'Bayshore,' 'CA,' '94326', 'USA,' 0, '10000-933272658', {d'2002-10-31'}, {d'2002-10-01'}, '2E0000-933272656', 'Memo Test,' 0, '10000-999022286') <br /><br /> I am getting the following error: </span></p>
<p align="center"><span style="font-family: Arial, Helvetica, sans-serif;"><span style="font-family: Arial, Helvetica, sans-serif;"><img src="//support.flexquarters.com/esupport/newimages/NotSupported/step1.png" alt="http://support.flexquarters.com/esupport/newimages/NotSupported/step1.png" width="308" height="125" /></span></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> <br /><br /> Please let me know what I am doing wrong.<br /><br /><br /></span></p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Solutions:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> You need to either provide a value for SalesTaxCodeRefListID, remove it, or pass null as a value instead of an empty string from the insert statement.<br /><br /> Your insert statement should be as follows:<br /><br /> INSERT INTO "InvoiceLine" ("InvoiceLineItemRefListID," "InvoiceLineDesc," "InvoiceLineRate," "InvoiceLineAmount," "InvoiceLineSalesTaxCodeRefListID," "FQSaveToCache") VALUES ('250000-933272656', 'Building permit 3', 3.00000, 3.00, null, 1)<br /><br /> INSERT INTO "Invoice" ("CustomerRefListID," "ARAccountRefListID," "TxnDate," "RefNumber," "BillAddressAddr1", "BillAddressAddr2", "BillAddressCity," "BillAddressState," "BillAddressPostalCode," "BillAddressCountry," "IsPending," "TermsRefListID," "DueDate," "ShipDate," "ItemSalesTaxRefListID," "Memo," "IsToBePrinted," "CustomerSalesTaxCodeRefListID") VALUES ('470001-1071525403', '40000-933270541', {d'2002-10-01'}, '1', 'Brad Lamb,' '1921 Appleseed Lane', 'Bayshore,' 'CA,' '94326', 'USA,' 0, '10000-933272658', {d'2002-10-31'}, {d'2002-10-01'}, '2E0000-933272656', 'Memo Test,' 0, '10000-999022286') <br /><br /></span></p>
<table class="gstl_50 gssb_c" style="width: 206px; display: none; top: 170px; left: 257px; position: absolute;" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td class="gssb_f">&nbsp;</td>
<td class="gssb_e" style="width: 100%;">&nbsp;</td>
</tr>
</tbody>
</table>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - Error while Inserting Bill]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2654]]></link>
<guid isPermaLink="false"><![CDATA[7180cffd6a8e829dacfc2a31b3f72ece]]></guid>
<pubDate><![CDATA[Fri, 10 Jul 2015 08:34:44 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Troubleshooting - Error while Inserting Bill
Problem Description 1:
 I am following the steps below and getting the error.1. First, we inserted the records in the Bill &amp; BillExpenseLine table, and the papers got inserted successfully.2. Second, we a...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">Troubleshooting - Error while Inserting Bill</span></h2>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Problem Description 1:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> I am following the steps below and getting the error.<br /><br />1. First, we inserted the records in the Bill &amp; BillExpenseLine table, and the papers got inserted successfully.<br /><br />2. Second, we are inserting the records in BillPaymentCheckLine, and we are getting the following error<br /><br />"Error Parsing Complete XML return string."<br /><br />INSERT INTO BillPaymentCheckLine (PayeeEntityRefListID, APAccountRefListID, BankAccountRefListID, RefNumber, IsToBePrinted, AppliedToTxnTxnID, AppliedToTxnPaymentAmount) VALUES('80000EB1-1435326666', '80000037-1409939589', '80000024-1409927427', '555555',1, '81D4-1435326671', 88.3)<br /><br />Please let me know what I am doing wrong.<br /><br /> </span></p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Solutions 1:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> Either remove RefNumber or IsToBePrinted from the insert statement. QuickBooks SDK will allow only one of the fields during insert/update &amp; due to this issue occurring.<br /><br />Your query should be as follows.<br /><br />INSERT INTO BillPaymentCheckLine (PayeeEntityRefListID, APAccountRefListID, BankAccountRefListID, RefNumber, AppliedToTxnTxnID, AppliedToTxnPaymentAmount) VALUES('80000EB1-1435326666', '80000037-1409939589', '80000024-1409927427', '555555', '81D4-1435326671', 88.3)</span>&nbsp;</p>
<p>&nbsp;</p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Problem Description 2:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> I am&nbsp;trying to link BillItemLine with PurchaseOrder. I am using the below query to connect transactions &amp; I am getting an XML error.<br /><br />"Error Parsing Complete XML return string."<br /><br />INSERT INTO BillItemLine ( ItemLineLinkToTxnTxnID, ItemLineLinkToTxnTxnLineID, ItemLineQuantity ) values ('271B-1071512692', '271D-1071512692',300 )<br /><br />Please let me know what I am doing wrong.<br /><br /> </span></p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Solutions 2:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;">If you are trying to link transactions with Bill, you should include vendor details in your query. Please refer to the sample query &amp; test again:<br /><br />Your question should be as follows.<br /><br />INSERT INTO BillItemLine (VendorRefListID, ItemLineLinkToTxnTxnID, ItemLineLinkToTxnTxnLineID, ItemLineQuantity) VALUES ('10000-933272655', '271B-1071512692', '271D-1071512692',30)<br /></span></p>
<p>&nbsp;</p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - QRemote Does not consider FQSaveToCache with working with OdbcCommand &amp; Parameters]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2646]]></link>
<guid isPermaLink="false"><![CDATA[f2e43fa3400d826df4195a9ac70dca62]]></guid>
<pubDate><![CDATA[Wed, 06 May 2015 06:53:35 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Troubleshooting - QRemote does not consider FQSaveToCache when working with OdbcCommand &amp; Parameters
Problem Description:
 QRemote does not consider FQSaveToCache when working with OdbcCommand &amp; Parameters.I have an application that creates Sale...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">Troubleshooting - QRemote does not consider FQSaveToCache when working with OdbcCommand &amp; Parameters</span></h2>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Problem Description:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> QRemote does not consider FQSaveToCache when working with OdbcCommand &amp; Parameters.<br /><br />I have an application that creates Sales Orders. This is what I execute for each line item:<br /><br />Running this code against QODBC DSN works well if everything is local - using a 32-bit local DSN and QuickBooks local to the application. The Sales Order appears correct in QuickBooks.<br /><br />Taking the same code and connecting it to a 64-bit QRemote DSN connected to a 32-bit qODBC DSN on another machine (via QRemote Server) does not work.<br /><br />The basic flow is like this:<br /><br />cnQODBC = New OdbcConnection(ConfigurationManager.AppSettings.Item("QuickBooksConnectionString"))<br /><br />cnQODBC.Open()<br /><br />[Repeat for every sales order line item]<br /><br />Dim cmdQODBC As OdbcCommand = New OdbcCommand("insert into SalesOrderLine (CustomerRefListID, TxnDate, SalesOrderLineClassRefListID, TemplateRefListID, RefNumber, " &amp; "SalesOrderLineItemRefListID, SalesOrderLineDesc, SalesOrderLineQuantity, SalesOrderLineRate, SalesOrderLineAmount, " &amp; "CustomFieldSalesOrderLineOther1, FQSaveToCache) values (??, ??, ????????)", cnQODBC)<br /><br />cmdQODBC.Parameters.AddWithValue(", "strCustomerListID)<br /><br />cmdQODBC.Parameters.AddWithValue("", "{d'" &amp; dteInvoiceDate.ToString("yyyy-MM-dd") &amp; "'}")<br /><br />cmdQODBC.Parameters.AddWithValue(", "strLineClassListID)<br /><br />cmdQODBC.Parameters.AddWithValue(", "strTemplateListID)<br /><br />cmdQODBC.Parameters.AddWithValue("", intSalesOrderNumber)<br /><br />cmdQODBC.Parameters.AddWithValue("", strLineItemListID)<br /><br />cmdQODBC.Parameters.AddWithValue(", "strain description)<br /><br />cmdQODBC.Parameters.AddWithValue(", "intQuantity) <br /><br />cmdQODBC.Parameters.AddWithValue(", "dblLineRate) <br /><br />cmdQODBC.Parameters.AddWithValue(", "dblLineAmount) <br /><br />cmdQODBC.ExecuteNonQuery()<br /><br />[End repeat]<br /><br />cnQODBC.Close()<br /><br />cnQODBC = Nothing<br /><br />cmdQODBC.ExecuteNonQuery()</span></p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Solutions:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> Integer, double, and long datatype parameter passing in QRemote pass-through string format because of the flow QRemote Client --&gt; QRemote Server --&gt; QODBC Datatype conversion creates the problem in QODBC and C, and due to this issue occurred.<br /><br />The workaround for this problem is to pass a value in string format instead of basic format, as shown in the example below:<br /><br /> <strong> cmdQODBC.Parameters.AddWithValue("", intSalesOrderNumber.ToString()) //cmd.Parameters.AddWithValue("", "3");<br /><br />cmdQODBC.Parameters.AddWithValue("", intQuantity.ToString()) //cmd.Parameters.AddWithValue("", "44.2");<br /><br />cmdQODBC.Parameters.AddWithValue("", dblLineRate.ToString()) // cmd.Parameters.AddWithValue("", "113.4");<br /><br />cmdQODBC.Parameters.AddWithValue("", dblLineAmount.ToString()) //cmd.Parameters.AddWithValue("", "0");<br /><br /> </strong> Instead of <br /><br />cmdQODBC.Parameters.AddWithValue("", intSalesOrderNumber) //cmd.Parameters.AddWithValue("", 3);<br /><br />cmdQODBC.Parameters.AddWithValue("", intQuantity) //cmd.Parameters.AddWithValue("", 44.2);<br /><br />cmdQODBC.Parameters.AddWithValue("", dblLineRate) //cmd.Parameters.AddWithValue("", 113.4);<br /><br />cmdQODBC.Parameters.AddWithValue("", dblLineAmount) //cmd.Parameters.AddWithValue("", 0);</span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - How to use parameters in OPENQUERY]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2644]]></link>
<guid isPermaLink="false"><![CDATA[f35a2bc72dfdc2aae569a0c7370bd7f5]]></guid>
<pubDate><![CDATA[Mon, 04 May 2015 13:58:36 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Problem Description:
 How to use parameters in OPENQUERY 
Solutions:
 OPENQUERY does not accept variables for its arguments. You need to pass Basic Values as shown in the example below:
Select Query:
 DECLARE @TSQL varchar(8000), @ID varchar(25)
SEL...]]></description>
<content:encoded><![CDATA[<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Problem Description:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> How to use parameters in OPENQUERY<br /> </span></p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Solutions:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> OPENQUERY does not accept variables for its arguments. You need to pass Basic Values as shown in the example below:</span></p>
<h4><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Select Query:</span></h4>
<p><span style="font-family: arial, helvetica, sans-serif;"><strong> DECLARE @TSQL varchar(8000), @ID varchar(25)</strong></span></p>
<p><span style="font-family: arial, helvetica, sans-serif;"><strong>SELECT @ID = '19650'</strong></span></p>
<p><span style="font-family: arial, helvetica, sans-serif;"><strong>SELECT @TSQL = 'SELECT * FROM OPENQUERY(QRemote ,''SELECT * FROM ReceivePayment WHERE ReceivePayment.RefNumber = ''''' + @ID + ''''''')'</strong></span></p>
<p><span style="font-family: arial, helvetica, sans-serif;"><strong>EXEC (@TSQL)</strong></span></p>
<h4><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Update Query:</span></h4>
<p><span style="font-family: arial, helvetica, sans-serif;"><strong>DECLARE @TSQL varchar(8000), @ID varchar(25), @CName varchar(25)</strong></span></p>
<p><span style="font-family: arial, helvetica, sans-serif;"><strong>SELECT @ID = '80000146-1513345553'</strong></span></p>
<p><span style="font-family: arial, helvetica, sans-serif;"><strong>SELECT @CName = 'New Company'</strong></span></p>
<p><span style="font-family: arial, helvetica, sans-serif;"><strong>SELECT @TSQL = 'Update OPENQUERY(QRemote ,''SELECT * FROM Customer WHERE Customer.ListID = ''''' + @ID + ''''''')' + 'SET CompanyName = ''' + @CName + ''''</strong></span></p>
<p><span style="font-family: arial, helvetica, sans-serif;"><strong>EXEC (@TSQL)</strong></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">Please refer to the link below:<br /> <a href="https://support.microsoft.com/en-us/kb/314520"> How to pass a variable to a linked server query </a> <br /><a href="http://stackoverflow.com/questions/3378496/including-parameters-in-openquery">Including parameters in OPENQUERY</a></span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - How to select a record when the value is null]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2640]]></link>
<guid isPermaLink="false"><![CDATA[9a5748a2fbaa6564d05d7f2ae29a9355]]></guid>
<pubDate><![CDATA[Mon, 23 Mar 2015 13:43:36 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Troubleshooting - How to select a record when the value is null
Problem Description:
 I am trying to run a report that returns ItemInventory where LastReceived is NULL. I have tried in vain to accomplish this. What syntax do you use to select a blank/nu...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">Troubleshooting - How to select a record when the value is null</span></h2>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Problem Description:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> I am trying to run a report that returns ItemInventory where LastReceived is NULL. I have tried in vain to accomplish this. What syntax do you use to select a blank/null date, or is there a special function for this? </span></p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Solution:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> You can select a blank/null date using "IS NULL" in your query. <br /><br />For example, the below query will return a row whose InventoryDate is blank or null:<br /><br />SELECT * FROM ItemInventory where InventoryDate IS NULL</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/ISNULL/step1.png" alt="http://support.flexquarters.com/esupport/newimages/ISNULL/step1.png" width="673" height="373" /></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"><span style="font-family: Arial, Helvetica, sans-serif;"><br />In the same way, you can use "IS NOT NULL" in your query. <br /><br />For example, the below query will return a row whose InventoryDate is not blank or null:<br /><br />SELECT * FROM ItemInventory where InventoryDate IS NOT NULL</span></span>&nbsp;</p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/ISNULL/step2.png" alt="http://support.flexquarters.com/esupport/newimages/ISNULL/step2.png" width="673" height="373" /><br /></span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - How to use Date() And DateAdd() function in QODBC]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2638]]></link>
<guid isPermaLink="false"><![CDATA[06c284d3f757b15c02f47f3ff06dc275]]></guid>
<pubDate><![CDATA[Fri, 13 Mar 2015 10:05:07 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Troubleshooting - How to use Date() And DateAdd() function in QODBC
Problem Description:
 I want to write some select statements on InvoiceLine and SalesReceiptLine that return all records dated WITHIN the past 30 days relative to whatever TODAY is. I'm...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">Troubleshooting - How to use Date() And DateAdd() function in QODBC</span></h2>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Problem Description:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> I want to write some select statements on InvoiceLine and SalesReceiptLine that return all records dated WITHIN the past 30 days relative to whatever TODAY is. I'm very familiar with Microsoft SQL syntax and would normally say... WHERE TxnDate &gt;= getdate()-30<br /><br />How can I reference "30 days ago" using the QODBC driver?<br /> </span></p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Solutions:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> In QODBC, the function CURATE() &ndash; Returns the current computer system date as a date value.<br /><br />For example, for Today, April 18, 2006, when the following query:-<br /><br />SELECT {fn CURDATE()} as Today, ({fn CURDATE()}-30) as "30 Days Ago", TxnDate, RefNumber, InvoiceLineDesc FROM invoiceline WHERE TxnDate &gt;= ({fn CURDATE()}-30) is run in <strong>QODBC Test Tool. The</strong>&nbsp;results were:</span></p>
<p>&nbsp;</p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="https://support.flexquarters.com/esupport/newimages/2638/Q1.png" alt="" /></span></p>
<p>&nbsp;</p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Problem Description:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> I need to select only the transactions that occurred in the last 90 days. I used the Access functions Date() and DateAdd() in the Criteria to filter for those transactions, but I am getting the error message "Invalid Procedure Call." Here are the Criteria that I am trying to use:<br /><br />Between Date() And DateAdd("dd",-91,Date())<br /><br />What am I doing wrong? Does QODBC have different functions for this?<br /><br /> </span></p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Solutions:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> To write Pass-thru queries for reading and to write QuickBooks&reg; data using QODBC and Microsoft&reg; Access, you must use the proper date format.<br /><br />You may use Date Macros, but you may also use specific from and to dates for more flexibility.<br /><br />This function formats dates with the QODBC format: {d 'YYYY-MM-DD'}. There is no need to remember the form, just the function's name: fncqbDate.<br /><br /> <br /><br /> <strong>Function:</strong> <br /><br />Function fncqbDate(myDate As Date) As String<br />myDate = Nz(myDate, Now)<br />fncqbDate = "{d '" &amp; Year(myDate) &amp; "-" &amp; Right("00" &amp; Month(myDate), 2) &amp; "-" &amp; Right("00" &amp; Day(myDate), 2) &amp; "'}"<br />End Function<br /> <br /><br /> <strong>Example:</strong> <br /><br />You might use fncqbDate to help create an SQL string with VBA from user input dates. <br /><br />mySQL = "sp_report customtxnDetail show TxnType,TxnID, RefNumber, Date, Name ,Memo , Amount,account parameters TxnFilterTypes = 'Check',SummarizeRowsBy = 'TotalOnly',dateFROM = " &amp; fncqbDate(BegDate) &amp; ", dateTO = " &amp; fncqbDate(EndDate) &amp; " where account like '%checking%'" <br /><br /> <br /><br /> <strong>Put Some Checks into a Table:</strong> <br /><br />Try this out and put some checks on a table:<br />1. Copy and paste fncqbDate (first function above) into a module.<br />2. Copy and paste fncGetChecks (function below) into a module.<br />3. If you need QuickBooks&reg; to open to using QODBC, open it and ensure you have authorized QuickBooks&reg; to communicate with QODBC. 4. Make sure the following references are checked in your Microsoft&reg; Access database:<br />Visual Basic For Applications<br />Microsoft Access 10.0 Object Library<br />Microsoft DAO 3.6 Object Library<br /> <br /><br />To use fncGetChecks, call it from a form or type fncGetChecks into the immediate window of the Visual Basic Editor. <br /><br />Change the default connection string if necessary by entering your connection string when prompted. <br /><br />The function will ask for: a name for the new query (make sure this doesn't already exist in your database)<br /><br />a beginning date<br /><br />an ending date<br /><br />Your connection string, which may or may not be the default offered<br /><br /> <br /><br />Function fncGetChecks()<br />On Error GoTo fncGetChecks_err<br />Dim q As String, Date1 As Date, Date2 As Date<br />q = InputBox("Give your temporary query a name:", "Temporary Pass-Thru Query", "")<br />Date1 = InputBox("Enter start date:", "Start Date", FormatDateTime(Now, vbShortDate))<br />Date2 = InputBox("Enter end date:", "End Date", FormatDateTime(Now, vbShortDate))<br />Dim db As DAO.Database, qd As DAO.QueryDef<br />Set db = CurrentDb<br />Set qd = db.CreateQueryDef(q)<br />qd.ReturnsRecords = True<br />qd.Connect = InputBox("Enter connection string:", "", "ODBC;DSN=QuickBooks Data;SERVER=QODBC")<br />qd.SQL = "sp_report customtxnDetail show TxnType,TxnID, RefNumber, Date, Name ,Memo , Amount,account " &amp; _<br />"parameters TxnFilterTypes = 'Check',SummarizeRowsBy = 'TotalOnly'," &amp; _<br />"dateFROM = " &amp; fncqbDate(Date1) &amp; ", dateTO = " &amp; fncqbDate(Date2) &amp; _<br />" where account like '%checking%'"<br />DoCmd.RunSQL "select * into tbl" &amp; q &amp; " from " &amp; q<br />Set qd = Nothing<br />Set db = Nothing<br />DoCmd.DeleteObject acQuery, q<br />DoCmd.OpenTable "tbl" &amp; q<br />Exit Function<br />fncGetChecks_err:<br /> <br />MsgBox Erl &amp; " " &amp; Err.Number &amp; ": " &amp; Err.Description<br />End Function <br /><br /><br />Also, refer to the following:<br /><br /> <a href="http://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/1225/57/how-to-use-prompted-date-ranges-in-ms-access-2007-using-vista"> How to Use Prompted Date Ranges in MS Access 2007 using Vista&nbsp;</a><br /></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;</span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Online] Troubleshooting - How to create a blank Invoice in QuickBooks Online using QODBC]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2629]]></link>
<guid isPermaLink="false"><![CDATA[8cff9bf6694dccfc3b6a613d05d51d16]]></guid>
<pubDate><![CDATA[Mon, 02 Mar 2015 12:09:53 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Troubleshooting - How to create a blank Invoice in QuickBooks Online using QODBC
Problem Description:
 How do I create a note (or a blank line) on the invoice? If I do it the same way that I do it using QODBC for QuickBooks, I get an error :Error sendin...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">Troubleshooting - How to create a blank Invoice in QuickBooks Online using QODBC</span></h2>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Problem Description:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> How do I create a note (or a blank line) on the invoice? If I do it the same way that I do it using QODBC for QuickBooks, I get an error :<br /><br />Error sending txn to QB: 2020: QuickBooks message: Required param missing. We need to supply the required value for the API. QuickBooks message: Required parameter Line.SalesItemLineDetail is missing in the request.<br /> </span></p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Solutions:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> You can create a blank invoice from QODBC Online by using below sample query:<br /><br />INSERT INTO "InvoiceLine" (CustomerRefFullName,"InvoiceLineItemRefFullName", RefNumber) VALUES ('Aadi Vanhorn','Test','Blank001' )<br /><br />You must create an item without providing a price/rate in the Item module. Then it would be best if you delivered ItemName in your query. In this example, I have created the Item "Test" &amp; use it in the question. You can use the RefNumber column to insert InvoiceNumber. If you don't want to provide InvoiceNumber, then QuickBooks Online automatically adds the Invoice number to the invoice. Please see the query below without including RefNumber: <br /><br />INSERT INTO "InvoiceLine" (CustomerRefFullName,"InvoiceLineItemRefFullName") VALUES ('Aadi Vanhorn','Test')</span></p>
<h3>&nbsp;</h3>
<p>&nbsp;</p>
<p>Tags: QuickBooks Online, QBO, Create Blank Invoice, QODBC Online</p>
<p>&nbsp;</p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - Cannot use alias in MS Query]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2626]]></link>
<guid isPermaLink="false"><![CDATA[e354fd90b2d5c777bfec87a352a18976]]></guid>
<pubDate><![CDATA[Mon, 02 Mar 2015 11:54:46 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Troubleshooting - Cannot use an alias in MS Query
Problem Description:
 I am getting the following error message when trying to SELECT data fields AS Alias, the statement runs fine otherwise.[sql syntax error] Expected lexical element not found:= Please...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">Troubleshooting - Cannot use an alias in MS Query</span></h2>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Problem Description:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> I am getting the following error message when trying to SELECT data fields AS Alias, the statement runs fine otherwise.<br /><br />[sql syntax error] Expected lexical element not found:= <br /><br />Please see the following SQL statement: <br /><br />SELECT Item. Name AS SKU, Item.CustomFieldColor AS Item, Item.Description, Item.SalesPrice, Item.PurchaseCost, Item.QuantityOnHand FROM Item Item WHERE (Item.Name&lt;&gt;'IFR' And Item.Name&lt;&gt;'OTW') AND (Item.Description&lt;&gt;'') AND (Item.Type='ItemInventory') ORDER BY Item.Name<br /><br />The above statement is working fine in QODBC Test Too and MS Access. But I am facing an issue in MS Excel. &nbsp;</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;</span></p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/MSQueryAlias/step1.PNG" alt="http://support.flexquarters.com/esupport/newimages/MSQueryAlias/step1.PNG" width="1198" height="554" /></p>
<p>&nbsp;</p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Solutions:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> MS Excel has an issue when you alias in the query. When you try to use Microsoft Query to return data from some third-party databases into Microsoft Excel, apostrophes (') around alias names can cause the query to fail. <br /><br />Please refer to the link below to resolve this issue:<br /><br /> <a href="https://support.microsoft.com/en-us/kb/298955" target="_blank"> Using a field alias in Query does not work with some third-party databases </a><br /><br />You can either apply a hotfix or change registry values.</span></p>
<p>Note: In recent versions of Microsoft Excel (including Excel 365), the Microsoft Query (Legacy) feature is hidden by default from the Get Data tab.</p>
<p>Please refer to&nbsp;<a href="https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/3092" target="_blank">Troubleshooting - How to enable Microsoft Excel 365 - Legacy Microsoft Query</a>.</p>
<p>The result after changing registry values &amp; execute the query again:</p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/MSQueryAlias/step2.PNG" alt="http://support.flexquarters.com/esupport/newimages/MSQueryAlias/step2.PNG" /></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - Multiple tables exist error in the Linked Server]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2617]]></link>
<guid isPermaLink="false"><![CDATA[75e33da9b103b7b91dcd8da0abe1354b]]></guid>
<pubDate><![CDATA[Tue, 16 Dec 2014 10:24:56 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Troubleshooting - Multiple tables exist error in the Linked Server
Problem Description:
I am trying to run a query using an SQL Server database link to QuickBooks using QRemote. I can set up the linked server fine in SQL Server, and the connection has b...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">Troubleshooting - Multiple tables exist error in the Linked Server</span></h2>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Problem Description:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;">I am trying to run a query using an SQL Server database link to QuickBooks using QRemote. I can set up the linked server fine in SQL Server, and the connection has been tested to work. However, I try to run the query:<br /><br />SELECT * FROM QRemote...InvoiceLine<br /><br />The response is:<br /><br /> <strong>The OLE DB provider "MSDASQL" for linked server "QRemote" contains multiple tables that match the name "InvoiceLine."</strong><br /><br />I tried selecting through the&nbsp;<strong>QODBC Test Tool, which</strong>&nbsp;does not use the linked database. Please help as to where the issue might be.<br /> </span></p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Solutions:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> You have not configured the MSDASQL property for the linked server.<br /><br />The OLE DB provider options for managing linked queries can be set in SQL Server Management Studio.&nbsp;</span></p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/MultipleTables/step1.png" alt="http://support.flexquarters.com/esupport/newimages/MultipleTables/step1.png" width="289" height="165" /></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">In Object Explorer, right-click the provider name and select Properties for MSDASQL. The first six properties should be enabled. Please enable the first six properties.&nbsp;</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/MultipleTables/step2.png" alt="http://support.flexquarters.com/esupport/newimages/MultipleTables/step2.png" width="624" height="559" /><br /></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"><span style="font-family: Arial, Helvetica, sans-serif;">For Multiple tables existing error, the "Level zero only" property should be set. &nbsp;&nbsp;</span><br /></span></p>
<div id="ginger-floatingG-container">&nbsp;</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - How to get Alt.Email1,2 &amp; CC Email fields from the Customer table]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2614]]></link>
<guid isPermaLink="false"><![CDATA[5df07ecf4cea616e3eb384a9be3511bb]]></guid>
<pubDate><![CDATA[Tue, 16 Dec 2014 10:03:31 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Troubleshooting - How to get Alt.Email1,2 &amp; CC Email fields from the Customer table
Problem Description:
How do I access the alternate email addresses 1 and 2 and the cc email fields? I don't see them at the customer table. 
Solutions:
 You can ge...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">Troubleshooting - How to get Alt.Email1,2 &amp; CC Email fields from the Customer table</span></h2>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Problem Description:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;">How do I access the alternate email addresses 1 and 2 and the cc email fields? I don't see them at the customer table.<br /> </span></p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Solutions:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> You can get CC Email details from the "Cc" field in the Customer &amp; Entity table.<br /><br />The Alt Email 1 and 2 fields are not available through the Intuit SDK, so they are not available through QODBC.<br /><br />QODBC is an ODBC driver for QuickBooks. It uses the QuickBooks SDK to communicate with QuickBooks, which means if Intuit doesn't expose one feature to the application in the SDK, QODBC cannot do it either.<br /></span></p>
<div id="ginger-floatingG-container">&nbsp;</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - Freezing QuickBooks, slow query running]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2612]]></link>
<guid isPermaLink="false"><![CDATA[1175defd049d3301e047ce50d93e9c7a]]></guid>
<pubDate><![CDATA[Tue, 16 Dec 2014 09:46:01 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Troubleshooting - Freezing QuickBooks, slow query running.
Problem Description:
When I run a report query, the query works very slowly &amp; takes about 1-5 mins per simple report like:"sp_report ARAgingSummary show Current parameters DateFrom={d'2014-1...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">Troubleshooting - Freezing QuickBooks, slow query running.</span></h2>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Problem Description:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;">When I run a report query, the query works very slowly &amp; takes about 1-5 mins per simple report like:<br /><br />"sp_report ARAgingSummary show Current parameters DateFrom={d'2014-11-12'}, DateTo={d'2014-11-12'} where Blank = 'Total'"<br /><br />Sometimes it freezes QuickBooks, so the user should restart it.<br /> </span></p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Solutions:</span></h3>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Please enable the QODBC status panel via Start &gt;&gt; All Programs &gt;&gt; QODBC Driver for use with QuickBooks &gt;&gt; Configure QODBC Data Source.</span></p>
<p><img src="//support.flexquarters.com/esupport/newimages/DSNConf/step1.png" alt="" /></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Go to the "System DSN" Tab, select "QuickBooks Data" DSN &amp; click "Configure."</span></p>
<p><img src="//support.flexquarters.com/esupport/newimages/AT_Txn_Tt/step22.png" alt="" /></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">Navigate to the "Message" tab -&gt;Select "Display Driver Status" and "Display Optimizer Status" options.</span></p>
<p>&nbsp;</p>
<p><span style="font-family: Arial, Helvetica, sans-serif;"><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/FreezingQuickBooks/step1.png" alt="http://support.flexquarters.com/esupport/newimages/FreezingQuickBooks/step1.png" /></span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">&nbsp;</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">Then the next time you run a query, if you see "Waiting for QuickBooks," it means QuickBooks is taking time to process the request. There will be a status panel at the lower right corner of your screen, showing a window with information on what QODBC is working on. Please note the step on which QODBC spends the most time or gets stuck and share it with us.<br /><br />If you are getting "Waiting for QuickBooks," it means QuickBooks is taking time to process requests. So we may not provide much help on this issue. <br /><br />QuickBooks SDK provides data in XML format &amp; QODBC displays it in tabular form. QODBC acts as a 'wrapper' around the Intuit SDK so customers can finally get at their QuickBooks data using standard database tools, speeding development time. QODBC accepts SQL commands from applications through the ODBC interface, then converts those calls to navigational XML commands to the QuickBooks Accounting DBMS and returns record sets that qualify for the query results.<br /><br />QODBC requests the Report information from the QuickBooks SDK, and QuickBooks is the one processing it and sending the output. QODBC formats that output to a data table format. &nbsp;&nbsp;</span></p>
<div id="ginger-floatingG-container">&nbsp;</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - INTERNAL ERROR WHEN PROCESSING THE QBXML REQUEST]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2608]]></link>
<guid isPermaLink="false"><![CDATA[d756d3d2b9dac72449a6a6926534558a]]></guid>
<pubDate><![CDATA[Mon, 10 Nov 2014 14:46:12 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Troubleshooting - INTERNAL ERROR WHEN PROCESSING THE QBXML REQUEST
Problem Description:
I have QuickBooks 2014 version &amp; I am using QODBC's latest version. I have a problem with querying the customer table using QODBC.&nbsp;QODBC driver consistently...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">Troubleshooting - INTERNAL ERROR WHEN PROCESSING THE QBXML REQUEST</span></h2>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Problem Description:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;">I have QuickBooks 2014 version &amp; I am using QODBC's latest version. I have a problem with querying the customer table using QODBC.&nbsp;<br /><br />QODBC driver consistently gets stuck on "Find Next Record" at record #9000. I have tried the following:&nbsp;<br /><br />- Reset the optimizer file<br /><br />- Rebuild the QuickBooks company file<br /><br />- sp_optimizefullsync Customer: this crashes QuickBooks or does not complete correctly. There are still records missing from the Customer table that appear in QuickBooks.<br /><br />- Query customer table using UNOPTIMIZED keyword. Unoptimized hangs at about record 9000 and does not return the Customer<br /><br />On QuickBooks SDK logs, I noticed the below error:<br /><br />20140923.175608 E 3888 QBSDKProcessRequest *** INTERNAL ERROR WHEN PROCESSING THE QBXML REQUEST ***.</span></p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Solutions:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;">There might be some internal error that occurred during the processing request. To resolve this error, you need to get in touch with Intuit.<br /><br />Please restart QuickBooks &amp; try again, as you are saying that the query is stuck on #9000. There might be some issue with the company file. Please test the same on another company file or a sample company file to see if the problem is related to the company file.<br /><br />Also, try changing the Iterator value to 100 on QODBC Setup Screen--Advanced Tab.<br /><br />If you are still facing the same error, there might be an issue with your company file that would require repairing the company file &amp; you need to get in touch with Intuit.</span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting: Error 3250 - This feature is not enabled or not available in this version of QuickBooks.]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2607]]></link>
<guid isPermaLink="false"><![CDATA[53c6de78244e9f528eb3e1cda69699bb]]></guid>
<pubDate><![CDATA[Mon, 10 Nov 2014 14:44:47 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Troubleshooting: Error 3250 - This feature is not enabled or not available in this version of QuickBooks.
Problem Description:
 I am getting the error "Error 3250 - This feature is not enabled or not available in this version of QuickBooks." while I am ...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">Troubleshooting: Error 3250 - This feature is not enabled or not available in this version of QuickBooks.</span></h2>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Problem Description:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> I am getting the error "Error 3250 - This feature is not enabled or not available in this version of QuickBooks." while I am trying to insert an Invoice in QuickBooks using QODBC. Below is my insert statement:<br /><br />INSERT INTO InvoiceLine (CustomerRefListID, RefNumber, InvoiceLineItemRefListID, InvoiceLineDesc, InvoiceLineRate, InvoiceLineAmount, InvoiceLineGroupItemGroupRefListID, InvoiceLineGroupQuantity, InvoiceLineSalesTaxCodeRefListID, InvoiceLineLotNumber, FQSaveToCache) VALUES ('670000-1071517519', '91047', '320000-1071525597', 'POWER TRAK-2000', 200.00000, 200.00,'300000-933272656',11, '20000-999022286', 'L123',0)<br /></span></p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="//support.flexquarters.com/esupport/newimages/Error 3250/step1.png" alt="http://support.flexquarters.com/esupport/newimages/Error 3250/Step1.png" width="972" height="405" /></p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Solutions:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;">QuickBooks does not allow to use LotNumber when Advanced Inventory is Turned Off. QuickBooks SDK will throw the error "This feature is not enabled or not available in this version of QuickBooks."<br /><br />The Error message will depend on the operation you are performing.<br /><br />In this case, you need to enable the Advanced Inventory module &amp; try again.<br /><br />There might be other possibilities for this error. Please refer below possibilities:<br /><br />If the Units of Measure feature is not enabled &amp; you are trying to use it in your query.<br /><br />If the Class feature is not enabled &amp; you are trying to use it in your query. The QuickBooks company file you are using is not set to allow assigning classes to names. This preference must be turned on to include the ClassRef section of your query.<br /><br />To resolve this error, You need to enable the feature you are using from QuickBooks &amp; try again. &nbsp;&nbsp;</span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - ERROR [42S00] [QODBC] Insert value must be a simple value]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2606]]></link>
<guid isPermaLink="false"><![CDATA[a431d70133ef6cf688bc4f6093922b48]]></guid>
<pubDate><![CDATA[Mon, 10 Nov 2014 14:41:41 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Troubleshooting - ERROR [42S00] [QODBC] Insert value must be a simple value
Problem Description 1:
We have a customer trying to import a credit memo from our database into QuickBooks using a vb.net program. They are getting the following error: ERROR [4...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;"><span id="67e313e4-33b2-413f-9cee-ea6eef1aa183" class="GINGER_SOFTWARE_mark">Troubleshooting</span> - ERROR [42S00] [QODBC] Insert value must be a simple value</span></h2>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Problem Description 1:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;"><span id="2f305488-ea52-4901-993a-de7840dd603d" class="GINGER_SOFTWARE_mark"><span id="cdf6e950-3226-4cd0-ba6a-fbfc3a25b6b2" class="GINGER_SOFTWARE_mark">We</span></span> have a customer trying to import a credit memo from our database into QuickBooks using a vb.net program. They are getting the following error: ERROR [42S00] [QODBC] Insert value must be a simple value. We have other customers that can import credit memos, and I have compared the imported data and cannot find any difference in the data format. Can you give me an idea of what to look for? <br /><br /> </span></p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Solutions 1:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;">You are getting the error " [QODBC] Insert value must be a simple value" because you are not passing the value in the correct format. The VB code generates this error. It is not a QODBC error.<br /><br />Please verify your insert statement &amp; try again. Please refer below-mentioned link <span id="f0ef706d-a76d-4e59-b902-1720b7c3129c" class="GINGER_SOFTWARE_mark"><span id="8b6615aa-d742-40fa-8cfa-cae1f75a03e3" class="GINGER_SOFTWARE_mark">to</span></span>&nbsp;a sample VB code:<br /><br /> <a href="http://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/506/57/examples-of-how-to-use-qodbc-via-visual-basic">Examples of How to Use QODBC via Visual Basic</a><br /><br />Please refer to the below-mentioned article for creating a credit memo:<br /><br /> <a href="http://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2068/50/how-to-create-credit-memos">How to create Credit Memos</a><br /><br /> </span></p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Problem Description 2:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;">When I go to insert a Customer, I receive an error saying [QODBC] Insert value must be a simple value. I need to know what I am doing wrong to insert a new customer. <br /><br />Please refer below code which I am using:<br /><br />Public Sub InsertNewCustomers<span id="d5eafa60-3a56-4323-842e-c2e37e9ea18b" class="GINGER_SOFTWARE_mark"><span id="4014c3bc-59da-4959-a2b0-faa3bf1d1208" class="GINGER_SOFTWARE_mark">(</span></span>)<br /><br />Dim name As String<br /><br />Dim <span id="e2b82a5d-fefb-475c-94e1-4f4ace002bb4" class="GINGER_SOFTWARE_mark"><span id="ab973260-7da4-449b-8670-1cbc859396e7" class="GINGER_SOFTWARE_mark">firstName</span></span> As String<br /><br />Dim <span id="5dfb6cbb-a49c-4b90-9604-5136406a3556" class="GINGER_SOFTWARE_mark"><span id="fc56e36d-dcd7-48d3-ae42-795ff0b20c86" class="GINGER_SOFTWARE_mark">lastName</span></span> As String<br /><br />Dim <span id="5470e68c-93c0-44f1-8b8b-d0fea7b79678" class="GINGER_SOFTWARE_mark"><span id="f3f9923e-86f1-42e3-8f4c-cd4174dcb42a" class="GINGER_SOFTWARE_mark">companyName</span></span> As String<br /><br />Dim contact As String<br /><br />Dim billAddressAddr1 As String<br /><br />Dim billAddressAddr2 As String<br /><br />Dim billAddressAddr3 As String<br /><br />Dim <span id="a00da066-14bf-4fdc-82dd-6cab8446716a" class="GINGER_SOFTWARE_mark">billAddressCity</span> As String<br /><br />Dim <span id="03e500db-fbee-47f5-b12e-ea94bf26d0d7" class="GINGER_SOFTWARE_mark">billAddressState</span> As String<br /><br />Dim address postal code&nbsp;As String<br /><br />Dim phone As String<br /><br />Dim fax As String<br /><br />Dim email As String<br /><br />'Testing to Insert, remove before going LIVE!!<span id="017a9ef0-ffce-41e6-9440-b553c0377e64" class="GINGER_SOFTWARE_mark">!</span>*************************************************************************************************<br /><br /> <span id="9a4613f3-3ebf-4e34-8d07-7524e60711c6" class="GINGER_SOFTWARE_mark">name</span> = "ABC XYZ"<br /><br /> <span id="9696c9c9-d8d2-4924-99ad-56bd7fbefeae" class="GINGER_SOFTWARE_mark">firstName</span> = "ABC"<br /><br /> <span id="a11e334b-480a-437b-86d2-28edbb24b379" class="GINGER_SOFTWARE_mark">lastName</span> = "XYZ"<br /><br /> <span id="89905a99-1232-4ee9-9352-ba5bb28bfc91" class="GINGER_SOFTWARE_mark">companyName</span> = "Test Company"<br /><br /> <span id="80b92127-af1b-4fcd-a071-db724548d1bc" class="GINGER_SOFTWARE_mark">contact</span> = "Jerry"<br /><br />billAddressAddr1 = "503 Test Club"<br /><br />billAddressAddr2 = ""<br /><br />billAddressAddr3 = ""<br /><br /> <span id="add237f6-6298-4b1f-a98b-3d424c9b2131" class="GINGER_SOFTWARE_mark">billAddressCity</span> = "Test City"<br /><br /> <span id="9638a3dd-13e0-4ce6-87d2-e0ef787d918d" class="GINGER_SOFTWARE_mark">billAddressState</span> = "OK"<br /><br /> <span id="0f8ec6ab-e91e-4afe-8582-489c1435e429" class="GINGER_SOFTWARE_mark">addressPostalCode</span> = "11644"<br /><br /> <span id="6d86bd9a-dcee-4d3d-8163-59288a4734be" class="GINGER_SOFTWARE_mark">phone</span> = "111-111-1111"<br /><br /> <span id="83b40e7b-34a6-424f-9cf0-18f49b5bba61" class="GINGER_SOFTWARE_mark">fax</span> = ""<br /><br /> <span id="146bbc6f-1a6a-4786-90ef-75f04dcb406a" class="GINGER_SOFTWARE_mark">email</span> = ""<br /><br />'*********************************************************************************************************************<br /><br />Dim conn As ADODB<span id="fb28eb49-90e2-4daf-8178-6df337942015" class="GINGER_SOFTWARE_mark">.</span>Connection<br /><br />Dim <span id="50ad1d73-3d6f-428c-9428-109b73882579" class="GINGER_SOFTWARE_mark">rs</span> As ADODB<span id="604d36d7-1c3b-42b9-b47e-81efce50fa2d" class="GINGER_SOFTWARE_mark">.</span>Recordset<br /><br /> <span id="42f7f488-50d5-4d10-9d8e-cd386360b157" class="GINGER_SOFTWARE_mark">conn</span> = New ADODB<span id="dc6b040e-a095-472a-b14c-252309ca23c5" class="GINGER_SOFTWARE_mark">.</span>Connection<br /><br /> <span id="b5179fc0-33fd-4117-9677-c8ca454f2b64" class="GINGER_SOFTWARE_mark">conn</span><span id="c81d4916-35bd-40c9-9413-781344c3d31e" class="GINGER_SOFTWARE_mark">.</span>ConnectionString = "DSN=Quickbooks Data<span id="f260fe7f-7f2c-49df-954b-c2bb5ef6e214" class="GINGER_SOFTWARE_mark">;</span>OLE DB Services=-2;"<br /><br /> <span id="9d00a778-33c0-4052-89bb-5fb882bf442c" class="GINGER_SOFTWARE_mark">conn</span><span id="d3f20649-38b6-4304-8604-8fb9e6e129e8" class="GINGER_SOFTWARE_mark">.</span>Open<span id="7bdd4ada-90cb-4420-ae48-818657ba1cce" class="GINGER_SOFTWARE_mark">(</span>)<br /><br />Try<br /><br />' Create the new record.<br /><br /> <span id="8ce52b64-1bb2-410d-a63c-6289859932d1" class="GINGER_SOFTWARE_mark">rs</span> = conn<span id="56c9d4e9-a7aa-4ce6-a3f8-ad6a49331077" class="GINGER_SOFTWARE_mark">.</span>Execute<span id="495b31d6-a0f5-406c-9821-37f26faa7e93" class="GINGER_SOFTWARE_mark">( </span>_<br /><br />"INSERT INTO customer(name, firstname, lastname, companyName, contact, BillAddressAddr1, BillAddressAddr2, BillAddressAddr3, BillAddressCity, BillAddressState, BillAddressPostalCode, Phone, Fax, Email)VALUES(name, firstname, lastname, companyName, contact, billAddressAddr1, billAddressAddr2, billAddressAddr3, billAddressCity, billAddressState, billAddressPostalCode, phone, fax, email)")<br /><br /> <span id="eb1f360f-52e1-413b-a90b-3d106d62b25d" class="GINGER_SOFTWARE_mark">LogEntry</span><span id="316bb45a-d892-49d7-af67-9a62d201204f" class="GINGER_SOFTWARE_mark">(</span>"New Customer Added to QuickBooks")<br /><br />Catch e As an Exception<br /><br />MsgBox(e.ToString)<br /><br />End Try<br /><br />' Close the database.<br /><br />rs.Close()<br /><br />rs = Nothing<br /><br />conn.Close()<br /><br />conn = Nothing<br /><br />'*********************************************************************************************************************<br /><br />End Sub<br /><br /> </span></p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Solutions 2:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;">You are getting the error " [QODBC] Insert value must be a simple value" because you are not passing the value in the correct format. The VBA code generates this error. It is not a QODBC error.<br /><br />There is a problem with your Insert statement. You cannot pass the value directly. Your insert statement should be like as below.<br /><br />INSERT INTO customer(Name,FirstName,LastName,CompanyName,Contact,BillAddressAddr1,BillAddressAddr2,BillAddressAddr3,BillAddressCity,BillAddressState,BillAddressPostalCode,Phone,Fax,Email) " &amp; _<br /><br />" VALUES( '" + name + "','" + firstName + "','" + lastName + "','" + companyName + "','" + contact + "','" + billAddressAddr1 + "','" + billAddressAddr2 + "','" + billAddressAddr3 + "','" + billAddressCity + "','" + billAddressState + "','" + billAddressPostalCode + "','" + phone + "','" + fax + "','" + email + "')<br /><br />Please refer to the updated code &amp; try to insert the record with this code.<br /><br />Public Sub InsertNewCustomers<span id="009d05bd-12e8-48fc-a914-5f7c1c22cf17" class="GINGER_SOFTWARE_mark"><span id="b93eea20-dc98-4e71-a07c-83fae6c7d0b3" class="GINGER_SOFTWARE_mark">(</span></span>)<br /><br />Dim name As String<br /><br />Dim <span id="8b01a149-8eca-445a-ba5c-984f65b67a84" class="GINGER_SOFTWARE_mark"><span id="134008c1-7f62-480a-b804-f52a305446a7" class="GINGER_SOFTWARE_mark">firstName</span></span> As String<br /><br />Dim <span id="3cf69305-7871-4fe5-a54c-3bb76b379d24" class="GINGER_SOFTWARE_mark"><span id="ec31a3c1-d58f-4d95-9bc8-7dd61fc68aad" class="GINGER_SOFTWARE_mark">lastName</span></span> As String<br /><br />Dim <span id="e90e0735-041b-4413-8876-5577c519dbf1" class="GINGER_SOFTWARE_mark"><span id="c48e5663-f6ae-4f23-af77-9e544df91e6e" class="GINGER_SOFTWARE_mark">companyName</span></span> As String<br /><br />Dim contact As String<br /><br />Dim billAddressAddr1 As String<br /><br />Dim billAddressAddr2 As String<br /><br />Dim billAddressAddr3 As String<br /><br />Dim <span id="5da4b2c7-b28a-40c2-809d-ce688756458f" class="GINGER_SOFTWARE_mark">billAddressCity</span> As String<br /><br />Dim <span id="751a376e-7f51-4d4c-8ed1-a5e2188ed7ed" class="GINGER_SOFTWARE_mark">billAddressState</span> As String<br /><br />Dim <span id="cdec2226-c32a-4da3-b057-5b5c412c9d37" class="GINGER_SOFTWARE_mark">addressPostalCode</span> As String<br /><br />Dim phone As String<br /><br />Dim fax As String<br /><br />Dim email As String<br /><br />'Testing to Insert, remove before going LIVE!!<span id="f928c858-29ca-41b5-9f11-97acd031a396" class="GINGER_SOFTWARE_mark">!</span>*************************************************************************************************<br /><br /> <span id="0ae542b6-ec7e-4953-8648-6a1a23ae54c3" class="GINGER_SOFTWARE_mark">name</span> = "ABC XYZ"<br /><br /> <span id="c4ce2b6d-bc8a-4f2a-a517-7cc23fa1482c" class="GINGER_SOFTWARE_mark">firstName</span> = "ABC"<br /><br /> <span id="63e17a60-884c-4d74-a4b1-3795cd127e40" class="GINGER_SOFTWARE_mark">lastName</span> = "XYZ"<br /><br /> <span id="fad0e4ea-3189-4fa2-8d96-e53fd14600da" class="GINGER_SOFTWARE_mark">companyName</span> = "Test Company"<br /><br /> <span id="16e5569b-5059-4309-9b3d-29e276084db1" class="GINGER_SOFTWARE_mark">contact</span> = "Jerry"<br /><br />billAddressAddr1 = "503 Test Club"<br /><br />billAddressAddr2 = ""<br /><br />billAddressAddr3 = ""<br /><br /> <span id="83169149-f42b-4a5f-b14b-87503b8586aa" class="GINGER_SOFTWARE_mark">billAddressCity</span> = "Test City"<br /><br /> <span id="70a9367a-ed51-4818-aa73-6242674a9ef5" class="GINGER_SOFTWARE_mark">billAddressState</span> = "OK"<br /><br /> <span id="f8c612b5-004d-4baa-9bd0-7d9298ab6e6e" class="GINGER_SOFTWARE_mark">addressPostalCode</span> = "11644"<br /><br /> <span id="9c83284a-b609-4a75-a476-b1cf4be92aec" class="GINGER_SOFTWARE_mark">phone</span> = "111-111-1111"<br /><br /> <span id="658a6373-a073-4cb4-9faf-79c0fc2abf3e" class="GINGER_SOFTWARE_mark">fax</span> = ""<br /><br /> <span id="79d0c5a2-b040-4a07-b557-995a45d73d5b" class="GINGER_SOFTWARE_mark">email</span> = ""<br /><br />'*********************************************************************************************************************<br /><br />Dim conn As ADODB<span id="84d5fcc2-fdf0-4f48-a67f-a01b602b1718" class="GINGER_SOFTWARE_mark">.</span>Connection<br /><br />Dim <span id="53d27950-c8d1-4238-ae90-a8541709a3ad" class="GINGER_SOFTWARE_mark">rs</span> As ADODB<span id="4b615568-2985-4b51-a959-de3e383064f6" class="GINGER_SOFTWARE_mark">.</span>Recordset<br /><br /> <span id="a5efd808-925e-4b14-9345-2e83f2095e21" class="GINGER_SOFTWARE_mark">conn</span> = New ADODB<span id="0b1c5c9f-118d-4d1d-9f05-32ee845d4932" class="GINGER_SOFTWARE_mark">.</span>Connection<br /><br /> <span id="61d3e034-da6e-45d6-9b3d-49c42750ea60" class="GINGER_SOFTWARE_mark">conn</span><span id="dec77374-5f21-4699-ad97-dda4ae93110b" class="GINGER_SOFTWARE_mark">.</span>ConnectionString = "DSN=Quickbooks Data<span id="eac56e34-02d4-41dd-985f-479f8c9c330d" class="GINGER_SOFTWARE_mark">;</span>OLE DB Services=-2;"<br /><br /> <span id="14bd0469-aff8-47ec-be8e-e076307ca13b" class="GINGER_SOFTWARE_mark">conn</span><span id="ff326b4e-e579-4b8f-bd05-6457b27a6a81" class="GINGER_SOFTWARE_mark">.</span>Open<span id="5790cee1-7085-4a27-a8c7-5ce68192e868" class="GINGER_SOFTWARE_mark">(</span>)<br /><br />Try<br /><br />' Create the new record.<br /><br /> <span id="c18b793a-57f1-46dd-8110-2454826939eb" class="GINGER_SOFTWARE_mark">rs</span> = conn<span id="84a10540-c02e-4c2d-a76c-6f20e70a3355" class="GINGER_SOFTWARE_mark">.</span>Execute<span id="c9aabe28-866d-46be-9502-f610eef8a767" class="GINGER_SOFTWARE_mark">( </span>_<br /><br />sSQL = "INSERT INTO customer(Name,FirstName,LastName,CompanyName,Contact,BillAddressAddr1,BillAddressAddr2,BillAddressAddr3,BillAddressCity,BillAddressState,BillAddressPostalCode,Phone,Fax,Email) " &amp; _<br /><br />" VALUES( '" + name + "','" + firstName + "','" + lastName + "','" + companyName + "','" + contact + "','" + billAddressAddr1 + "','" + billAddressAddr2 + "','" + billAddressAddr3 + "','" + billAddressCity + "','" + billAddressState + "','" + billAddressPostalCode + "','" + phone + "','" + fax + "','" + email + "')"<br /><br />Set conn = CreateObject("ADODB.Connection")<br /><br />Set rs = CreateObject("ADODB.Recordset")<br /><br />conn.Open sConnectString<br /><br />' Create a new record.<br /><br />rs = conn.Execute(sSQL)<br /><br />sMsg = sMsg &amp; "Record Added!!!"<br /><br />MsgBox msg<br /><br />' Close the database.<br /><br />Set rs = Nothing<br /><br />Set conn = Nothing<br /><br />'*********************************************************************************************************************<br /><br />End Sub<br /></span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting - Cannot create a new table using QODBC / Cannot add a new field to the QODBC table]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2602]]></link>
<guid isPermaLink="false"><![CDATA[6403675579f6114559c90de0014cd3d6]]></guid>
<pubDate><![CDATA[Mon, 10 Nov 2014 14:21:37 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Troubleshooting -&nbsp;Cannot create a new table using QODBC / Cannot add a new field to the QODBC table
Problem Description:
 I'm trying to create a new table with VB Demo or QODBC Test Tool.
Can you send me a sample query to do this? 
Solutions:
QO...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;"><span id="f964c0bd-d634-4d7e-98a8-9d34508d2f5e" class="GINGER_SOFTWARE_mark">Troubleshooting</span> -&nbsp;Cannot create a new table using QODBC / Cannot add a new field to the QODBC table</span></h2>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Problem Description:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;"> I'm trying to create a new table with <strong>VB Demo</strong> or <strong>QODBC Test Tool</strong>.</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">Can you send me a sample query to do this? </span></p>
<h3><span style="color: #0066cc; font-family: Arial, Helvetica, sans-serif;">Solutions:</span></h3>
<p><span style="font-family: Arial, Helvetica, sans-serif;">QODBC is an ODBC driver. Please remember that QODBC is not a database but rather a translation tool. QODBC acts as a 'wrapper' around the Intuit SDK so customers can finally get at their QuickBooks data using standard database tools; </span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">You cannot create a new table from <strong>VB Demo</strong> or <strong>QODBC Test Tool</strong> because QODBC is just reading and writing to the QuickBooks Company file via the QuickBooks SDK. QuickBooks SDK provides data in XML format, and QODBC converts it to a table format.</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">What you are trying to do is a new table in the QuickBooks Company file, which is not supported. Thus, you cannot create/drop/alter table(s) from the&nbsp;<strong>VB Demo</strong> or <strong>QODBC Test Tool</strong>.</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif;">Keywords:&nbsp;adding in a column, adding in a table, how to add a new table, how to add a new column<br /></span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-ALL] ERROR [42000] [QODBC] Expected lexical element not found: ]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2538]]></link>
<guid isPermaLink="false"><![CDATA[1bf0c59238dd24a7f09a889483a50e8f]]></guid>
<pubDate><![CDATA[Mon, 14 Apr 2014 13:54:22 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Problem Description 1: 
 I'm working in PHP and using the QODBC Test Tool. I am trying to insert a value into the Customer table. 
 But I am getting the following error:  
 Expected lexical element not found:  
 My insert statement is: 
 Insert into ...]]></description>
<content:encoded><![CDATA[<h3><span style="color: #0066cc; font-family: Arial,Helvetica,sans-serif;">Problem Description 1: </span></h3>
<p><span style="font-family: Arial,Helvetica,sans-serif;"> I'm working in PHP and using the QODBC Test Tool. I am trying to insert a value into the Customer table.<br /> </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><span style="font-family: Arial,Helvetica,sans-serif;"> But I am getting the following error: <br /> </span></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><span style="font-family: Arial,Helvetica,sans-serif;"><span style="font-family: Arial,Helvetica,sans-serif;"> <strong>Expected lexical element not found: </strong><br /> </span></span></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><span style="font-family: Arial,Helvetica,sans-serif;"><span style="font-family: Arial,Helvetica,sans-serif;"><span style="font-family: Arial,Helvetica,sans-serif;"> My insert statement is:<br /> </span></span></span></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><span style="font-family: Arial,Helvetica,sans-serif;"><span style="font-family: Arial,Helvetica,sans-serif;"><span style="font-family: Arial,Helvetica,sans-serif;"> Insert into Customer ('CompanyName,' 'Phone,' 'Email') values('adsf,' '235632', 'afdsf');<br /> </span></span></span></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><span style="font-family: Arial,Helvetica,sans-serif;"><span style="font-family: Arial,Helvetica,sans-serif;"><span style="font-family: Arial,Helvetica,sans-serif;"> Won't work for me. Any suggestions as to why? <br /> </span></span></span></span></p>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="font-family: Arial,Helvetica,sans-serif;"><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc; font-family: Arial,Helvetica,sans-serif;">Solution 1: </span></span></span></span></h3>
<p><span style="font-family: Arial,Helvetica,sans-serif;"> QODBC will issue this error when there is a syntax error in your SQL statements. <br /> </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><span style="font-family: Arial,Helvetica,sans-serif;"> Your insert statement should be like this: <br /> </span></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><span style="font-family: Arial,Helvetica,sans-serif;"><span style="font-family: Arial,Helvetica,sans-serif;"> Insert into Customer ("CompanyName," "Phone," "Email") values('Test,' '235632', 'abc@def.com'); <br /> </span></span></span></p>
<h3><span style="font-family: Arial,Helvetica,sans-serif;"><span style="font-family: Arial,Helvetica,sans-serif;"><span style="font-family: Arial,Helvetica,sans-serif;"><span style="color: #0066cc; font-family: Arial,Helvetica,sans-serif;">Problem Description 2: </span></span></span></span></h3>
<p><span style="font-family: Arial,Helvetica,sans-serif;"> I have constructed an insert statement that is getting this error. To narrow it down, I modified the values portion of my query to be a select, inserted, and tested the different data types I was trying to select. </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"> After doing so, I was able to determine that the problem is with both the ts and d functions that we have here, and I had to assume that it was the input's fault and not yours, since the process is referenced everywhere. I seemed to remember reading somewhere that you guys use the computer's regional time settings to figure out how to parse out times, but after my test, I found this not to be the case. </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"> For example <br />select {ts'8/20/2006 9:26:15 AM'} from customer<br />and<br />select {d'9/15/2006'} from customer<br />both give the lexical element error.<br /> </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"> My "Regional and Language settings" in "Control Panel" say my date-time format looks like so: </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"> Time: 10:04:29 AM<br />Short Date: 8/10/2006<br />Long Date: Thursday, August 10, 2006<br /> </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">I was hoping that you guys were paying attention to it. After all, that's what .NET does, and it seems to work great. </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"> select {d'2006-06-26'} from customer</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"> This results in "6/26/2006 12:00:00 AM," which is expected, but having to format the time for the select/insert/update/delete statement so that it can be formatted back seems like a lot of overhead... </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"> For those of us using .NET (or any language that supports date/time formatting via a format string), you should be able to use the following: </span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"> String date= System.DateTime.Now.ToString("yyyy-MM-dd");<br />string datetime= System.DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss tt");</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"> Which will give you the following:<br />2006-08-10<br />and<br />2006-08-10 10:10:39 AM<br /></span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Respectively, which can be used in your SQL Statement afterward.</span></p>
<h3><span style="color: #0066cc; font-family: Arial,Helvetica,sans-serif;">Solutions 2:</span></h3>
<p><span style="font-family: Arial,Helvetica,sans-serif;"> QODBC will issue this error when there is a syntax error in your SQL statements.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"> So please check your statements &amp; try again.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"> QODBC uses the standard SQL Date {d'YYYY-MM-DD'} and Timestamp {ts 'YYYY-MM-DD HH:mm: SS.zzz'} formats and is the same worldwide regardless of the region: See also: <a href="http://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2203/0/how-are-dates-formatted-in-sql-queries-when-using-the-quickbooks-generated-time-stamps">How are dates formatted in SQL queries when using the QuickBooks-generated time stamps </a></span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting: Expected lexical element not found]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2465]]></link>
<guid isPermaLink="false"><![CDATA[1e0a84051e6a4a7381473328f43c4884]]></guid>
<pubDate><![CDATA[Wed, 31 Oct 2012 11:51:19 +0000]]></pubDate>
<dc:creator />
<description><![CDATA[Troubleshooting: Expected lexical element not found
Problem Description&nbsp;
When trying to execute a query statement, I get the error message " Expected lexical element not found."
Solutions
It seems to be the issue in the SQL Statement. Please chec...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;">Troubleshooting: Expected lexical element not found</span></h2>
<h3><span style="color: #0066cc; font-family: Arial,Helvetica,sans-serif;">Problem Description&nbsp;</span></h3>
<p><span style="color: #0066cc; font-family: Arial,Helvetica,sans-serif;"><span style="color: #000000;">When trying to execute a query statement, I get the error message</span> " <strong>Expected lexical element not found</strong>."</span></p>
<h3><span style="color: #0066cc; font-family: Arial,Helvetica,sans-serif;">Solutions</span></h3>
<p><span style="color: #000000; font-family: Arial,Helvetica,sans-serif;">It seems to be the issue in the SQL Statement. Please check all the field names and table names. Usually,&nbsp;this could be a typo error in the field name in your SQL Statement. To know more about the fields and data layout, please <a href="http://qodbc.com/schema.htm" target="_blank">Click Here</a></span>&nbsp;</p>
<h3><span style="font-family: arial, helvetica, sans-serif; color: #3366ff;">Another Possible Problem &amp; Solution:</span></h3>
<h4><span style="color: #3366ff;">Problem Description:</span></h4>
<p id="yui_3_15_0_1_1409729252221_899"><span id="yui_3_15_0_1_1409729252221_910" style="font-family: arial, helvetica, sans-serif;">When I issue a SQL statement:</span></p>
<p id="yui_3_15_0_1_1409729252221_877"><span style="font-family: arial, helvetica, sans-serif;">SELECT Desc FROM Charge&nbsp;</span></p>
<p><span style="font-family: arial, helvetica, sans-serif;">I get "Expected lexical element not found: = &lt;identifier&gt;."</span></p>
<p id="yui_3_15_0_1_1409729252221_906"><span style="font-family: arial, helvetica, sans-serif;">However, if I issue</span></p>
<p><span style="font-family: arial, helvetica, sans-serif;">Select * from Charge</span></p>
<p id="yui_3_15_0_1_1409729252221_856"><span style="font-family: arial, helvetica, sans-serif;">Then, I get a full output with one of the columns named "Desc."</span></p>
<p id="yui_3_15_0_1_1409729252221_860"><span style="font-family: arial, helvetica, sans-serif;">Why can't I query for the column by name?</span></p>
<p id="yui_3_15_0_1_1409729252221_862"><span style="font-family: arial, helvetica, sans-serif;">I have tried this through the <a href="https://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2981" target="_blank">QODBC Support Wizard</a> and a C# program.</span>&nbsp;</p>
<div>
<h4><span style="color: #3366ff;">Solution:</span>&nbsp;</h4>
</div>
<div><span style="font-family: arial, helvetica, sans-serif;">I want to inform you that&nbsp;Desc may be a reserved word in SQL; you are getting this error. I kindly request you to please put quotes around <strong>"Desc."</strong>&nbsp;Please use the query below, which does not issue an error:</span></div>
<div><span style="font-family: arial, helvetica, sans-serif;">&nbsp;</span></div>
<div><span style="font-family: arial, helvetica, sans-serif;">SELECT <strong>"Desc"</strong> FROM Charge&nbsp;</span></div>
<p><span style="color: #000000; font-family: arial, helvetica, sans-serif;">&nbsp;</span></p>
<h4><span style="color: #3366ff;">Problem Description:</span></h4>
<p id="yui_3_15_0_1_1409729252221_899"><span id="yui_3_15_0_1_1409729252221_910" style="font-family: arial, helvetica, sans-serif;">I am trying to clear a date column for the JobStartDate, and I am getting an error. Any help would be great., I could not find a help article on this.<br /><br />I am using .NET if that matters.<br /><br /><br />Dim jobStartDate As Date? = Nothing<br /><br />Dim cmd As New OdbcCommand($"<br />UPDATE customer<br />SET jobStartDate = {jobStartDate}<br />WHERE ListID = '{listID}' ",<br />con)<br /><br />cmd.ExecuteNonQuery()<br /><br /><br />ERROR [42000] [QODBC] [sql syntax error] Expected lexical element not found: = CASE<br /><br /><br />Dim jobStartDate As Date = Nothing<br /><br />Dim cmd As New OdbcCommand($"<br />UPDATE customer<br />SET jobStartDate = {jobStartDate}<br />WHERE ListID = '{listID}' ",<br />con)<br /><br />cmd.ExecuteNonQuery()<br /><br />Message = "ERROR [42000] [QODBC] Unexpected extra token: :00:00"</span></p>
<p id="yui_3_15_0_1_1409729252221_877"><span style="font-family: arial, helvetica, sans-serif;">SELECT Desc FROM Charge&nbsp;</span></p>
<p><span style="font-family: arial, helvetica, sans-serif;">I get "Expected lexical element not found: = &lt;identifier&gt;."</span></p>
<p id="yui_3_15_0_1_1409729252221_906"><span style="font-family: arial, helvetica, sans-serif;">However, if I issue</span></p>
<p><span style="font-family: arial, helvetica, sans-serif;">Select * from Charge</span></p>
<p id="yui_3_15_0_1_1409729252221_856"><span style="font-family: arial, helvetica, sans-serif;">Then, I get a full output with one of the columns named "Desc."</span></p>
<p id="yui_3_15_0_1_1409729252221_860"><span style="font-family: arial, helvetica, sans-serif;">Why can't I query for the column by name?</span></p>
<p id="yui_3_15_0_1_1409729252221_862"><span style="font-family: arial, helvetica, sans-serif;">I have tried this through the <a href="https://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2981" target="_blank">QODBC Support Wizard</a> and a C# program.</span>&nbsp;</p>
<div>
<h4><span style="color: #3366ff;">Solution:</span>&nbsp;</h4>
</div>
<div>Please ensure the SQL statement generated by your application is as per the following example. Please ensure the date format is correct.</div>
<div>&nbsp;</div>
<div>UPDATE customer<br />SET jobStartDate = {d'2022-11-18'}<br />WHERE ListID = 'YourListIDValue'&nbsp;</div>
<p><span style="color: #3366ff; font-family: arial, helvetica, sans-serif;">&nbsp;</span></p>
<p><span style="color: #000000; font-family: arial, helvetica, sans-serif;">&nbsp;</span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-Desktop] Troubleshooting: QuickBooks data return as NULL with SSIS]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2394]]></link>
<guid isPermaLink="false"><![CDATA[d0921d442ee91b896ad95059d13df618]]></guid>
<pubDate><![CDATA[Tue, 17 Aug 2010 07:26:45 +0000]]></pubDate>
<dc:creator><![CDATA[Juliet]]></dc:creator>
<description><![CDATA[Troubleshooting: QuickBooks data return as NULL(NVARCHAR ONLY) with SSIS
Problem Description
 &nbsp;&nbsp;&nbsp;&nbsp; We are using the&nbsp;QODBC driver for connecting QuickBooks with SSIS. I can able to connect with QuickBooks through SSIS. But Quick ...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial,Helvetica,sans-serif;">Troubleshooting: QuickBooks data return as NULL<span id="2db2495f-f899-4a1c-9ed5-fe74f0ac46ca" class="GINGER_SOFTWARE_mark">(</span>NVARCHAR ONLY) with SSIS</span></h2>
<h3><span style="color: #0066cc; font-family: Arial,Helvetica,sans-serif;">Problem Description</span></h3>
<p><span style="font-family: Arial,Helvetica,sans-serif;"> &nbsp;&nbsp;&nbsp;&nbsp; We are using the&nbsp;<span id="e00bf2e5-9232-4797-817f-5de7e46f0b30" class="GINGER_SOFTWARE_mark">QODBC driver</span> for connecting <span id="b38a432a-15d2-4ac9-a4eb-dd5907eb0ba2" class="GINGER_SOFTWARE_mark">QuickBooks</span> with SSIS. I can able to connect <span id="f57b4f2e-23fa-438d-b3e6-f2739bcc47af" class="GINGER_SOFTWARE_mark">with</span> <span id="b864f46b-50b1-4ce1-a077-044aae4d68ef" class="GINGER_SOFTWARE_mark">QuickBooks</span> through SSIS. But <span id="be60833e-c749-4f40-8107-aecda5aa2629" class="GINGER_SOFTWARE_mark">Quick books</span> Ex: LIST ID) <span id="d02b964b-33d3-46c2-bdef-2c79abc98917" class="GINGER_SOFTWARE_mark">nvarchar</span> data <span id="e66bfbc1-726e-417d-8119-ce8990abd147" class="GINGER_SOFTWARE_mark">comes</span> to the destination as NULL. (<span id="65a366fe-179e-4e0c-8e47-28d99f1b08c0" class="GINGER_SOFTWARE_mark">It's</span> <span id="32fa9cb9-edc8-49f9-8da7-6616ec173f63" class="GINGER_SOFTWARE_mark">treated</span> as NULL). We have checked in&nbsp;<a href="https://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2981" target="_blank">QODBC Support Wizard</a>. It is working fine. It is just not bringing a Unicode <span id="d0d96509-d74c-4e12-8cbc-89ad98c6447e" class="GINGER_SOFTWARE_mark">character</span> (NVARCHAR) type column when using SSIS as below:</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif;"><img src="//support.flexquarters.com/esupport/newimages/Null Value using SSIS.JPG" alt="Null Value using SSIS.JPG" border="0" />&nbsp;</span></p>
<h3><span style="color: #0066cc; font-family: Arial,Helvetica,sans-serif;">Solutions</span></h3>
<p><span style="font-family: Arial,Helvetica,sans-serif;">&nbsp; &nbsp; &nbsp; I think QODBC is returning NVarChars the same as it does for VarChars. (Simple C Strings). Is there any way you can request the data as VarChars and convert it on your end?</span></p>
<p>&nbsp;</p>
<p><span style="font-family: Arial,Helvetica,sans-serif;">Tag: SSIS,&nbsp;SQL Server Integration Services (<strong>SSIS</strong>)</span></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-ALL] &amp; [QXL- ALL]  QODBC &amp; QXL Function List]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2343]]></link>
<guid isPermaLink="false"><![CDATA[7cc532d783a7461f227a5da8ea80bfe1]]></guid>
<pubDate><![CDATA[Tue, 28 Jul 2009 09:29:50 +0000]]></pubDate>
<dc:creator><![CDATA[Juliet]]></dc:creator>
<description><![CDATA[[QODBC-ALL] &amp; [QXL- ALL]&nbsp;Function List
Applicable to&nbsp;[QODBC-Desktop], [QODBC-Online], [QODBC-POS], [QXL- Desktop] &amp;&nbsp;[QXL- Online]&nbsp;
&nbsp;
Functions
&nbsp;&nbsp;&nbsp;&nbsp; This is a list of all of the SQL functions support...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">[QODBC-ALL] &amp; [QXL- ALL]&nbsp;Function List</span></h2>
<p>Applicable to&nbsp;[QODBC-Desktop], [QODBC-Online], [QODBC-POS], [QXL- Desktop] &amp;&nbsp;[QXL- Online]&nbsp;</p>
<p>&nbsp;</p>
<h2 class="style6">Functions</h2>
<p class="style7">&nbsp;&nbsp;&nbsp;&nbsp; This is a list of all of the SQL functions supported by the QODBC Driver and their associated syntax.</p>
<h3 class="style8">QODBC String Functions</h3>
<p class="style9"><strong>ASCII </strong>( <em>string_exp </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns the ASCII code value of the leftmost character of <em>string_exp </em> as an integer.</p>
<p class="style7"><strong>Example: </strong>SELECT {fn ASCII("Name")} AS "ASCII", "Name" FROM Customer</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="278">
<tbody>
<tr class="style7">
<td width="97"><span class="style11">ASCII</span></td>
<td width="158"><span class="style11">Name</span></td>
</tr>
<tr class="style7">
<td>65</td>
<td>Adam's Candy Shop</td>
</tr>
<tr class="style7">
<td>65</td>
<td>Andres, Cristina</td>
</tr>
<tr class="style7">
<td>66</td>
<td>Balak, Mike</td>
</tr>
<tr class="style7">
<td>51</td>
<td>330 Main St</td>
</tr>
<tr class="style7">
<td>82</td>
<td>Residential</td>
</tr>
<tr class="style7">
<td>66</td>
<td>Blackwell, Edward</td>
</tr>
<tr class="style7">
<td>67</td>
<td>Chapman, Natalie</td>
</tr>
<tr class="style7">
<td>67</td>
<td>Cheknis, Benjamin</td>
</tr>
<tr class="style7">
<td>67</td>
<td>Corcoran, Carol</td>
</tr>
<tr class="style7">
<td>&hellip;</td>
<td>&hellip;</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p class="style9"><strong>CHAR </strong>( <em>code </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns the character with the ASCII code value specified by the code. The code value<em>&nbsp;</em>should be between 0 and 255; otherwise, the return value is data source-dependent.</p>
<p class="style7"><strong>Example: </strong>SELECT {fn CHAR(65)} +&nbsp; {fn CHAR(66)} AS "APlusB", "Name" FROM Customer</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="278">
<tbody>
<tr class="style7">
<td width="106"><strong>APlusB </strong></td>
<td width="156"><strong>Name </strong></td>
</tr>
<tr class="style7">
<td>AB</td>
<td>Adam's Candy Shop</td>
</tr>
<tr class="style7">
<td>AB</td>
<td>Andres, Cristina</td>
</tr>
<tr class="style7">
<td>AB</td>
<td>Balak, Mike</td>
</tr>
<tr class="style7">
<td>AB</td>
<td>330 Main St</td>
</tr>
<tr class="style7">
<td>AB</td>
<td>Residential</td>
</tr>
<tr class="style7">
<td>&hellip;</td>
<td>&hellip;</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p class="style9"><strong>CONCAT </strong>( <em>string_exp1, string_exp2 </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns a character string that results from concatenating <em>string_exp2 </em> to string_exp1. A NULL value will be returned if the column represented by <em>string_exp1 </em> or <em>string_exp2 </em> contains a NULL value.</p>
<p class="style7"><strong>Example: </strong>SELECT {fn CONCAT("BillAddressState", "BillAddressPostalCode")} AS "STZip", "Name" FROM Customer</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="276">
<tbody>
<tr class="style7">
<td valign="top"><strong>STZip </strong></td>
<td valign="top"><strong>Name </strong></td>
</tr>
<tr class="style7">
<td valign="top">CA94555</td>
<td valign="top">Adam's Candy Shop</td>
</tr>
<tr class="style7">
<td valign="top">CA94326</td>
<td valign="top">Andres, Cristina</td>
</tr>
<tr class="style7">
<td valign="top">CA94326</td>
<td valign="top">Balak, Mike</td>
</tr>
<tr class="style7">
<td valign="top">CA94326</td>
<td valign="top">330 Main St</td>
</tr>
<tr class="style7">
<td valign="top">CA94326</td>
<td valign="top">Residential</td>
</tr>
<tr class="style7">
<td valign="top">&hellip;</td>
<td valign="top">&hellip;</td>
</tr>
</tbody>
</table>
<p><strong>&nbsp;</strong></p>
<p class="style9"><strong>DIFFERENCE </strong>( <em>string_exp1, string_exp2 </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns an integer value that indicates the difference between the values returned by the SOUNDEX function for <em>string_exp1 </em> and <em>string_exp2. </em></p>
<p class="style7"><strong>Example: </strong>SELECT {fn DIFFERENCE("Name", 'Abercrombie, Kristy')} AS "Difference", "Name" FROM Customer</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="304">
<tbody>
<tr class="style7">
<td valign="top"><span class="style11">Difference </span></td>
<td valign="top"><span class="style11">Name </span></td>
</tr>
<tr class="style7">
<td valign="top"><span class="style12">199949 </span></td>
<td valign="top"><span class="style12">Adam's Candy Shop </span></td>
</tr>
<tr class="style7">
<td valign="top"><span class="style12">1102999 </span></td>
<td valign="top"><span class="style12">Andres, Cristina </span></td>
</tr>
<tr class="style7">
<td valign="top"><span class="style12">9910829 </span></td>
<td valign="top"><span class="style12">Balak, Mike </span></td>
</tr>
<tr class="style7">
<td valign="top"><span class="style12">1099949 </span></td>
<td valign="top"><span class="style12">330 Main St </span></td>
</tr>
<tr class="style7">
<td valign="top"><span class="style12">169901831 </span></td>
<td valign="top"><span class="style12">Residential </span></td>
</tr>
<tr class="style7">
<td valign="top"><span class="style12">&hellip; </span></td>
<td valign="top"><span class="style12">&hellip; </span></td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p class="style9"><strong>INSERT </strong>( <em>string_exp1, start, length, string_exp2 </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns a character string where <em>length </em>characters have been deleted from the <em>string_exp1 </em> beginning at the <em>start&nbsp;</em>and where <em>string_exp2 </em> has been inserted into string_exp1, beginning at the start.</p>
<p class="style7"><strong>Example: </strong>SELECT {fn INSERT("Name", 3, 2, '*Inserted*')} AS "Inserted", "Name" FROM Customer</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="420">
<tbody>
<tr class="style7">
<td valign="top"><strong>Inserted </strong></td>
<td valign="top"><strong>Name </strong></td>
</tr>
<tr class="style7">
<td valign="top">Ad*Inserted*'s Candy Shop</td>
<td valign="top">Adam's Candy Shop</td>
</tr>
<tr class="style7">
<td valign="top">An*Inserted*es, Cristina</td>
<td valign="top">Andres, Cristina</td>
</tr>
<tr class="style7">
<td valign="top">Ba*Inserted*k, Mike</td>
<td valign="top">Balak, Mike</td>
</tr>
<tr class="style7">
<td valign="top">33*Inserted* Main St</td>
<td valign="top">330 Main St</td>
</tr>
<tr class="style7">
<td valign="top">Re*Inserted*dential</td>
<td valign="top">Residential</td>
</tr>
<tr class="style7">
<td valign="top">&hellip;</td>
<td valign="top">&hellip;</td>
</tr>
</tbody>
</table>
<p><strong>&nbsp; </strong></p>
<p class="style9"><strong>LCASE </strong>( <em>string_exp </em>)</p>
<p class="style7"><strong>Instruction: </strong>Converts all uppercase characters in <em>string_exp </em> to lowercase.</p>
<p class="style7"><strong>Example: </strong>SELECT {fn LCASE("Name")} AS "LCase", "Name" FROM Customer</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="449">
<tbody>
<tr class="style7">
<td valign="top"><strong>LCase </strong></td>
<td valign="top"><strong>Name </strong></td>
</tr>
<tr class="style7">
<td valign="top">adam's candy shop</td>
<td valign="top">Adam's Candy Shop</td>
</tr>
<tr class="style7">
<td valign="top">Andres, Cristina</td>
<td valign="top">Andres, Cristina</td>
</tr>
<tr class="style7">
<td valign="top">Balak, mike</td>
<td valign="top">Balak, Mike</td>
</tr>
<tr class="style7">
<td valign="top">330 main st</td>
<td valign="top">330 Main St</td>
</tr>
<tr class="style7">
<td valign="top">residential</td>
<td valign="top">Residential</td>
</tr>
<tr class="style7">
<td valign="top">&hellip;</td>
<td valign="top">&hellip;</td>
</tr>
</tbody>
</table>
<p><strong>&nbsp; </strong></p>
<p class="style9"><strong>UCASE </strong>( <em>string_exp </em>)</p>
<p class="style7"><strong>Instruction: </strong>Converts all lowercase characters in <em>string_exp </em> to uppercase.</p>
<p class="style7"><strong>Example: </strong>SELECT {fn UCASE("Name")} AS "UCase", "Name" FROM Customer</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="422">
<tbody>
<tr class="style7">
<td valign="top"><strong>UCase </strong></td>
<td valign="top"><strong>Name </strong></td>
</tr>
<tr class="style7">
<td valign="top">ADAM'S CANDY SHOP</td>
<td valign="top">Adam's Candy</td>
</tr>
<tr class="style7">
<td valign="top">ANDRES, CRISTINA</td>
<td valign="top">Andres, Cristina</td>
</tr>
<tr class="style7">
<td valign="top">BALAK, MIKE</td>
<td valign="top">Balak, Mike</td>
</tr>
<tr class="style7">
<td valign="top">330 MAIN ST</td>
<td valign="top">330 Main St</td>
</tr>
<tr class="style7">
<td valign="top">RESIDENTIAL</td>
<td valign="top">Residential</td>
</tr>
<tr class="style7">
<td valign="top">&hellip;</td>
<td valign="top">&hellip;</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p class="style9"><strong>LEFT </strong>( <em>string_exp, count </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns the leftmost count of characters of <em>string_exp</em>.</p>
<p class="style7"><strong>Example: </strong>SELECT {fn LEFT("Name", 5)} AS "Left5", "Name" FROM Customer</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="299">
<tbody>
<tr class="style7">
<td valign="top"><strong>Left5 </strong></td>
<td valign="top"><strong>Name </strong></td>
</tr>
<tr class="style7">
<td valign="top">Adam'</td>
<td valign="top">Adam's Candy Shop</td>
</tr>
<tr class="style7">
<td valign="top">Andre</td>
<td valign="top">Andres, Cristina</td>
</tr>
<tr class="style7">
<td valign="top">Balak</td>
<td valign="top">Balak, Mike</td>
</tr>
<tr class="style7">
<td valign="top">330 M</td>
<td valign="top">330 Main St</td>
</tr>
<tr class="style7">
<td valign="top">Resid</td>
<td valign="top">Residential</td>
</tr>
<tr class="style7">
<td valign="top">&hellip;</td>
<td valign="top">&hellip;</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p class="style9"><strong>RIGHT </strong>( <em>string_exp, count </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns the rightmost <em>count&nbsp;</em>of characters of <em>string_exp</em>.</p>
<p class="style7"><strong>Example: </strong>SELECT {fn RIGHT(&ldquo;Name&rdquo;, 5)} AS "Right5", "Name" FROM Customer</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="299">
<tbody>
<tr class="style7">
<td valign="top"><strong>Right5 </strong></td>
<td valign="top"><strong>Name </strong></td>
</tr>
<tr class="style7">
<td valign="top">Shop</td>
<td valign="top">Adam's Candy Shop</td>
</tr>
<tr class="style7">
<td valign="top">Stina</td>
<td valign="top">Andres, Cristina</td>
</tr>
<tr class="style7">
<td valign="top">Mike</td>
<td valign="top">Balak, Mike</td>
</tr>
<tr class="style7">
<td valign="top">In St</td>
<td valign="top">330 Main St</td>
</tr>
<tr class="style7">
<td valign="top">ntial</td>
<td valign="top">Residential</td>
</tr>
<tr class="style7">
<td valign="top">&hellip;</td>
<td valign="top">&hellip;</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p class="style9"><strong>LENGTH </strong>( <em>string_exp </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns the number of characters in <em>string_exp</em>, excluding trailing blanks and the string termination character.</p>
<p class="style7"><strong>Example: </strong>SELECT {fn LENGTH("Name")} AS "Length", "Name" FROM Customer</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="299">
<tbody>
<tr class="style7">
<td valign="top"><strong>Length </strong></td>
<td valign="top"><strong>Name </strong></td>
</tr>
<tr class="style7">
<td valign="top">17</td>
<td valign="top">Adam's Candy Shop</td>
</tr>
<tr class="style7">
<td valign="top">16</td>
<td valign="top">Andres, Cristina</td>
</tr>
<tr class="style7">
<td valign="top">11</td>
<td valign="top">Balak, Mike</td>
</tr>
<tr class="style7">
<td valign="top">11</td>
<td valign="top">330 Main St</td>
</tr>
<tr class="style7">
<td valign="top">11</td>
<td valign="top">Residential</td>
</tr>
<tr class="style7">
<td valign="top">&hellip;</td>
<td valign="top">&hellip;</td>
</tr>
</tbody>
</table>
<p><strong>&nbsp; </strong></p>
<p class="style9"><strong>BIT_LENGTH </strong>( <em>string_exp </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns the bit length of <em>string_exp</em>, excluding trailing blanks and the string termination character.</p>
<p class="style7"><strong>Example: </strong>SELECT {fn BIT_LENGTH("Name")} AS "BitLength", "Name" FROM Customer</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="300">
<tbody>
<tr class="style7">
<td valign="top"><strong>BitLength </strong></td>
<td valign="top"><strong>Name </strong></td>
</tr>
<tr class="style7">
<td valign="top">136</td>
<td valign="top">Adam's Candy Shop</td>
</tr>
<tr class="style7">
<td valign="top">128</td>
<td valign="top">Andres, Cristina</td>
</tr>
<tr class="style7">
<td valign="top">88</td>
<td valign="top">Balak, Mike</td>
</tr>
<tr class="style7">
<td valign="top">88</td>
<td valign="top">330 Main St</td>
</tr>
<tr class="style7">
<td valign="top">88</td>
<td valign="top">Residential</td>
</tr>
<tr class="style7">
<td valign="top">&hellip;</td>
<td valign="top">&hellip;</td>
</tr>
</tbody>
</table>
<p><strong>&nbsp; </strong></p>
<p class="style9"><strong>CHAR_LENGTH </strong>( <em>string_exp </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns the number of chars in <em>string_exp</em>, excluding trailing blanks and the string termination character.</p>
<p class="style7"><strong>Example: </strong>SELECT {fn CHAR_LENGTH("Name")} AS "CharLength", "Name" FROM Customer</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="301">
<tbody>
<tr class="style7">
<td valign="top"><strong>CharLength </strong></td>
<td valign="top"><strong>Name </strong></td>
</tr>
<tr class="style7">
<td valign="top">17</td>
<td valign="top">Adam's Candy Shop</td>
</tr>
<tr class="style7">
<td valign="top">16</td>
<td valign="top">Andres, Cristina</td>
</tr>
<tr class="style7">
<td valign="top">11</td>
<td valign="top">Balak, Mike</td>
</tr>
<tr class="style7">
<td valign="top">11</td>
<td valign="top">330 Main St</td>
</tr>
<tr class="style7">
<td valign="top">11</td>
<td valign="top">Residential</td>
</tr>
<tr class="style7">
<td valign="top">&hellip;</td>
<td valign="top">&hellip;</td>
</tr>
</tbody>
</table>
<p><strong>&nbsp; </strong></p>
<p class="style9"><strong>CHARACTER_LENGTH </strong>( <em>string_exp </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns the number of characters in <em>string_exp</em>, excluding trailing blanks and the string termination character. (Almost the same as the LENGTH function)</p>
<p class="style7"><strong>Example: </strong>SELECT {fn CHARACTER_LENGTH("Name")} AS "CharacterLength", "Name" FROM Customer</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="301">
<tbody>
<tr class="style7">
<td valign="top"><strong>CharacterLength </strong></td>
<td valign="top"><strong>Name </strong></td>
</tr>
<tr class="style7">
<td valign="top">17</td>
<td valign="top">Adam's Candy Shop</td>
</tr>
<tr class="style7">
<td valign="top">16</td>
<td valign="top">Andres, Cristina</td>
</tr>
<tr class="style7">
<td valign="top">11</td>
<td valign="top">Balak, Mike</td>
</tr>
<tr class="style7">
<td valign="top">11</td>
<td valign="top">330 Main St</td>
</tr>
<tr class="style7">
<td valign="top">11</td>
<td valign="top">Residential</td>
</tr>
<tr class="style7">
<td valign="top">&hellip;</td>
<td valign="top">&hellip;</td>
</tr>
</tbody>
</table>
<p><strong>&nbsp; </strong></p>
<p class="style9"><strong>OCTET_LENGTH </strong>( <em>string_exp </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns the octet length of <em>string_exp</em>, excluding trailing blanks and the string termination character. (Almost the same as the LENGTH function)</p>
<p class="style7"><strong>Example: </strong>SELECT {fn OCTET_LENGTH("Name")} AS "OctetLength", "Name" FROM Customer</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="301">
<tbody>
<tr class="style7">
<td valign="top"><strong>OctetLength </strong></td>
<td valign="top"><strong>Name </strong></td>
</tr>
<tr class="style7">
<td valign="top">17</td>
<td valign="top">Adam's Candy Shop</td>
</tr>
<tr class="style7">
<td valign="top">16</td>
<td valign="top">Andres, Cristina</td>
</tr>
<tr class="style7">
<td valign="top">11</td>
<td valign="top">Balak, Mike</td>
</tr>
<tr class="style7">
<td valign="top">11</td>
<td valign="top">330 Main St</td>
</tr>
<tr class="style7">
<td valign="top">11</td>
<td valign="top">Residential</td>
</tr>
<tr class="style7">
<td valign="top">&hellip;</td>
<td valign="top">&hellip;</td>
</tr>
</tbody>
</table>
<p><strong>&nbsp; </strong></p>
<p class="style9"><strong>LOCATE </strong>( <em>string_exp1, string_exp2[, start] </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns the starting position of the first occurrence of <em>string_exp1 </em> within <em>string_exp2</em>. The search for the first occurrence of <em>string_exp1 </em> begins with the first position in <em>string_exp2 </em> unless the optional argument is specified. If <em>start&nbsp;</em>is set, the search begins with the character position indicated by the valuebirth. The first character position in <em>string_exp2 </em> is indicated by the value 1. If <em>string_exp1 </em> is not found within <em>string_exp2</em>, the value 0 is returned.</p>
<p class="style7"><strong>Example: </strong>SELECT {fn LOCATE('a', "Name", 2)} AS "LocationOfA", "Name" FROM Customer</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="301">
<tbody>
<tr class="style7">
<td valign="top"><strong>location of</strong></td>
<td valign="top"><strong>Name </strong></td>
</tr>
<tr class="style7">
<td valign="top">3</td>
<td valign="top">Adam's Candy Shop</td>
</tr>
<tr class="style7">
<td valign="top">16</td>
<td valign="top">Andres, Cristina</td>
</tr>
<tr class="style7">
<td valign="top">2</td>
<td valign="top">Balak, Mike</td>
</tr>
<tr class="style7">
<td valign="top">6</td>
<td valign="top">330 Main St</td>
</tr>
<tr class="style7">
<td valign="top">10</td>
<td valign="top">Residential</td>
</tr>
<tr class="style7">
<td valign="top">&hellip;</td>
<td valign="top">&hellip;</td>
</tr>
</tbody>
</table>
<p><strong>&nbsp; </strong></p>
<p class="style9"><strong>LTRIM </strong>( <em>string_exp </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns the characters of <em>string_exp</em>, with leading blanks removed.</p>
<p class="style7"><strong>Example: </strong>SELECT {fn LTRIM("Name")} AS "LTrim", "Name" FROM Customer</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="301">
<tbody>
<tr class="style7">
<td valign="top"><strong>LTrim </strong></td>
<td valign="top"><strong>Name </strong></td>
</tr>
<tr class="style7">
<td valign="top">Adam's Candy</td>
<td valign="top">Adam's Candy Shop</td>
</tr>
<tr class="style7">
<td valign="top">Andres, Cristina</td>
<td valign="top">Andres, Cristina</td>
</tr>
<tr class="style7">
<td valign="top">Balak, Mike</td>
<td valign="top">Balak, Mike</td>
</tr>
<tr class="style7">
<td valign="top">330 Main St</td>
<td valign="top">330 Main St</td>
</tr>
<tr class="style7">
<td valign="top">Residential</td>
<td valign="top">Residential</td>
</tr>
<tr class="style7">
<td valign="top">&hellip;</td>
<td valign="top">&hellip;</td>
</tr>
</tbody>
</table>
<p><strong>&nbsp; </strong></p>
<p class="style9"><strong>RTRIM </strong>( <em>string_exp </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns the characters of <em>string_exp</em>, with trailing blanks removed.</p>
<p class="style7"><strong>Example: </strong>SELECT {fn RTRIM("Name")} AS "RTrim", "Name" FROM Customer</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="301">
<tbody>
<tr class="style7">
<td valign="top"><strong>trim </strong></td>
<td valign="top"><strong>Name </strong></td>
</tr>
<tr class="style7">
<td valign="top">Adam's Candy Shop</td>
<td valign="top">Adam's Candy Shop</td>
</tr>
<tr class="style7">
<td valign="top">Andres, Cristina</td>
<td valign="top">Andres, Cristina</td>
</tr>
<tr class="style7">
<td valign="top">Balak, Mike</td>
<td valign="top">Balak, Mike</td>
</tr>
<tr class="style7">
<td valign="top">330 Main St</td>
<td valign="top">330 Main St</td>
</tr>
<tr class="style7">
<td valign="top">Residential</td>
<td valign="top">Residential</td>
</tr>
<tr class="style7">
<td valign="top">&hellip;</td>
<td valign="top">&hellip;</td>
</tr>
</tbody>
</table>
<p><strong>&nbsp; </strong></p>
<p class="style9"><strong>REPEAT </strong>( <em>string_exp1, repeat times&nbsp;</em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns the characters of string_exp1, repeating it repeat times.</p>
<p class="style7"><strong>Example: </strong>SELECT {fn REPEAT("Name",2)} as "Repeat2","Name" FROM Customer</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="470">
<tbody>
<tr class="style7">
<td valign="top"><strong>Repeat2 </strong></td>
<td valign="top"><strong>Name </strong></td>
</tr>
<tr class="style7">
<td valign="top">Adam's Candy Shop Adam's Candy Shop</td>
<td valign="top">Adam's Candy Shop</td>
</tr>
<tr class="style7">
<td valign="top">Andres, Cristina Andres, Cristina</td>
<td valign="top">Andres, Cristina</td>
</tr>
<tr class="style7">
<td valign="top">Balak, Mike Balak, Mike</td>
<td valign="top">Balak, Mike</td>
</tr>
<tr class="style7">
<td valign="top">330 Main St330 Main St</td>
<td valign="top">330 Main St</td>
</tr>
<tr class="style7">
<td valign="top">Residential Residential</td>
<td valign="top">Residential</td>
</tr>
<tr class="style7">
<td valign="top">&hellip;</td>
<td valign="top">&hellip;</td>
</tr>
</tbody>
</table>
<p><strong>&nbsp; </strong></p>
<p class="style9"><strong>POSITION </strong>( <em>string_exp1, string_exp2 </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns an integer value that shows the position where <em>string_exp1 </em> first begins in <em>string_exp2 </em>(including spaces)</p>
<p class="style7"><strong>Example: </strong>SELECT {fn POSITION('a' IN "Name")} As "PositionOfA", "Name" FROM Customer</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="467">
<tbody>
<tr class="style7">
<td valign="top"><strong>PositionOfA </strong></td>
<td valign="top"><strong>Name </strong></td>
</tr>
<tr class="style7">
<td valign="top">1</td>
<td valign="top">Adam's Candy Shop</td>
</tr>
<tr class="style7">
<td valign="top">1</td>
<td valign="top">Andres, Cristina</td>
</tr>
<tr class="style7">
<td valign="top">2</td>
<td valign="top">Balak, Mike</td>
</tr>
<tr class="style7">
<td valign="top">0</td>
<td valign="top">330 Main St</td>
</tr>
<tr class="style7">
<td valign="top">0</td>
<td valign="top">Residential</td>
</tr>
<tr class="style7">
<td valign="top">&hellip;</td>
<td valign="top">&hellip;</td>
</tr>
</tbody>
</table>
<p><strong>&nbsp; </strong></p>
<p class="style9"><strong>REPLACE </strong>( <em>string_exp1, string_exp2,string_exp3 </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns the characters of <em>string_exp3,&nbsp;</em>which takes the place of <em>string_exp2 </em> value in column <em>string_exp1</em>.</p>
<p class="style7"><strong>Example: </strong>SELECT {fn REPLACE("NAME",'330 Main St','abc')} AS "Replace","Name" FROM Customer</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="471">
<tbody>
<tr class="style7">
<td valign="top"><strong>Replace </strong></td>
<td valign="top"><strong>Name </strong></td>
</tr>
<tr class="style7">
<td valign="top">Adam's Candy Shop</td>
<td valign="top">Adam's Candy Shop</td>
</tr>
<tr class="style7">
<td valign="top">Andres, Cristina</td>
<td valign="top">Andres, Cristina</td>
</tr>
<tr class="style7">
<td valign="top">Balak, Mike</td>
<td valign="top">Balak, Mike</td>
</tr>
<tr class="style7">
<td valign="top">abc</td>
<td valign="top">330 Main St</td>
</tr>
<tr class="style7">
<td valign="top">Residential</td>
<td valign="top">Residential</td>
</tr>
<tr class="style7">
<td valign="top">&hellip;</td>
<td valign="top">&hellip;</td>
</tr>
</tbody>
</table>
<p><strong>&nbsp; </strong></p>
<p class="style9"><strong>SOUNDEX </strong>( <em>string_exp </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns a character string representing the sound of the words in <em>string_exp </em>.</p>
<p class="style7"><strong>Example: </strong>SELECT {fn SOUNDEX("Name")} AS "Soundex", "Name" FROM Customer</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="384">
<tbody>
<tr class="style7">
<td valign="top"><strong>Soundex </strong></td>
<td valign="top"><strong>Name </strong></td>
</tr>
<tr class="style7">
<td valign="top">ADAMACACAMDACAB</td>
<td valign="top">Adam's Candy Shop</td>
</tr>
<tr class="style7">
<td valign="top">AMDRACACRACDAMA</td>
<td valign="top">Andres, Cristina</td>
</tr>
<tr class="style7">
<td valign="top">BALACAMACA</td>
<td valign="top">Balak, Mike</td>
</tr>
<tr class="style7">
<td valign="top">AMAMACD</td>
<td valign="top">330 Main St</td>
</tr>
<tr class="style7">
<td valign="top">RACADAMDAL</td>
<td valign="top">Residential</td>
</tr>
<tr class="style7">
<td valign="top">&hellip;</td>
<td valign="top">&hellip;</td>
</tr>
</tbody>
</table>
<p><strong>&nbsp; </strong></p>
<p class="style9"><strong>SPACE </strong>( <em>count </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns a character string consisting of <em>count </em> spaces.</p>
<p class="style7"><strong>Example:&nbsp;</strong>SELECT '[' + {fn SPACE(10)} + ']' AS "TenSpaces", "Name" FROM Customer</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="301">
<tbody>
<tr class="style7">
<td valign="top"><strong>TenSpaces </strong></td>
<td valign="top"><strong>Name </strong></td>
</tr>
<tr class="style7">
<td valign="top">[ ]</td>
<td valign="top">Adam's Candy Shop</td>
</tr>
<tr class="style7">
<td valign="top">[ ]</td>
<td valign="top">Andres, Cristina</td>
</tr>
<tr class="style7">
<td valign="top">[ ]</td>
<td valign="top">Balak, Mike</td>
</tr>
<tr class="style7">
<td valign="top">[ ]</td>
<td valign="top">330 Main St</td>
</tr>
<tr class="style7">
<td valign="top">[ ]</td>
<td valign="top">Residential</td>
</tr>
<tr class="style7">
<td valign="top">&hellip;</td>
<td valign="top">&hellip;</td>
</tr>
</tbody>
</table>
<p><strong>&nbsp; </strong></p>
<p class="style9"><strong>SUBSTRING </strong>( <em>string_exp, start, length </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns a character string that is derived from <em>string_exp </em> beginning at the character position specified by <em>start </em> for <em>length </em> characters.</p>
<p class="style7"><strong>Example: </strong>SELECT {fn SUBSTRING("Name", 2, 5)} AS "Middle5Characters", "Name" FROM Customer</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="324">
<tbody>
<tr class="style7">
<td valign="top"><strong>Middle5Characters </strong></td>
<td valign="top"><strong>Name </strong></td>
</tr>
<tr class="style7">
<td valign="top">dam's</td>
<td valign="top">Adam's Candy Shop</td>
</tr>
<tr class="style7">
<td valign="top">ndres</td>
<td valign="top">Andres, Cristina</td>
</tr>
<tr class="style7">
<td valign="top">alak,</td>
<td valign="top">Balak, Mike</td>
</tr>
<tr class="style7">
<td valign="top">30 Ma</td>
<td valign="top">330 Main St</td>
</tr>
<tr class="style7">
<td valign="top">eside</td>
<td valign="top">Residential</td>
</tr>
<tr class="style7">
<td valign="top">&hellip;</td>
<td valign="top">&hellip;</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p><strong>&nbsp; </strong></p>
<h3 class="style8"><strong>QODBC Numeric Functions </strong></h3>
<p class="style9"><strong>ABS </strong>( <em>numeric_exp|float_exp|integer_exp </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns the absolute value of <em>numeric_exp </em>.</p>
<p class="style7"><strong>Example: </strong>SELECT "Name", {fn ABS(Balance)} AS "ABSBalance", "Balance" FROM Customer</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="471">
<tbody>
<tr class="style7">
<td valign="top"><strong>Name </strong></td>
<td valign="top"><strong>ABSBalance </strong></td>
<td valign="top"><strong>Balance </strong></td>
</tr>
<tr class="style7">
<td valign="top">Adam's Candy</td>
<td valign="top">40.00</td>
<td valign="top">40.00</td>
</tr>
<tr class="style7">
<td valign="top">Andres, Cristina</td>
<td valign="top">0.00</td>
<td valign="top">0.00</td>
</tr>
<tr class="style7">
<td valign="top">Balak, Mike</td>
<td valign="top">0.00</td>
<td valign="top">0.00</td>
</tr>
<tr class="style7">
<td valign="top">330 Main St</td>
<td valign="top">180.00</td>
<td valign="top">180.00</td>
</tr>
<tr class="style7">
<td valign="top">Residential</td>
<td valign="top">0.00</td>
<td valign="top">0.00</td>
</tr>
<tr class="style7">
<td valign="top">&hellip;</td>
<td valign="top">&hellip;</td>
<td valign="top">&hellip;</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p class="style9"><strong>ACOS </strong>( <em>float_exp </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns the arccosine of <em>float_exp </em> as an angle, expressed in radians.</p>
<p class="style7"><strong>Example: </strong>SELECT {fn ACOS({fn CONVERT(0, SQL_FLOAT)})} AS "ACOSValue", CompanyName AS "CompanyName" FROM Company</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="301">
<tbody>
<tr class="style7">
<td valign="top"><strong>ACOSValue </strong></td>
<td valign="top"><strong>CompanyName </strong></td>
</tr>
<tr class="style7">
<td valign="top">1.570796</td>
<td valign="top">Larry's</td>
</tr>
</tbody>
</table>
<p><strong>&nbsp; </strong></p>
<p class="style9"><strong>ASIN </strong>( <em>float_exp </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns the arcsine of <em>float_exp </em> as an angle, expressed in radians.</p>
<p class="style7"><strong>Example: </strong>SELECT {fn ASIN({fn CONVERT(0, SQL_FLOAT)})} AS "ASINValue", CompanyName AS "CompanyName" FROM Company</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="301">
<tbody>
<tr class="style7">
<td valign="top"><strong>ASINValue </strong></td>
<td valign="top"><strong>CompanyName </strong></td>
</tr>
<tr class="style7">
<td valign="top">1.570796</td>
<td valign="top">Larry's</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p class="style9"><strong>ATAN </strong>( <em>float_exp </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns the arctangent of <em>float_exp </em> as an angle, expressed in radians.</p>
<p class="style7"><strong>Example: </strong>SELECT {fn ATAN({fn CONVERT(1, SQL_FLOAT)})} AS "ATANValue", CompanyName AS &ldquo;CompanyName&rdquo; FROM Company</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="301">
<tbody>
<tr class="style7">
<td valign="top"><strong>ATANValue </strong></td>
<td valign="top"><strong>CompanyName </strong></td>
</tr>
<tr class="style7">
<td valign="top">0.785398</td>
<td valign="top">Larry's</td>
</tr>
</tbody>
</table>
<p><strong>&nbsp; </strong></p>
<p class="style9"><strong>ATAN2 </strong>( <em>float_exp1, float_exp2 </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns the arctangent of the x and y coordinates specified by <em>float_exp1 </em> and <em>float_exp2 </em>, respectively, as an angle, expressed in radians.</p>
<p class="style7"><strong>Example: </strong>SELECT {fn ATAN2({fn CONVERT(1, SQL_FLOAT)}, {fn CONVERT(2, SQL_FLOAT)})} AS "ATAN2Value", CompanyName AS &ldquo;CompanyName&rdquo; FROM Company</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="301">
<tbody>
<tr class="style7">
<td valign="top"><strong>ATAN2Value </strong></td>
<td valign="top"><strong>CompanyName </strong></td>
</tr>
<tr class="style7">
<td valign="top">0.463648</td>
<td valign="top">Larry's</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p class="style9"><strong>COS </strong>( <em>float_exp </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns the cosine of <em>float_exp, </em>where <em>float_exp </em> is an angle expressed in radians.</p>
<p class="style7"><strong>Example: </strong>SELECT {fn COS({fn CONVERT(1, SQL_FLOAT)})} AS "COSValue", CompanyName AS &ldquo;CompanyName&rdquo; FROM Company</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="301">
<tbody>
<tr class="style7">
<td valign="top"><strong>COSValue </strong></td>
<td valign="top"><strong>CompanyName </strong></td>
</tr>
<tr class="style7">
<td valign="top">0.540302</td>
<td valign="top">Larry's</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p class="style9"><strong>COT </strong>( <em>float_exp </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns the cotangent of <em>float_exp, </em>where <em>float_exp </em> is an angle expressed in radians.</p>
<p class="style7"><strong>Example: </strong>SELECT {fn COT({fn CONVERT(1, SQL_FLOAT)})} AS "COTValue", CompanyName AS &ldquo;CompanyName&rdquo; FROM Company</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="301">
<tbody>
<tr class="style7">
<td valign="top"><strong>COTValue </strong></td>
<td valign="top"><strong>CompanyName </strong></td>
</tr>
<tr class="style7">
<td valign="top">0.642093</td>
<td valign="top">Larry's</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p class="style9"><strong>CEILING </strong>( <em>numeric_exp|float_exp|integer_exp </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns the smallest integer greater than or equal to <em>numeric_exp </em>.</p>
<p class="style7"><strong>Example: </strong>SELECT "Name", {fn CEILING("Balance")} AS "CeilingBalance", "Balance" FROM Customer</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="471">
<tbody>
<tr class="style7">
<td valign="top"><strong>Name </strong></td>
<td valign="top"><strong>CeilingBalance </strong></td>
<td valign="top"><strong>Balance </strong></td>
</tr>
<tr class="style7">
<td valign="top">Adam's Candy</td>
<td valign="top">40.00</td>
<td valign="top">40.00</td>
</tr>
<tr class="style7">
<td valign="top">Andres, Cristina</td>
<td valign="top">0.00</td>
<td valign="top">0.00</td>
</tr>
<tr class="style7">
<td valign="top">Balak, Mike</td>
<td valign="top">0.00</td>
<td valign="top">0.00</td>
</tr>
<tr class="style7">
<td valign="top">330 Main St</td>
<td valign="top">180.00</td>
<td valign="top">180.00</td>
</tr>
<tr class="style7">
<td valign="top">Residential</td>
<td valign="top">0.00</td>
<td valign="top">0.00</td>
</tr>
<tr class="style7">
<td valign="top">&hellip;</td>
<td valign="top">&hellip;</td>
<td valign="top">&hellip;</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p class="style9"><strong>DEGREES </strong>( <em>numeric_exp|float_exp|integer_exp </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns the number of degrees converted from <em>numeric_exp </em> radians.</p>
<p class="style7"><strong>Example: </strong>SELECT {fn DEGREES(1)} AS "DegreesReturned", CompanyName AS &ldquo;CompanyName&rdquo; FROM Company</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="301">
<tbody>
<tr class="style7">
<td valign="top"><strong>DegreesReturned </strong></td>
<td valign="top"><strong>CompanyName </strong></td>
</tr>
<tr class="style7">
<td valign="top">57.29578</td>
<td valign="top">Larry's</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p class="style9"><strong>EXP </strong>( <em>float_exp </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns the exponential value of <em>float_exp</em>.</p>
<p class="style7"><strong>Example: </strong>SELECT {fn EXP({fn CONVERT(1, SQL_FLOAT)})} AS "ExpReturned", CompanyName AS &ldquo;CompanyName&rdquo; FROM Company</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="301">
<tbody>
<tr class="style7">
<td valign="top"><strong>ExpReturned </strong></td>
<td valign="top"><strong>ExpReturned </strong></td>
</tr>
<tr class="style7">
<td valign="top">2.718282</td>
<td valign="top">Larry's</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p class="style9"><strong>FLOOR </strong>(numeric_exp|float_exp|integer_exp)</p>
<p class="style7"><strong>Instruction: </strong>Returns largest integer less than or equal to <em>numeric_exp</em>.</p>
<p class="style7"><strong>Example: </strong>SELECT "Name", {fn FLOOR("Balance")} AS "FloorBalance", "Balance" FROM Customer</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="471">
<tbody>
<tr class="style7">
<td valign="top"><strong>Name </strong></td>
<td valign="top"><strong>FloorBalance </strong></td>
<td valign="top"><strong>Balance </strong></td>
</tr>
<tr class="style7">
<td valign="top">Adam's Candy</td>
<td valign="top">40.00</td>
<td valign="top">40.00</td>
</tr>
<tr class="style7">
<td valign="top">Andres, Cristina</td>
<td valign="top">0.00</td>
<td valign="top">0.00</td>
</tr>
<tr class="style7">
<td valign="top">Balak, Mike</td>
<td valign="top">0.00</td>
<td valign="top">0.00</td>
</tr>
<tr class="style7">
<td valign="top">330 Main St</td>
<td valign="top">180.00</td>
<td valign="top">180.00</td>
</tr>
<tr class="style7">
<td valign="top">1456 Red Cloud</td>
<td valign="top">25671.00</td>
<td valign="top">25671.35</td>
</tr>
<tr class="style7">
<td valign="top">&hellip;</td>
<td valign="top">&hellip;</td>
<td valign="top">&hellip;</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p class="style9"><strong>LOG </strong>( <em>float_exp </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns the natural logarithm of <em>float_exp</em>.</p>
<p class="style7"><strong>Example: </strong>SELECT {fn LOG({fn CONVERT(25, SQL_FLOAT)})} AS "LogReturned", CompanyName AS &ldquo;CompanyName&rdquo; FROM Company</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="301">
<tbody>
<tr class="style7">
<td valign="top"><strong>LogReturned </strong></td>
<td valign="top"><strong>CompanyName </strong></td>
</tr>
<tr class="style7">
<td valign="top">3.218876</td>
<td valign="top">Larry's</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p class="style9"><strong>LOG10 </strong>( <em>float_exp </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns the base ten logarithm of <em>float_exp</em>.</p>
<p class="style7"><strong>Example: </strong>SELECT {fn LOG10({fn CONVERT(25, SQL_FLOAT)})} AS "Log10Returned", CompanyName AS &ldquo;CompanyName&rdquo; FROM Company</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="301">
<tbody>
<tr class="style7">
<td valign="top"><strong>Log10Returned </strong></td>
<td valign="top"><strong>CompanyName </strong></td>
</tr>
<tr class="style7">
<td valign="top">1.39794</td>
<td valign="top">Larry's</td>
</tr>
</tbody>
</table>
<p><strong>&nbsp; </strong></p>
<p class="style9"><strong>MOD </strong>( <em>integer_exp1, integer_exp2 </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns the remainder (modulus) of <em>integer_exp1 </em> divided by <em>integer_exp2 </em>.</p>
<p class="style7"><strong>Example: </strong>SELECT {fn MOD(27, 7)} AS "Mod7Returned", CompanyName AS &ldquo;CompanyName&rdquo; FROM Company</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="325">
<tbody>
<tr class="style7">
<td valign="top"><strong>Mod7Returned </strong></td>
<td valign="top"><strong>CompanyName </strong></td>
</tr>
<tr class="style7">
<td valign="top">6</td>
<td valign="top">Larry's</td>
</tr>
</tbody>
</table>
<p><strong>&nbsp; </strong></p>
<p class="style9"><strong>PI </strong>()</p>
<p class="style7"><strong>Instruction: </strong>Returns the constant value of pi as a floating point value.</p>
<p class="style7"><strong>Example: </strong>SELECT {fn PI()} AS "PI", CompanyName AS &ldquo;CompanyName&rdquo; FROM COMPANY</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="301">
<tbody>
<tr class="style7">
<td valign="top"><strong>PI </strong></td>
<td valign="top"><strong>CompanyName </strong></td>
</tr>
<tr class="style7">
<td valign="top">3.141593</td>
<td valign="top">Larry's</td>
</tr>
</tbody>
</table>
<p><strong>&nbsp; </strong></p>
<p class="style9"><strong>POWER </strong>( <em>numeric_exp|float_exp|integer_exp, integer_exp </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns the value of <em>numeric_exp </em> to the power of <em>integer_exp </em>.</p>
<p class="style7"><strong>Example: </strong>SELECT {fn POWER(4, 3)} AS "PowerValue", CompanyName AS "CompanyName" FROM COMPANY</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="301">
<tbody>
<tr class="style7">
<td valign="top"><strong>PowerValue </strong></td>
<td valign="top"><strong>CompanyName </strong></td>
</tr>
<tr class="style7">
<td valign="top">64</td>
<td valign="top">Larry's</td>
</tr>
</tbody>
</table>
<p><strong>&nbsp; </strong></p>
<p class="style9"><strong>RADIANS </strong>( <em>numeric_exp|float_exp|integer_exp </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns the number of radians converted from <em>numeric_exp </em> degrees.</p>
<p class="style7"><strong>Example: </strong>SELECT {fn RADIANS(57.29578)} AS "RadiansValue", CompanyName AS &ldquo;CompanyName&rdquo; FROM COMPANY</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="301">
<tbody>
<tr class="style7">
<td valign="top"><strong>RadiansValue </strong></td>
<td valign="top"><strong>CompanyName </strong></td>
</tr>
<tr class="style7">
<td valign="top">1</td>
<td valign="top">Larry's</td>
</tr>
</tbody>
</table>
<p><strong>&nbsp; </strong></p>
<p class="style9"><strong>RAND </strong>([ <em>integer_exp|float_exp|numeric_exp </em>])</p>
<p class="style7"><strong>Instruction: </strong>Returns a random floating point value using <em>integer_exp </em> as an optional seed value.</p>
<p class="style7"><strong>Example: </strong>SELECT {fn RAND()} AS "RandValue" FROM COMPANY</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="265">
<tbody>
<tr>
<td class="style7" valign="top"><strong>RandValue </strong></td>
</tr>
<tr>
<td class="style7" valign="top" height="17">4035516600699198138</td>
</tr>
</tbody>
</table>
<p><strong>&nbsp; </strong></p>
<p class="style9"><strong>ROUND </strong>( <em>numeric_exp|float_exp|integer_exp, integer_exp </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns <em>numeric_exp </em> rounded to <em>integer_exp placed</em>&nbsp;right of the decimal point. If <em>integer_exp </em> is negative, <em>numeric_exp </em> is rounded to | <em>integer_exp </em>| and placed to the left of the decimal point.</p>
<p class="style7"><strong>Example: </strong>SELECT "Name", {fn ROUND(Balance, 1)} AS "RoundBalance", "Balance" FROM Customer</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="542">
<tbody>
<tr class="style7">
<td valign="top"><strong>Name </strong></td>
<td valign="top"><strong>RoundBalance </strong></td>
<td valign="top"><strong>Balance </strong></td>
</tr>
<tr class="style7">
<td valign="top">Adam's Candy Shop</td>
<td valign="top">40.00</td>
<td valign="top">40.00</td>
</tr>
<tr class="style7">
<td valign="top">Andres, Cristina</td>
<td valign="top">.00</td>
<td valign="top">0.00</td>
</tr>
<tr class="style7">
<td valign="top">Balak, Mike</td>
<td valign="top">.00</td>
<td valign="top">0.00</td>
</tr>
<tr class="style7">
<td valign="top">330 Main St</td>
<td valign="top">180.00</td>
<td valign="top">180.00</td>
</tr>
<tr class="style7">
<td valign="top">Residential</td>
<td valign="top">.00</td>
<td valign="top">0.00</td>
</tr>
<tr class="style7">
<td valign="top">&hellip;</td>
<td valign="top">&hellip;</td>
<td valign="top">&hellip;</td>
</tr>
</tbody>
</table>
<p><strong>&nbsp; </strong></p>
<p class="style9"><strong>SIGN </strong>( <em>numeric_exp|float_exp|integer_exp </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns an indicator or the sign of <em>numeric_exp </em>. If <em>numeric_exp </em> is less than zero, -1 is returned. If <em>numeric_exp </em> equals zero, 0 is returned. If <em>numeric_exp </em> is more significant than zero, one is returned.</p>
<p class="style7"><strong>Example: </strong>SELECT "Name", {fn SIGN(Balance)} AS "SignOfBalance", "Balance" FROM Customer</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="539">
<tbody>
<tr class="style7">
<td valign="top"><strong>Name </strong></td>
<td valign="top"><strong>SignOfBalance </strong></td>
<td valign="top"><strong>Balance </strong></td>
</tr>
<tr class="style7">
<td valign="top">Adam's Candy</td>
<td valign="top">1</td>
<td valign="top">40.00</td>
</tr>
<tr class="style7">
<td valign="top">Andres, Cristina</td>
<td valign="top">1</td>
<td valign="top">0.00</td>
</tr>
<tr class="style7">
<td valign="top">Balak, Mike</td>
<td valign="top">1</td>
<td valign="top">0.00</td>
</tr>
<tr class="style7">
<td valign="top">330 Main St</td>
<td valign="top">1</td>
<td valign="top">180.00</td>
</tr>
<tr class="style7">
<td valign="top">Residential</td>
<td valign="top">1</td>
<td valign="top">0.00</td>
</tr>
<tr class="style7">
<td valign="top">&hellip;</td>
<td valign="top">&hellip;</td>
<td valign="top">&hellip;</td>
</tr>
</tbody>
</table>
<p><strong>&nbsp; </strong></p>
<p class="style9"><strong>SIN </strong>( <em>float_exp </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns the sine of <em>float_exp, </em>where <em>float_exp </em> is an angle expressed in radians.</p>
<p class="style7"><strong>Example: </strong>SELECT {fn SIN({fn CONVERT(1, SQL_FLOAT)})} AS "SINValue", CompanyName AS &ldquo;CompanyName&rdquo; FROM Company</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="301">
<tbody>
<tr class="style7">
<td valign="top"><strong>SINValue </strong></td>
<td valign="top"><strong>CompanyName </strong></td>
</tr>
<tr class="style7">
<td valign="top">0.841471</td>
<td valign="top">Larry's</td>
</tr>
</tbody>
</table>
<p><strong>&nbsp; </strong></p>
<p class="style9"><strong>SQRT </strong>( <em>float_exp </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns the square root of <em>float_exp</em>.</p>
<p class="style7"><strong>Example: </strong>SELECT {fn SQRT({fn CONVERT(47, SQL_FLOAT)})} AS "SQRTValue", CompanyName AS &ldquo;CompanyName&rdquo; FROM Company</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="301">
<tbody>
<tr class="style7">
<td valign="top"><strong>SQRTValue </strong></td>
<td valign="top"><strong>CompanyName </strong></td>
</tr>
<tr class="style7">
<td valign="top">6.855655</td>
<td valign="top">Larry's</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p class="style9"><strong>TAN </strong>( <em>float_exp </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns the tangent of <em>float_exp, </em>where <em>float_exp </em> is an angle expressed in radians.</p>
<p class="style7"><strong>Example: </strong>SELECT {fn TAN({fn CONVERT(1, SQL_FLOAT)})} AS "TANValue", CompanyName AS &ldquo;CompanyName&rdquo; FROM Company</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="301">
<tbody>
<tr class="style7">
<td valign="top"><strong>TANValue </strong></td>
<td valign="top"><strong>CompanyName </strong></td>
</tr>
<tr class="style7">
<td valign="top">1.557408</td>
<td valign="top">Larry's</td>
</tr>
</tbody>
</table>
<p><strong>&nbsp; </strong></p>
<p class="style9"><strong>TRUNCATE </strong>( <em>numeric_exp|float_exp|numeric_exp, integer_exp </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns <em>numeric_exp </em> truncated to <em>integer_exp </em> places right of the decimal point. If <em>integer_exp </em> is negative, <em>numeric_exp </em> is truncated to | <em>integer_exp </em>| places to the left of the decimal point.</p>
<p class="style7"><strong>Example: </strong>SELECT "Name", {fn TRUNCATE(Balance, 1)} AS "TruncateBalance", "Balance" FROM Customer</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="539">
<tbody>
<tr class="style7">
<td valign="top"><strong>Name </strong></td>
<td valign="top"><strong>TruncateBalance </strong></td>
<td valign="top"><strong>Balance </strong></td>
</tr>
<tr class="style7">
<td valign="top">Adam's Candy</td>
<td valign="top">40.00</td>
<td valign="top">40.00</td>
</tr>
<tr class="style7">
<td valign="top">Andres, Cristina</td>
<td valign="top">.00</td>
<td valign="top">0.00</td>
</tr>
<tr class="style7">
<td valign="top">Balak, Mike</td>
<td valign="top">.00</td>
<td valign="top">0.00</td>
</tr>
<tr class="style7">
<td valign="top">330 Main St</td>
<td valign="top">180.00</td>
<td valign="top">180.00</td>
</tr>
<tr class="style7">
<td valign="top">Residential</td>
<td valign="top">.00</td>
<td valign="top">0.00</td>
</tr>
<tr class="style7">
<td valign="top">&hellip;</td>
<td valign="top">&hellip;</td>
<td valign="top">&hellip;</td>
</tr>
</tbody>
</table>
<p><strong>&nbsp; </strong></p>
<p>&nbsp;</p>
<h3 class="style8"><strong>QODBC Time and Date Functions </strong></h3>
<p class="style9"><strong>CURDATE </strong>()</p>
<p class="style7"><strong>Instruction: </strong>Returns the current date as a date value.</p>
<p class="style7"><strong>Example: </strong>SELECT {fn CURDATE()} AS "CurDate" FROM Company</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="183">
<tbody>
<tr>
<td class="style7" valign="top"><strong>CurDate </strong></td>
</tr>
<tr>
<td class="style7" valign="top">2009-07-08</td>
</tr>
</tbody>
</table>
<p><strong>&nbsp; </strong></p>
<p class="style9"><strong>CURRENT_DATE ()</strong></p>
<p class="style7"><strong>Instruction: </strong>Returns the current date as a date value.</p>
<p class="style7"><strong>Example:&nbsp;</strong>SELECT {fn CURRENT_DATE()} AS "CurrentDate" FROM Company</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="134">
<tbody>
<tr>
<td class="style7" valign="top"><strong>CurrentDate </strong></td>
</tr>
<tr>
<td class="style7" valign="top">2009-07-08</td>
</tr>
</tbody>
</table>
<p><strong>&nbsp; </strong></p>
<p class="style9"><strong>CURTIME() </strong></p>
<p class="style7"><strong>Instruction: </strong>Returns the local time as a time value.</p>
<p class="style7"><strong>Example: </strong>SELECT {fn CURTIME()} AS "CurTime" FROM Company</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="130">
<tbody>
<tr>
<td class="style7" valign="top"><strong>CurTime </strong></td>
</tr>
<tr>
<td class="style7" valign="top">20:30:31</td>
</tr>
</tbody>
</table>
<p><strong>&nbsp; </strong></p>
<p class="style9"><strong>CURRENT_ TIME() </strong></p>
<p class="style7"><strong>Instruction: </strong>Returns the current time as a time value.</p>
<p class="style7"><strong>Example </strong>: SELECT {fn CURRENT_TIME()} AS "CurrentTime" FROM Company</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="158">
<tbody>
<tr>
<td class="style7" valign="top"><strong>CurrentTime </strong></td>
</tr>
<tr>
<td class="style7" valign="top">20:31:03</td>
</tr>
</tbody>
</table>
<p><strong>&nbsp; </strong></p>
<p class="style9"><strong>CURRENT_ TIMESTAMP() </strong></p>
<p class="style7"><strong>Instruction: </strong>Returns the current date and time as a timestamp value.</p>
<p class="style7"><strong>Example: </strong>SELECT {fn CURRENT_TIMESTAMP()} AS "CurrentTimeStamp" FROM Company</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="301">
<tbody>
<tr>
<td class="style7" valign="top"><strong>CurrentTimeStamp </strong></td>
</tr>
<tr>
<td class="style7" valign="top">2009-07-08 23:10:10.316</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p class="style9"><strong>DAYNAME </strong>( <em>date_exp </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns a character string containing the data source-specific name of the day (for example, Sunday through Saturday or Sun. through Sat. for a data source that uses English) for the day portion of <em>date_exp </em>.</p>
<p class="style7"><strong>Example: </strong>SELECT {fn DAYNAME({fn CURDATE()})} AS "CurDayName", CompanyName AS "CompanyName" FROM Company</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="301">
<tbody>
<tr class="style7">
<td valign="top"><strong>CurDayName </strong></td>
<td valign="top"><strong>CompanyName </strong></td>
</tr>
<tr class="style7">
<td valign="top">Thursday</td>
<td valign="top">Larry's</td>
</tr>
</tbody>
</table>
<p><strong>&nbsp; </strong></p>
<p class="style9"><strong>DAYOFMONTH </strong>( <em>date_exp| string_exp|timestamp_exp </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns the day of the month in <em>date_exp </em> as an integer value in the range of 1-31.</p>
<p class="style7"><strong>Example: </strong>SELECT {fn DAYOFMONTH({fn CURDATE()})} AS "CurDayOfMonth" FROM Company</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="175">
<tbody>
<tr>
<td class="style7" valign="top"><strong>CurDayOfMonth </strong></td>
</tr>
<tr>
<td class="style7" valign="top">08</td>
</tr>
</tbody>
</table>
<p><strong>&nbsp; </strong></p>
<p class="style9"><strong>DAYOFWEEK </strong>( <em>date_exp </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns the day to the week in <em>date_exp </em> as an integer value in the range of 1-7, where one represents Sunday.</p>
<p class="style7"><strong>Example: </strong>SELECT {fn DAYOFWEEK({fn CURDATE()})} AS "CurDayOfWeek" FROM Company</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="170">
<tbody>
<tr>
<td class="style7" valign="top"><strong>CurDayOfWeek </strong></td>
</tr>
<tr>
<td class="style7" valign="top">3</td>
</tr>
</tbody>
</table>
<p><strong>&nbsp; </strong></p>
<p class="style9"><strong>DAYOFYEAR </strong>( <em>date_exp </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns the day of the year in <em>date_exp </em> as an integer value in the range of 1-366.</p>
<p class="style7"><strong>Example: </strong>SELECT {fn DAYOFYEAR({fn CURDATE()})} AS "CurDayOfYear" FROM Company</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="162">
<tbody>
<tr>
<td class="style7" valign="top"><strong>CurDayOfYear </strong></td>
</tr>
<tr>
<td class="style7" valign="top">189</td>
</tr>
</tbody>
</table>
<p><strong>&nbsp; </strong></p>
<p class="style9"><strong>EXTRACT( </strong><em>date_exp|timestamp_exp </em><strong>) </strong></p>
<p class="style7"><strong>Instruction: </strong>Returns the part of <em>date_exp </em> or <em>timestamp_exp </em>.</p>
<p class="style7"><strong>Example: </strong>SELECT {fn EXTRACT(YEAR FROM{fn CURRENT_DATE()})} AS "Year",{fn EXTRACT(MONTH FROM{fn CURRENT_DATE()})} AS "Month",{fn EXTRACT(DAY FROM{fn CURRENT_DATE()})} AS "Day",CompanyName as "CompanyName" FROM Company</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="526">
<tbody>
<tr class="style7">
<td valign="top"><strong>Year </strong></td>
<td valign="top"><strong>Month </strong></td>
<td valign="top"><strong>Day </strong></td>
<td valign="top"><strong>CompanyName </strong></td>
</tr>
<tr class="style7">
<td valign="top">2009</td>
<td valign="top">7</td>
<td valign="top">9</td>
<td valign="top">Larry's</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p class="style9"><strong>HOUR </strong>( <em>time_exp| string_exp|timestamp_exp </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns the hour in <em>time_exp </em> or <em>char_exp </em> or <em>timestamp_exp </em> as an integer value in the range of 0-23.</p>
<p class="style7"><strong>Example: </strong>SELECT {fn HOUR({fn CURTIME()})} AS "CurHour" FROM Company</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="133">
<tbody>
<tr>
<td class="style7" valign="top"><strong>CurHour </strong></td>
</tr>
<tr>
<td class="style7" valign="top">22</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p class="style9"><strong>MINUTE </strong>( <em>time_exp| string_exp|timestamp_exp </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns the minute in <em>time_exp </em> as an integer value in the range of 0-59.</p>
<p class="style7"><strong>Example: </strong>SELECT {fn MINUTE({fn CURTIME()})} AS "CurMinute" FROM Company</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="135">
<tbody>
<tr>
<td class="style7" valign="top"><strong>CurMinute </strong></td>
</tr>
<tr>
<td class="style7" valign="top">59</td>
</tr>
</tbody>
</table>
<p><strong>&nbsp; </strong></p>
<p class="style9"><strong>MONTH </strong>( <em>date_exp| string_exp|timestamp_exp </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns the month in <em>date_exp </em> as an integer value in the range of 1-12.</p>
<p class="style7"><strong>Example: </strong>SELECT {fn MONTH({fn CURDATE()})} AS "CurMonth" FROM Company</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="136">
<tbody>
<tr>
<td class="style7" valign="top"><strong>CurMonth </strong></td>
</tr>
<tr>
<td class="style7" valign="top">07</td>
</tr>
</tbody>
</table>
<p><strong>&nbsp; </strong></p>
<p class="style9"><strong>MONTHNAME </strong>( <em>date_exp| string_exp|timestamp_exp </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns a character string containing the data source-specific name of the month (for example, January through December or Jan. through Dec. for a data source that uses English) for the month portion of <em>date_exp </em>.</p>
<p class="style7"><strong>Example:&nbsp;</strong>SELECT {fn MONTHNAME({fn CURDATE()})} AS "CurMonthName", CompanyName AS "CompanyName" FROM Company</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="301">
<tbody>
<tr class="style7">
<td valign="top"><strong>CurMonthName </strong></td>
<td valign="top"><strong>CompanyName </strong></td>
</tr>
<tr class="style7">
<td valign="top">July</td>
<td valign="top">Larry's</td>
</tr>
</tbody>
</table>
<p><strong>&nbsp; </strong></p>
<p class="style9"><strong>NOW </strong>()</p>
<p class="style7"><strong>Instruction: </strong>Returns the current date and time as a timestamp value.</p>
<p class="style7"><strong>Example: </strong>SELECT {fn NOW()} AS "Now" FROM Company</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="227">
<tbody>
<tr>
<td class="style7" valign="top"><strong>Now </strong></td>
</tr>
<tr>
<td class="style7" valign="top">2009-07-08 23:05:45.144</td>
</tr>
</tbody>
</table>
<p><strong>&nbsp; </strong></p>
<p class="style9"><strong>QUARTER </strong>( <em>date_exp| string_exp|timestamp_exp </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns the quarter in the <em>date_exp </em> as an integer value in the range of 1-4, where 1 represents January 1 through March 31.</p>
<p class="style7"><strong>Example: </strong>SELECT {fn QUARTER({fn CURDATE()})} AS "CurQuarter", CompanyName AS "CompanyName" FROM Company</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="301">
<tbody>
<tr class="style7">
<td valign="top"><strong>CurQuarter </strong></td>
<td valign="top"><strong>CompanyName </strong></td>
</tr>
<tr class="style7">
<td valign="top">3</td>
<td valign="top">Larry's</td>
</tr>
</tbody>
</table>
<p><strong>&nbsp; </strong></p>
<p class="style9"><strong>SECOND </strong>( <em>time_exp| string_exp|timestamp_exp </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns the second in <em>time_exp </em> as an integer value in the range of 0-59.</p>
<p class="style7"><strong>Example: </strong>SELECT {fn SECOND({fn CURTIME()})} AS "CurSecond" FROM Company</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="146">
<tbody>
<tr>
<td class="style7" valign="top"><strong>CurSecond </strong></td>
</tr>
<tr>
<td class="style7" valign="top">09</td>
</tr>
</tbody>
</table>
<p><strong>&nbsp; </strong></p>
<p class="style9"><strong>TIMESTAMPADD </strong>( <em>interval, integer_exp, timestamp_exp </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns the timestamp calculated by adding <em>integer_exp </em> intervals of type <em>interval </em> to <em>timestamp_exp </em>. Valid values of <em>interval </em> are the following keywords: SQL_TSI_FRAC_SECOND, SQL_TSI_HOUR, SQL_TSI_SECOND, SQL_TSI_DAY, SQL_TSI_MINUTE, SQL_TSI_WEEK, SQL_TSI_MONTH, SQL_TSI_QUARTER, SQL_TSI_YEAR where fractional seconds are expressed in billionths of a second.</p>
<p class="style7"><strong>Notes: </strong>If <em>timestamp_exp </em> is a time value and <em>interval </em> specifies days, weeks, months, quarters, or years, the date portion of <em>timestamp_exp </em> is set to the current date before calculating the resulting timestamp.</p>
<p class="style7">&nbsp;&nbsp;&nbsp;&nbsp; If <em>timestamp_exp </em> is a date value and <em>interval </em> specifies fractional seconds, seconds, minutes, or hours, the time portion of <em>timestamp_exp </em> is set to 0 before calculating the resulting timestamp.</p>
<p class="style7"><strong>Example: </strong>SELECT Name, {fn TIMESTAMPADD(SQL_TSI_YEAR, 1, HiredDate)} AS "Anniversary" FROM Employee</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="399">
<tbody>
<tr class="style7">
<td valign="top"><strong>Name </strong></td>
<td valign="top"><strong>Anniversary </strong></td>
</tr>
<tr class="style7">
<td valign="top">Duncan Fisher</td>
<td valign="top">2012-06-15 00:00:00.000</td>
</tr>
<tr class="style7">
<td valign="top">Jenny Miller</td>
<td valign="top">2012-11-01 00:00:00.000</td>
</tr>
<tr class="style7">
<td valign="top">Shane B. Hamby</td>
<td valign="top">2012-06-18 00:00:00.000</td>
</tr>
</tbody>
</table>
<p><strong>&nbsp; </strong></p>
<p class="style9"><strong>TIMESTAMPDIFF </strong>( <em>interval, timestamp_exp1, timestamp_exp2 </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns the integer number of intervals of type <em>interval </em> by which <em>timestamp_exp2 </em> is greater than <em>timestamp_exp1 </em>. Valid values of <em>interval </em> are the following keywords: SQL_TSI_FRAC_SECOND, SQL_TSI_HOUR, SQL_TSI_SECOND, SQL_TSI_DAY, SQL_TSI_MINUTE, SQL_TSI_WEEK, SQL_TSI_MONTH, SQL_TSI_QUARTER, SQL_TSI_YEAR where fractional seconds are expressed in billionths of a second.</p>
<p class="style7"><strong>Note: </strong>If either timestamp expression is a time value and <em>interval </em> specifies days, weeks, months, quarters, or years, the date portion of that timestamp is set to the current date before calculating the difference between the timestamps.</p>
<p class="style7">&nbsp;&nbsp;&nbsp;&nbsp; If either timestamp expression is a date value and <em>interval </em> specifies fractional seconds, seconds, minutes, or hours, the time portion of that timestamp is set to 0 before calculating the difference between the timestamps.</p>
<p class="style7"><strong>Example:&nbsp;</strong>SELECT Name, {fn TIMESTAMPDIFF(SQL_TSI_YEAR, {fn CURDATE()}, HiredDate)} AS "YearsWorked"&nbsp; FROM Employee</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="301">
<tbody>
<tr class="style7">
<td valign="top"><strong>Name </strong></td>
<td valign="top"><strong>YearsWorked </strong></td>
</tr>
<tr class="style7">
<td valign="top">Duncan Fisher</td>
<td valign="top">2</td>
</tr>
<tr class="style7">
<td valign="top">Jenny Miller</td>
<td valign="top">2</td>
</tr>
<tr class="style7">
<td valign="top">Shane B. Hamby</td>
<td valign="top">2</td>
</tr>
</tbody>
</table>
<p><strong>&nbsp;</strong><strong>&nbsp; </strong></p>
<p class="style9"><strong>WEEK </strong>( <em>date_exp </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns the week of the year in <em>date_exp </em> as an integer value in the range of 1-53.</p>
<p class="style7"><strong>Example: </strong>SELECT {fn WEEK({fn CURDATE()})} AS "CurWeek" FROM Company</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="122">
<tbody>
<tr>
<td class="style7" valign="top"><strong>CurWeek </strong></td>
</tr>
<tr>
<td class="style7" valign="top">27</td>
</tr>
</tbody>
</table>
<p><strong>&nbsp; </strong></p>
<p class="style9"><strong>YEAR </strong>( <em>date_exp|string_exp|timestamp_exp </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns the year in <em>date_exp </em> as an integer value.</p>
<p class="style7"><strong>Example: </strong>SELECT {fn YEAR({fn CURDATE()})} AS "CurYear" FROM Company</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="126">
<tbody>
<tr>
<td class="style7" valign="top"><strong>CurYear </strong></td>
</tr>
<tr>
<td class="style7" valign="top">2009</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h3 class="style8"><strong>QODBC System Functions </strong></h3>
<p class="style9"><strong>DATABASE </strong>()</p>
<p class="style7"><strong>Instruction: </strong>Returns the name of the database in use at the time this function is called.</p>
<p class="style7"><strong>Example: </strong>SELECT {fn DATABASE()} AS "OpenDatabase" FROM Company</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="1544">
<tbody>
<tr>
<td class="style7" width="1112"><strong>OpenDatabase </strong></td>
<td width="416"><strong>CompanyName </strong></td>
</tr>
<tr>
<td class="style7" valign="top">C:\Documents and Settings\All Users\Documents\Intuit\QuickBooks\Sample Company Files\QuickBooks Enterprise Solutions 9.0\sample_service-based business.qbw</td>
<td valign="top">Larry's</td>
</tr>
</tbody>
</table>
<p><strong>&nbsp;</strong><strong>&nbsp; </strong></p>
<p class="style9"><strong>IFNULL </strong>( <em>exp, value </em>)</p>
<p class="style7"><strong>Instruction: </strong>If <em>exp </em> is null, the&nbsp;<em>value&nbsp;</em>is returned. If <em>exp&nbsp;</em>is not null, <em>exp&nbsp;</em>is replaced. The possible data type(s) of <em>value&nbsp;</em>must be compatible with the data type of <em>exp</em>.</p>
<p class="style7"><strong>Example: </strong>Select Name, {fn IFNULL(Fax, 'Missing Fax')} as "FixedFax" from Employee</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="324">
<tbody>
<tr class="style7">
<td valign="top"><strong>Name </strong></td>
<td valign="top"><strong>FixedFax </strong></td>
</tr>
<tr class="style7">
<td valign="top">Duncan</td>
<td valign="top">Missing Fax</td>
</tr>
<tr class="style7">
<td valign="top">Jenny Miller</td>
<td valign="top">Missing Fax</td>
</tr>
<tr class="style7">
<td valign="top">Shane B. Hamby</td>
<td valign="top">Missing Fax</td>
</tr>
</tbody>
</table>
<p><strong>&nbsp;</strong><strong>&nbsp; </strong></p>
<p class="style9"><strong>PARENT( </strong><em>string_exp </em><strong>) </strong></p>
<p class="style7"><strong>Instruction: </strong>Returns the characters before the colon it finds in <em>string_exp </em></p>
<p class="style7"><strong>Example </strong>: SELECT {fn PARENT(FullName)} AS &ldquo;ParentValue&rdquo;,FullName FROM Account CALLDIRECT</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="578">
<tbody>
<tr class="style7">
<td valign="top"><strong>ParentValue </strong></td>
<td valign="top"><strong>FullName </strong></td>
</tr>
<tr class="style7">
<td valign="top">Truck</td>
<td valign="top">Truck:Accumulated Depreciation</td>
</tr>
<tr class="style7">
<td valign="top">QuickBooks Credit Card</td>
<td valign="top">QuickBooks Credit Card</td>
</tr>
<tr class="style7">
<td valign="top">QuickBooks Credit Card</td>
<td valign="top">QuickBooks Credit Card:QBCC Field Office</td>
</tr>
<tr class="style7">
<td valign="top">&hellip;</td>
<td valign="top">&hellip;</td>
</tr>
</tbody>
</table>
<p><strong>&nbsp; </strong></p>
<p class="style9"><strong>CHILD </strong>( <em>string_exp </em>)</p>
<p class="style7"><strong>Instruction: </strong>Returns the characters after the colon it finds in <em>string_exp </em></p>
<p class="style7"><strong>Example: </strong>SELECT {fn CHILD(FullName)} AS &ldquo;ChildValue&rdquo;,FullName FROM Account CALLDIRECT</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="581">
<tbody>
<tr class="style7">
<td valign="top"><strong>ChildValue </strong></td>
<td valign="top"><strong>FullName </strong></td>
</tr>
<tr class="style7">
<td valign="top">Accumulated Depreciation</td>
<td valign="top">Truck:Accumulated Depreciation</td>
</tr>
<tr class="style7">
<td valign="top">QuickBooks Credit Card</td>
<td valign="top">QuickBooks Credit Card</td>
</tr>
<tr class="style7">
<td valign="top">QBCC Field Office</td>
<td valign="top">QuickBooks Credit Card:QBCC Field Office</td>
</tr>
<tr class="style7">
<td valign="top">&hellip;</td>
<td valign="top">&hellip;</td>
</tr>
</tbody>
</table>
<p><strong>&nbsp; </strong></p>
<p class="style9"><strong>CONVERT </strong>(integer_exp, sqltype_exp)</p>
<p class="style7"><strong>Instruction: </strong>Returns the slqtype value, which is converted from an integer value and can be used in numeric functions.</p>
<p class="style7"><strong>Example: </strong>SELECT {fn CONVERT(21,SQL_FLOAT)} AS "ConverValue", CompanyName AS "CompanyName" FROM Company</p>
<p class="style7"><strong>Returns: </strong></p>
<table border="1" width="301">
<tbody>
<tr class="style7">
<td valign="top"><strong>ConverValue </strong></td>
<td valign="top"><strong>CompanyName </strong></td>
</tr>
<tr class="style7">
<td valign="top">21</td>
<td valign="top">Larry's</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p><strong>&nbsp; </strong></p>]]></content:encoded>
</item>
<item>
<title><![CDATA[[QODBC-ALL] &amp; [QXL- ALL] Stored Procedures Command List]]></title>
<link><![CDATA[https://support.flexquarters.com/esupport/index.php?/Knowledgebase/Article/View/2342]]></link>
<guid isPermaLink="false"><![CDATA[2321994d85d661d792223f647000c65f]]></guid>
<pubDate><![CDATA[Tue, 28 Jul 2009 08:04:13 +0000]]></pubDate>
<dc:creator><![CDATA[Juliet]]></dc:creator>
<description><![CDATA[[QODBC-ALL] &amp; [QXL- ALL]&nbsp;Stored Procedures Command List
Applicable to&nbsp;[QODBC-Desktop], [QODBC-Online], [QODBC-POS], [QXL- Desktop] &amp;&nbsp;[QXL- Online]&nbsp;
&nbsp;
Stored Procedures
SP_COLUMNS&nbsp;table name
Instruction: Returns a...]]></description>
<content:encoded><![CDATA[<h2><span style="color: #6633cc; font-family: Arial, Helvetica, sans-serif;">[QODBC-ALL] &amp; [QXL- ALL]&nbsp;Stored Procedures Command List</span></h2>
<p>Applicable to&nbsp;[QODBC-Desktop], [QODBC-Online], [QODBC-POS], [QXL- Desktop] &amp;&nbsp;[QXL- Online]&nbsp;</p>
<p>&nbsp;</p>
<h2 class="style6">Stored Procedures</h2>
<p><span class="style9">SP_COLUMNS</span>&nbsp;<em>table name</em></p>
<p><strong>Instruction: </strong>Returns a recordset of the columns in the specified table.</p>
<p><strong>Example:</strong> sp_columns Customer</p>
<p><strong>Returns: </strong></p>
<table border="1" width="1216" cellspacing="0" cellpadding="0">
<tbody>
<tr class="style1">
<td valign="top" width="133"><span class="style10">QUALIFIERNAME </span></td>
<td valign="top" width="109">OWNER NAME</td>
<td valign="top" width="101">TABLE NAME</td>
<td valign="top" width="116"><span class="style10">COLUMNNAME </span></td>
<td valign="top" width="51"><span class="style10">TYPE </span></td>
<td valign="top" width="103">TYPE NAME</td>
<td valign="top" width="85"><span class="style10">PRECISION</span></td>
<td valign="top" width="83"><span class="style10">LENGTH </span></td>
<td valign="top" width="55"><span class="style10">SCALE </span></td>
<td valign="top" width="63"><span class="style10">RADIX </span></td>
<td valign="top" width="91"><span class="style10">NULLABLE </span></td>
<td valign="top" width="81"><span class="style10">REMARKS </span></td>
<td valign="top" width="78"><span class="style10">DEFAULT </span></td>
<td valign="top" width="37"><span class="style11">...</span></td>
</tr>
<tr>
<td valign="top" width="133">QODBC</td>
<td valign="top" width="109">&nbsp;</td>
<td valign="top" width="101">Customer</td>
<td valign="top" width="116">ListID</td>
<td valign="top" width="51">12</td>
<td valign="top" width="103">VARCHAR</td>
<td valign="top" width="85">36</td>
<td valign="top" width="83">36</td>
<td valign="top" width="55">0</td>
<td valign="top" width="63">&nbsp;</td>
<td valign="top" width="91">0</td>
<td valign="top" width="81">&nbsp;</td>
<td valign="top" width="78">NULL</td>
<td valign="top" width="37">...</td>
</tr>
<tr>
<td valign="top" width="133">QODBC</td>
<td valign="top" width="109">&nbsp;</td>
<td valign="top" width="101">Customer</td>
<td valign="top" width="116">TimeCreated</td>
<td valign="top" width="51">11</td>
<td valign="top" width="103">TIMESTAMP</td>
<td valign="top" width="85">23</td>
<td valign="top" width="83">10</td>
<td valign="top" width="55">0</td>
<td valign="top" width="63">&nbsp;</td>
<td valign="top" width="91">1</td>
<td valign="top" width="81">&nbsp;</td>
<td valign="top" width="78">NULL</td>
<td valign="top" width="37">...</td>
</tr>
<tr>
<td valign="top" width="133">&hellip;</td>
<td valign="top" width="109">&hellip;</td>
<td valign="top" width="101">&hellip;</td>
<td valign="top" width="116">&hellip;</td>
<td valign="top" width="51">&hellip;</td>
<td valign="top" width="103">&hellip;</td>
<td valign="top" width="85">...</td>
<td valign="top" width="83">...</td>
<td valign="top" width="55">...</td>
<td valign="top" width="63">...</td>
<td valign="top" width="91">...</td>
<td valign="top" width="81">...</td>
<td valign="top" width="78">...</td>
<td valign="top" width="37">...</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p><span class="style9"><strong>SP_FQSAVETOCACHEROLLBACK</strong></span> <em>on|off </em></p>
<p><strong>Instruction: </strong>Sets or clears whether the cache is backed up or reset if an error occurs when doing multiple inserts using the FQSaveToCache flag field. The off mode can help with performance if the rollback is not needed. The default is on.</p>
<p><strong>Example: </strong>sp_fqsavetocacherollback off</p>
<p><strong>Returns: </strong>This is an execute the command and does not return a recordset.</p>
<p>&nbsp;</p>
<p id="SP_LASTINSERTID"><span class="style9">SP_LASTINSERTID </span></p>
<p><strong>Instruction: </strong>Returns a recordset with one row (or multiple rows if done after a sp_batchupdate command) and two columns containing the last ListID or last TxnID from the last insert done and its error status on the current connection. The value is obtained from the return value of the previous insert (or inserts if done inside a sp_batchstart/sp_batchupdate block) performed on the same connection for that table.</p>
<p><strong>Example: </strong>sp_lastinsertid Customer</p>
<p><strong>Returns: </strong></p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr class="style10">
<td width="138"><strong>LastInsertId </strong></td>
<td width="118"><strong>ErrorMessage </strong></td>
</tr>
<tr>
<td width="138">F3B0-1355557956</td>
<td>&nbsp;</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p><span class="style9"><strong>SP_LASTINSERTIDRETURN</strong><strong>&nbsp;</strong></span> <em>on|off </em></p>
<p><strong>Instruction: </strong>Sets or clears whether the last insert ID is returned.</p>
<p><strong>Example: </strong>sp_lastinsertidreturn off</p>
<p><strong>Returns: </strong>This is an execute the command and does not return a recordset.</p>
<p>&nbsp;</p>
<p><span class="style9"><strong>SP_OPTIMIZEFULLSYNC</strong><strong>&nbsp;</strong></span> <em>tablename|ALL </em></p>
<p><strong>Instruction: </strong>This command will reload the specified table from scratch. It helps ensure that the optimizer perfectly syncs with the QuickBooks company file. The ALL option will do all tables.</p>
<p><strong>Example: </strong>sp_optimizefullsync Customer</p>
<p><strong>Returns: </strong>This is an execute the command and does not return a recordset.</p>
<p>&nbsp;</p>
<p><span class="style9"><strong>SP_OPTIMIZEUPDATESYNC&nbsp;</strong></span><em>tablename|ALL </em></p>
<p><strong>Instruction: </strong>This command will synchronize the specified table with the QuickBooks data file using changed and deleted data. It helps ensure that the optimizer is up to date with the QuickBooks company file. The ALL option will do all tables.</p>
<p><strong>Example: </strong>sp_optimizeupdatesync Customer</p>
<p><strong>Returns: </strong>This is an execute the command and does not return a recordset.</p>
<p>&nbsp;</p>
<p><span class="style9"><strong>SP_PRIMARYKEYS</strong></span><em>tablename </em></p>
<p><strong>Instruction: </strong>Returns a recordset of the primary key segments in the specified table.</p>
<p><strong>Example: </strong>sp_primarykeys Customer</p>
<p><strong>Returns: </strong></p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr class="style10">
<td valign="top" width="120"><strong>QUALIFIERNAME </strong></td>
<td valign="top" width="96"><strong>OWNER NAME</strong></td>
<td valign="top" width="96"><strong>TABLE NAME</strong></td>
<td valign="top" width="114"><strong>COLUMNNAME </strong></td>
<td valign="top" width="66"><strong>KEYSEQ </strong></td>
<td valign="top" width="139"><strong>PKNAME </strong></td>
</tr>
<tr>
<td valign="top" width="120">QODBC</td>
<td valign="top" width="96">&nbsp;</td>
<td valign="top" width="96">Customer</td>
<td valign="top" width="114">ListID</td>
<td valign="top" width="66">1</td>
<td valign="top" width="139">Customer_PrimaryKey</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p class="style9"><strong>SP_QBFILENAME</strong></p>
<p><strong>Instruction: </strong>This command returns the full path to the open QuickBooks company file. It returns one column, one-row record set.</p>
<p><strong>Example: </strong>sp_qbfilename</p>
<p><strong>Returns: </strong></p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td class="style10" valign="top" width="631"><strong>QBFileName </strong></td>
</tr>
<tr>
<td valign="top" width="631">C:\Documents and Settings\All Users\Documents\Intuit\QuickBooks\Test Company Files\Medal Crest Homes, LLC.QBW</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p>*Note: sp_report and other reports commands are unavailable for QODBC POS. QuickBooks POS SDK does not support reports, and thus it is not available in QODBC POS.</p>
<p><span class="style9"><strong>SP_REPORT</strong></span><em>tablename </em> [show]</p>
<p><strong>Instruction: </strong>Similar to the SQL Keyword SELECT. Used to run built-in QuickBooks reports. See <a href="http://www.qodbc.com/data">http://www.qodbc.com/data</a>, make your country selection, then select the REPORTS link.</p>
<p><strong>Example: </strong>sp_report ARAgingSummary show Current_Title, Amount_Title, Text, Label, Current, Amount parameters DateMacro = &lsquo;Today', AgingAsOf = &lsquo;Today'</p>
<p><strong>Returns: </strong></p>
<table border="1" width="1637" cellspacing="0" cellpadding="0">
<tbody>
<tr class="style10">
<td width="92" height="21"><strong>Current_Title </strong></td>
<td width="122"><strong>Amount_1_Title </strong></td>
<td width="116"><strong>Amount_2_Title </strong></td>
<td width="115"><strong>Amount_3_Title </strong></td>
<td width="111"><strong>Amount_4_Title </strong></td>
<td width="113"><strong>Amount_5_Title </strong></td>
<td width="333"><strong>Label </strong></td>
<td width="68"><strong>Current </strong></td>
<td width="112"><strong>Amount_Count </strong></td>
<td width="81"><strong>Amount_1 </strong></td>
<td width="86"><strong>Amount_2</strong></td>
<td width="89"><strong>Amount_3</strong></td>
<td width="90"><strong>Amount_4</strong></td>
<td width="79"><strong>Amount_5</strong></td>
</tr>
<tr>
<td>Current</td>
<td>1 &ndash; 30</td>
<td>31 &ndash; 60</td>
<td>61 &ndash; 90</td>
<td>&gt;90</td>
<td>TOTAL</td>
<td>1456 Red Cloud Peak - Barbour</td>
<td>0.00</td>
<td>5</td>
<td>0.00</td>
<td>0.00</td>
<td>0.00</td>
<td>25671.35</td>
<td>25671.35</td>
</tr>
<tr>
<td>Current</td>
<td>1 &ndash; 30</td>
<td>31 &ndash; 60</td>
<td>61 &ndash; 90</td>
<td>&gt;90</td>
<td>TOTAL</td>
<td>1463 Red Cloud Peak - MCH</td>
<td>0.00</td>
<td>5</td>
<td>0.00</td>
<td>0.00</td>
<td>0.00</td>
<td>29353.00</td>
<td>29353.00</td>
</tr>
<tr>
<td>...</td>
<td>...</td>
<td>...</td>
<td>...</td>
<td>...</td>
<td>...</td>
<td>...</td>
<td>...</td>
<td>...</td>
<td>...</td>
<td>...</td>
<td>...</td>
<td>...</td>
<td>...</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p><span class="style9"><strong>SP_REPORTS </strong></span></p>
<p><strong>Instruction: </strong>Returns a recordset of the information of all reports.</p>
<p><strong>Example: </strong>sp_reports <strong>&nbsp;</strong></p>
<p><strong>Returns: </strong></p>
<table border="1" width="809" cellspacing="0" cellpadding="0">
<tbody>
<tr class="style10">
<td valign="top" width="123"><strong>QUALIFIERNAME </strong></td>
<td valign="top" width="101"><strong>OWNER NAME</strong></td>
<td valign="top" width="111"><strong>TABLE NAME</strong></td>
<td valign="top" width="86"><strong>TYPE NAME</strong></td>
<td valign="top" width="376"><strong>REMARKS </strong></td>
</tr>
<tr>
<td valign="top" width="123">QODBC</td>
<td valign="top" width="101">&nbsp;</td>
<td valign="top" width="111">APAgingDetail</td>
<td valign="top" width="86">SP_REPORT</td>
<td valign="top">Vendors &amp; Payables-&gt;A/P Aging Detail</td>
</tr>
<tr>
<td valign="top" width="123">QODBC</td>
<td valign="top" width="101">&nbsp;</td>
<td valign="top" width="111">APAgingSummary</td>
<td valign="top" width="86">SP_REPORT</td>
<td valign="top">Vendors &amp; Payables-&gt;A/P Aging Summary</td>
</tr>
<tr>
<td valign="top" width="123">QODBC</td>
<td valign="top" width="101">&nbsp;</td>
<td valign="top" width="111">ARAgingDetail</td>
<td valign="top" width="86">SP_REPORT</td>
<td valign="top">Customers &amp; Receivables-&gt;A/R Aging Detail</td>
</tr>
<tr>
<td valign="top" width="123">&hellip;</td>
<td valign="top" width="101">&hellip;</td>
<td valign="top" width="111">&hellip;</td>
<td valign="top" width="86">&hellip;</td>
<td valign="top">&hellip;</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p><span class="style9"><strong>SP_SPECIALCOLUMNS</strong><strong>&nbsp;</strong></span> <em>tablename </em> [ <em>ROWVER </em>]|[ <em>BEST_ROWID </em>]</p>
<p><strong>Instruction: </strong>Returns a recordset of the special columns. RowVer describes which column holds the row ID, and Best_RowID describes the column that is the row identifier. Best_RowID is the default if neither is specified.</p>
<p><strong>Example: </strong>sp_specialcolumns Customer Best_RowID</p>
<p><strong>Returns: </strong></p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr class="style10">
<td valign="top" width="61"><strong>SCOPE </strong></td>
<td valign="top" width="113"><strong>COLUMNNAME </strong></td>
<td valign="top" width="60"><strong>TYPE </strong></td>
<td valign="top" width="110"><strong>TYPE NAME</strong></td>
<td valign="top" width="88"><strong>PRECISION </strong></td>
<td valign="top" width="69"><strong>LENGTH </strong></td>
<td valign="top" width="60"><strong>SCALE </strong></td>
<td valign="top" width="71"><strong>PSEUDO </strong></td>
</tr>
<tr>
<td valign="top" width="61">2</td>
<td valign="top" width="113">ListID</td>
<td valign="top" width="60">12</td>
<td valign="top" width="110">VARCHAR</td>
<td valign="top" width="88">36</td>
<td valign="top" width="69">36</td>
<td valign="top" width="60">0</td>
<td valign="top" width="71">0</td>
</tr>
</tbody>
</table>
<p><strong>Example2: </strong>sp_specialcolumns Customer RowVer <strong>&nbsp;</strong></p>
<p><strong>Returns: </strong><strong>&nbsp;</strong></p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr class="style10">
<td valign="top" width="66"><strong>SCOPE </strong></td>
<td valign="top" width="120"><strong>COLUMNNAME </strong></td>
<td valign="top" width="61"><strong>TYPE </strong></td>
<td valign="top" width="97"><strong>TYPE NAME</strong></td>
<td valign="top" width="88"><strong>PRECISION </strong></td>
<td valign="top" width="69"><strong>LENGTH </strong></td>
<td valign="top" width="60"><strong>SCALE </strong></td>
<td valign="top" width="71"><strong>PSEUDO </strong></td>
</tr>
<tr>
<td valign="top" width="66">2</td>
<td valign="top" width="120">EditSequence</td>
<td valign="top" width="61">12</td>
<td valign="top" width="97">VARCHAR</td>
<td valign="top" width="88">16</td>
<td valign="top" width="69">16</td>
<td valign="top" width="60">0</td>
<td valign="top" width="71">0</td>
</tr>
</tbody>
</table>
<p class="style1"><strong>&nbsp;</strong></p>
<p><span class="style9"><strong>SP_TABLES</strong><strong>&nbsp;</strong></span>&nbsp;<em>table name</em></p>
<p><strong>Instruction: </strong>Returns a recordset with the list of tables available from the ODBC Driver.</p>
<p><strong>Example: </strong>sp_tables</p>
<p><strong>Returns: </strong></p>
<table border="1" width="880" cellspacing="0" cellpadding="0">
<tbody>
<tr class="style10">
<td valign="top" width="129"><strong>QUALIFIERNAME </strong></td>
<td valign="top" width="106"><strong>OWNER NAME</strong></td>
<td valign="top" width="127"><strong>TABLE NAME</strong></td>
<td valign="top" width="96"><strong>TYPE NAME</strong></td>
<td valign="top" width="109"><strong>REMARKS </strong></td>
<td valign="top" width="108">DELETEABLE</td>
<td valign="top" width="82"><strong>VOIDABLE </strong></td>
<td valign="top" width="105"><strong>INSERT_ONLY </strong></td>
</tr>
<tr>
<td valign="top" width="129">QODBC</td>
<td valign="top" width="106">&nbsp;</td>
<td valign="top" width="127">Account</td>
<td valign="top" width="96">TABLE</td>
<td valign="top" width="109">Chart of</td>
<td valign="top" width="108">1</td>
<td valign="top" width="82">0</td>
<td valign="top" width="105">0</td>
</tr>
<tr>
<td valign="top" width="129">QODBC</td>
<td valign="top" width="106">&nbsp;</td>
<td valign="top" width="127">AccountTaxLineInfo</td>
<td valign="top" width="96">TABLE</td>
<td valign="top" width="109">Account Tax</td>
<td valign="top" width="108">0</td>
<td valign="top" width="82">0</td>
<td valign="top" width="105">0</td>
</tr>
<tr>
<td valign="top" width="129">&hellip;</td>
<td valign="top" width="106">&hellip;</td>
<td valign="top" width="127">&hellip;</td>
<td valign="top" width="96">&hellip;</td>
<td valign="top" width="109">&hellip;</td>
<td valign="top" width="108">&nbsp;</td>
<td valign="top" width="82">&nbsp;</td>
<td valign="top" width="105">&hellip;</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p><span class="style9"><strong>SP_CATEGORIES </strong></span></p>
<p><strong>Instruction: </strong>Returns a recordset with the list of the categories for all the tables.</p>
<p><strong>Example: </strong>sp_categories</p>
<p><strong>Returns: </strong></p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td class="style10" valign="top" width="261"><strong>CATEGORY NAME</strong></td>
</tr>
<tr>
<td valign="top" width="261">Accounting &amp; Taxes</td>
</tr>
<tr>
<td valign="top" width="261">Banking</td>
</tr>
<tr>
<td valign="top" width="261">Budgets</td>
</tr>
<tr>
<td valign="top" width="261">Company &amp; Financial</td>
</tr>
<tr>
<td valign="top" width="261">Customers &amp; Receivables</td>
</tr>
<tr>
<td valign="top" width="261">Employees &amp; Payroll</td>
</tr>
<tr>
<td valign="top" width="261">Inventory</td>
</tr>
<tr>
<td valign="top" width="261">&hellip;.</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p><span class="style9"><strong>SP_CATEGORYTABLES </strong></span></p>
<p><strong>Instruction: </strong>Returns a recordset with the list of all the tables and the categories they belong to.</p>
<p><strong>Example: </strong>sp_categorytables</p>
<p><strong>Returns: </strong></p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr class="style10">
<td valign="top" width="171"><strong>CATEGORY NAME</strong></td>
<td valign="top" width="213"><strong>TABLE NAME</strong></td>
</tr>
<tr>
<td valign="top" width="171">Accounting &amp; Taxes</td>
<td valign="top" width="213">Account</td>
</tr>
<tr>
<td valign="top" width="171">Accounting &amp; Taxes</td>
<td valign="top" width="213">AccountTaxLineInfo</td>
</tr>
<tr>
<td valign="top" width="171">Accounting &amp; Taxes</td>
<td valign="top" width="213">Class</td>
</tr>
<tr>
<td valign="top" width="171">Accounting &amp; Taxes</td>
<td valign="top" width="213">journal entry</td>
</tr>
<tr>
<td valign="top" width="171">Accounting &amp; Taxes</td>
<td valign="top" width="213">JournalEntryCreditLine</td>
</tr>
<tr>
<td valign="top" width="171">Accounting &amp; Taxes</td>
<td valign="top" width="213">JournalEntryDebitLine</td>
</tr>
<tr>
<td valign="top" width="171">Accounting &amp; Taxes</td>
<td valign="top" width="213">JournalEntryLine</td>
</tr>
<tr>
<td valign="top" width="171">Accounting &amp; Taxes</td>
<td valign="top" width="213">SpecialAccount</td>
</tr>
<tr>
<td valign="top" width="171">Banking</td>
<td valign="top" width="213">ReceivePaymentToDeposit</td>
</tr>
<tr>
<td valign="top" width="171">Banking</td>
<td valign="top" width="213">SalesTaxPaymentCheck</td>
</tr>
<tr>
<td valign="top" width="171">&hellip;</td>
<td valign="top" width="213">&hellip;</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p><span class="style9"><strong>SP_CATEGORYREPORTS </strong></span></p>
<p><strong>Instruction: </strong>Returns a recordset with the list of all the reports and the categories they belong to.</p>
<p><strong>Example: </strong>sp_categoryreports</p>
<p><strong>Returns: </strong></p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr class="style10">
<td valign="top" width="147"><strong>CATEGORY NAME</strong></td>
<td valign="top" width="147"><strong>REPORT NAME</strong></td>
</tr>
<tr>
<td valign="top" width="147">Accounting &amp; Taxes</td>
<td valign="top" width="147">AuditTrail</td>
</tr>
<tr>
<td valign="top" width="147">Accounting &amp; Taxes</td>
<td valign="top" width="147">GeneralLedger</td>
</tr>
<tr>
<td valign="top" width="147">Accounting &amp; Taxes</td>
<td valign="top" width="147">IncomeTaxDetail</td>
</tr>
<tr>
<td valign="top" width="147">Accounting &amp; Taxes</td>
<td valign="top" width="147">Journal</td>
</tr>
<tr>
<td valign="top" width="147">Accounting &amp; Taxes</td>
<td valign="top" width="147">TxnDetailByAccount</td>
</tr>
<tr>
<td valign="top" width="147">Accounting &amp; Taxes</td>
<td valign="top" width="147">TxnListByDate</td>
</tr>
<tr>
<td valign="top" width="147">Accounting &amp; Taxes</td>
<td valign="top" width="147">IncomeTaxSummary</td>
</tr>
<tr>
<td valign="top" width="147">Accounting &amp; Taxes</td>
<td valign="top" width="147">trial balance</td>
</tr>
<tr>
<td valign="top" width="147">Banking</td>
<td valign="top" width="147">check details</td>
</tr>
<tr>
<td valign="top" width="147">Banking</td>
<td valign="top" width="147">DepositDetail</td>
</tr>
<tr>
<td valign="top" width="147">&hellip;</td>
<td valign="top" width="147">&hellip;</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p><span class="style9"><strong class="style9">SP_FOREIGNKEYS</strong><strong>&nbsp;</strong></span>&nbsp;table name<em>&nbsp;table name</em></p>
<p><strong>Instruction: </strong>Returns a recordset of the detailed relationship information of two tables.</p>
<p><strong>Example: </strong>sp_foreignkeys Customer Invoice</p>
<p><strong>Returns: </strong></p>
<table border="1" width="1783" cellspacing="0" cellpadding="0">
<tbody>
<tr class="style10">
<td valign="top" width="149"><strong>PKQUALIFIERNAME </strong></td>
<td valign="top" width="134"><strong>PKOWNERNAME </strong></td>
<td valign="top" width="117"><strong>PKTABLENAME </strong></td>
<td valign="top" width="131"><strong>PKCOLUMNNAME </strong></td>
<td valign="top" width="145"><strong>FKQUALIFIERNAME</strong></td>
<td valign="top" width="125"><strong>FKOWNERNAME </strong></td>
<td valign="top" width="117"><strong>FKTABLENAME </strong></td>
<td valign="top" width="133"><strong>FKCOLUMNNAME </strong></td>
<td valign="top" width="77"><strong>KEYSEQ </strong></td>
<td valign="top" width="103"><strong>UPDATE RULE</strong></td>
<td valign="top" width="100"><strong>DELETE RULE</strong></td>
<td valign="top" width="152"><strong>FKNAME </strong></td>
<td valign="top" width="142"><strong>PKNAME </strong></td>
<td valign="top" width="128"><strong>SEVERABILITY </strong></td>
</tr>
<tr>
<td valign="top" width="149">QODBC</td>
<td valign="top" width="134">&nbsp;</td>
<td valign="top" width="117">customer</td>
<td valign="top" width="131">ListID</td>
<td valign="top" width="145">QODBC</td>
<td valign="top" width="125">&nbsp;</td>
<td valign="top" width="117">Invoice</td>
<td valign="top" width="133">CustomerRefListID</td>
<td valign="top" width="77">1</td>
<td valign="top" width="103">3</td>
<td valign="top" width="100">3</td>
<td valign="top" width="152">Invoice_Customer_Link</td>
<td valign="top" width="142">Customer_PrimaryKey</td>
<td valign="top" width="128">7</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p><span class="style9"><strong>SP_PARAMETERS </strong></span></p>
<p><strong>Instruction: </strong>Returns a recordset with the list of the detailed information of parameters of each report.</p>
<p><strong>Example: </strong>sp_parameters</p>
<p><strong>Returns: </strong></p>
<table border="1" width="1995" cellspacing="0" cellpadding="0">
<tbody>
<tr class="style10">
<td valign="top" width="123"><strong>QUALIFIERNAME </strong></td>
<td valign="top" width="101"><strong>OWNER NAME</strong></td>
<td valign="top" width="94"><strong>TABLE NAME</strong></td>
<td valign="top" width="138"><strong>PARAMETER NAME</strong></td>
<td valign="top" width="75"><strong>TYPE </strong></td>
<td valign="top" width="106"><strong>TYPE NAME</strong></td>
<td valign="top" width="106"><strong>PRECISION </strong></td>
<td valign="top" width="105"><strong>LENGTH </strong></td>
<td valign="top" width="106"><strong>DEFAULT </strong></td>
<td valign="top" width="106"><strong>DATATYPE </strong></td>
<td valign="top" width="156"><strong>DATETIME_SUBTYPE </strong></td>
<td valign="top" width="167"><strong>VALUES </strong></td>
<td valign="top" width="100"><strong>VALUE_TYPE </strong></td>
<td valign="top" width="119"><strong>LOOKUP_VALUE </strong></td>
<td valign="top" width="49"><strong>LOOKUP_DISPAY_FILED </strong></td>
<td valign="top" width="102"><strong>DEFAULT_VALUE </strong></td>
<td valign="top" width="102"><strong>REMARKS </strong></td>
<td valign="top" width="102"><strong>ADVANCED </strong></td>
</tr>
<tr>
<td valign="top" width="123">QODBC</td>
<td valign="top" width="101">&nbsp;</td>
<td valign="top" width="94">APAgingDetail</td>
<td valign="top" width="138">DateFrom</td>
<td valign="top" width="75">9</td>
<td valign="top" width="106">DATE</td>
<td valign="top" width="106">10</td>
<td valign="top" width="105">6</td>
<td valign="top" width="106">&nbsp;</td>
<td valign="top" width="106">9</td>
<td valign="top" width="156">1</td>
<td valign="top" width="167">{d'yyyy-mm-dd'}</td>
<td valign="top" width="100">Date</td>
<td valign="top" width="119">&nbsp;</td>
<td valign="top" width="49">&nbsp;</td>
<td valign="top" width="102">&nbsp;</td>
<td valign="top" width="102">DateFrom</td>
<td valign="top" width="102">0</td>
</tr>
<tr>
<td valign="top" width="123">QODBC</td>
<td valign="top" width="101">&nbsp;</td>
<td valign="top" width="94">APAgingDetail</td>
<td valign="top" width="138">DateTo</td>
<td valign="top" width="75">9</td>
<td valign="top" width="106">DATE</td>
<td valign="top" width="106">10</td>
<td valign="top" width="105">6</td>
<td valign="top" width="106">&nbsp;</td>
<td valign="top" width="106">9</td>
<td valign="top" width="156">1</td>
<td valign="top" width="167">{d'yyyy-mm-dd'}</td>
<td valign="top" width="100">Date</td>
<td valign="top" width="119">&nbsp;</td>
<td valign="top" width="49">&nbsp;</td>
<td valign="top" width="102">&nbsp;</td>
<td valign="top" width="102">DateTo</td>
<td valign="top" width="102">0</td>
</tr>
<tr>
<td valign="top" width="123">QODBC</td>
<td valign="top" width="101">&nbsp;</td>
<td valign="top" width="94">APAgingDetail</td>
<td valign="top" width="138">DateMacro</td>
<td valign="top" width="75">12</td>
<td valign="top" width="106">VARCHAR</td>
<td valign="top" width="106">4096</td>
<td valign="top" width="105">4096</td>
<td valign="top" width="106">&nbsp;</td>
<td valign="top" width="106">12</td>
<td valign="top" width="156">&nbsp;</td>
<td valign="top" width="167">|All|Today|ThisWeek|This&hellip;.</td>
<td valign="top" width="100">FixedList</td>
<td valign="top" width="119">&nbsp;</td>
<td valign="top" width="49">&nbsp;</td>
<td valign="top" width="102">&nbsp;</td>
<td valign="top" width="102">DateMacro</td>
<td valign="top" width="102">0</td>
</tr>
<tr>
<td valign="top" width="123">&hellip;</td>
<td valign="top" width="101">&hellip;</td>
<td valign="top" width="94">&hellip;.</td>
<td valign="top" width="138">&hellip;</td>
<td valign="top" width="75">&hellip;</td>
<td valign="top" width="106">&hellip;</td>
<td valign="top" width="106">&hellip;</td>
<td valign="top" width="105">&hellip;</td>
<td valign="top" width="106">&hellip;</td>
<td valign="top" width="106">&hellip;</td>
<td valign="top" width="156">&hellip;</td>
<td valign="top" width="167">&hellip;</td>
<td valign="top" width="100">&hellip;</td>
<td valign="top" width="119">&hellip;</td>
<td valign="top" width="49">&hellip;</td>
<td valign="top" width="102">&hellip;</td>
<td valign="top" width="102">&hellip;</td>
<td valign="top" width="102">&hellip;</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p><span class="style9"><strong>SP_STATISTICS</strong><strong>&nbsp;</strong></span> <em>tablename </em></p>
<p><strong>Instruction: </strong>Returns a recordset with the list of all the indexes and a list of statistical information of the specified table or indexed view.</p>
<p><strong>Example: </strong>sp_statistics Customer</p>
<p><strong>Returns: </strong></p>
<table border="1" width="1322" cellspacing="0" cellpadding="0">
<tbody>
<tr class="style10">
<td valign="top" width="123"><strong>QUALIFIERNAME </strong></td>
<td valign="top" width="101"><strong>OWNER NAME</strong></td>
<td valign="top" width="94"><strong>TABLE NAME</strong></td>
<td valign="top" width="91"><strong>NONUNIQUE </strong></td>
<td valign="top" width="163"><strong>INDEXQUALIFIERNAME</strong></td>
<td valign="top" width="163"><strong>INDEXNAME </strong></td>
<td valign="top" width="50"><strong>TYPE </strong></td>
<td valign="top" width="96"><strong>SEQININDEX </strong></td>
<td valign="top" width="108"><strong>COLUMNNAME </strong></td>
<td valign="top" width="86"><strong>COLLATION </strong></td>
<td valign="top" width="100"><strong>CARDINALITY </strong></td>
<td valign="top" width="64"><strong>PAGES </strong></td>
<td valign="top" width="55"><strong>FILTER </strong></td>
</tr>
<tr>
<td valign="top" width="123">QODBC</td>
<td valign="top" width="101">&nbsp;</td>
<td valign="top" width="94">Customer</td>
<td valign="top" width="91">0</td>
<td valign="top" width="163">&nbsp;</td>
<td valign="top" width="163">Customer_PrimaryKey</td>
<td valign="top" width="50">3</td>
<td valign="top" width="96">1</td>
<td valign="top" width="108">ListID</td>
<td valign="top" width="86">A</td>
<td valign="top" width="100">&nbsp;</td>
<td valign="top" width="64">&nbsp;</td>
<td valign="top" width="55">&nbsp;</td>
</tr>
<tr>
<td valign="top" width="123">QODBC</td>
<td valign="top" width="101">&nbsp;</td>
<td valign="top" width="94">Customer</td>
<td valign="top" width="91">1</td>
<td valign="top" width="163">&nbsp;</td>
<td valign="top" width="163">Customer_TimeModified</td>
<td valign="top" width="50">3</td>
<td valign="top" width="96">1</td>
<td valign="top" width="108">TimeModified</td>
<td valign="top" width="86">A</td>
<td valign="top" width="100">&nbsp;</td>
<td valign="top" width="64">&nbsp;</td>
<td valign="top" width="55">&nbsp;</td>
</tr>
<tr>
<td valign="top" width="123">&hellip;</td>
<td valign="top" width="101">&hellip;</td>
<td valign="top" width="94">&hellip;</td>
<td valign="top" width="91">&hellip;</td>
<td valign="top" width="163">&hellip;</td>
<td valign="top" width="163">&hellip;</td>
<td valign="top" width="50">&hellip;</td>
<td valign="top" width="96">&hellip;</td>
<td valign="top" width="108">&hellip;</td>
<td valign="top" width="86">&hellip;</td>
<td valign="top" width="100">&hellip;</td>
<td valign="top" width="64">&hellip;</td>
<td valign="top" width="55">&hellip;</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p>Keywords:&nbsp;last insert id</p>]]></content:encoded>
</item>
</channel>
</rss>