Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VFP ODBC driver -- turn off SET ANSI default??

Status
Not open for further replies.

kakmouth

Programmer
Oct 26, 2001
20
using a VFP ODBC driver with SQL server, i realized that the SET ANSI option is defaulted to ON which causes the shorter of 2 comparison strings to be padded, as to create 2 strings of equal length. is there any way to turn this option off, either within the SELECT statement or elsewhere??? any help would be appreciated...
 
You might try issuing [tt]SQLExec(nHandle, "set ansi off")[/tt] after issuing the SQLConnect()/SQLStringConnect(). I've not had much luck doing this with Sybase, but in theory it is a persistent connection to the database, so any SET settings should "stick" while that connection is active. -----------------
Robert Bradley
use coupon code "TEKTIPS" for 15% off at:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top