Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Idiot guide to using remote tables
Message
From
15/11/2003 12:50:46
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
15/11/2003 12:34:37
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00849959
Message ID:
00850273
Views:
18
>>
>>Prepare it before the call if you don't want it to be asked.
>>
>>m.Whatever = 'myCryptedKey'
>>m.myRealKey = 'one of my keys'
>>SQLEXEC(gnhandle,"update vizkeys set crypt_key=?m.whatever where realkey=?m.myRealKey ")
>>
>>Cetin
>
>tried that:
>
>m.whatever='arbitrary string'
>SQLPREPARE(gnhandle,"update vizkeys set crypt_key=?m.whatever where realkey='one of my keys' ","real")
>SQLEXEC(gnhandle)
>
>and the SQLEXEC line still stopped and asked for the value of m.whatever...

Harry,
Assuming your sample Notwhwind data employees table accept nulls :
local lnHandle
lnHandle=SQLStringConnect('DRIVER=SQL Server;'+;
        'SERVER=servername;Trusted_connection=Yes')
For ix=1 to 5
  SQLExec(lnhandle,;
   "insert into Northwind.dbo.employees (FirstName,LastName)"+;
   " values ('Later','ChangeMe')")
endfor
SQLExec(lnHandle,'select * from Northwind.dbo.employees')
browse
m.whatever='arbitrary name'
SQLPrepare(lnhandle,"update Northwind.dbo.employees"+;
        " set LastName=?m.whatever where FirstName='Later'","real")
SQLEXEC(lnhandle)
SQLExec(lnHandle,'select * from Northwind.dbo.employees')
SQLDisconnect(lnHandle)
Select real
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