Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Idiot guide to using remote tables
Message
De
15/11/2003 12:50:46
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
15/11/2003 12:34:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00849959
Message ID:
00850273
Vues:
16
>>
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform