Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating Table via SPT
Message
 
To
04/09/2002 09:20:44
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00696566
Message ID:
00696600
Views:
11
Try using CHAR instead of C
cObjtSQLcommand = "Create Table MyTable (Name CHAR(40))"
>Hi,
>
>I'm trying to create a table using SPT, with the sequence below. It does nothing, even returns an error.
>
>Am I doing something wrong or it just can't be done?
>
>TIA,
>
>Fernando
>
> nSQLHandle = SqlConnect ("MyVFPDataSource")
>
> If nSQLHandle = -1
>    MessageBox ("Connection failed")
>    Return
> endif
>
> cObjtSQLcommand = "Create Table MyTable (Name C(40))"
>
> If SqlExec (nSQLHandle, cObjtSQLcommand) <> 1
>    MessageBox ("SqlExec error")
> endif
>
> SqlDisconnect (nSQLHandle)
>
Hector Correa
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform