Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sql - insert doesn't work for numeric value?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP1
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01001142
Message ID:
01001217
Views:
15
Problem solved.

=SQLExec(gnConnectionHandle, "INSERT INTO [TRANSFILE].[DBO].[ADJFILE] (DESCRIPTION) VALUES ('&cDescription') " ) <--- this command works and saves the record

=SQLExec(gnConnectionHandle, "INSERT INTO [TRANSFILE].[DBO].[ADJFILE] (TNUMBER) VALUES (?nTNumber) " ) <---- this works now

I just remove the ' ' and replace & with ? for numberic value and it is working now.

Thanks Borislav, Tore and Sergey!
Previous
Reply
Map
View

Click here to load this message in the networking platform