Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL PT returns a CAST AS CHAR(100) as memo, need char fl
Message
From
18/12/2006 06:30:54
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
Database:
MS SQL Server
Miscellaneous
Thread ID:
01178491
Message ID:
01178505
Views:
20
>Hi Cetin
>
>>I don't know then. It works pretty well for me.
>
>Do you put the CURSORSETPROP() call before or after the SQL PT? Plus is your cursor a pre-existing cursor, created in VFP and then populated using SQL-PT (that is if this is possible)?

It's before. It sets global cursor property for SQLExec().

No it's not an existing cursor, it's an SPT cursor. ie:
lnHandle = SQLSTRINGCONNECT("Driver=SQL server;server=(local);Trusted_connection=yes")
CURSORSETPROP("UseMemoSize",255,0) && this is default if you don't set at all
SQLEXEC(m.lnHandle,"select LastName,FirstName,cast(Notes as char(100)) as Notes"+;
  " from Northwind.dbo.employees","myEmployee")
SQLDISCONNECT(m.lnHandle)
browse
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform