Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Special characters and SQL Server
Message
From
10/06/2009 16:57:02
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01405053
Message ID:
01405060
Views:
51
>>Hi All
>>
>>I use VfpEncryption.fll to encrypt some of the data. When I try to upload a table, which contains the encrypted information onto a MSSQL database, the insert is failed.
>>
>>Here is my insert command
>>
>>TEXT TO lcCommand NOSHOW TEXTMERGE 
>>	INSERT INTO GENERALSETUP (chaudnomen1)) VALUES ('<<m.chaudnomen1>>')
>>ENDTEXT 	
>>lr = SQLEXEC(Handle, lcCommand) 
>>
>>If I STRTOFLE(lcCommand,…) here is what the command looks like
>>INSERT INTO GENERALSETUP (chaudnomen1)) VALUES ('I­õUú.á÷þ_ :_¨âÍ_²UAÝ@Š
>>ÄžÂ_.fðgÅÁª’Nº
>>)Í4_€ì_oh8‹‹…V_þ;4`7ç_6à')
>>
>>What do I need to do to make it load into my MSSQL data?
>>
>>Thank you
>>Yelena
>
>Just a first idea that comes to mind - can you pass m.ChaudNomen1 as a parameter instead of the string concatenation?

Thank you Naomi for the quick reply.
Do you mean using some sort of stored procedure instead of the sql passthrough? The problem is that this is my upsizing routine and my SQL database is just created in the same program and now I am uploading data.

Yelena
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform