Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Passthrough
Message
De
07/11/2001 09:45:14
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
06/11/2001 21:09:24
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00578326
Message ID:
00578480
Vues:
14
>I need to update a table in a remote database. My code seems to be okay. The remote table displays as a cursor in my current app but is blank. Here is the code. By the way there is a record with sys(0) in it.
>
>Public gnIsRung2
>pcd1a2 = "'" + sys(0) + "'"
>f1 = "supcomid, isrung, actdate"
>
>gnIsRung2 = SQLCONNECT('pdmsupflag')
> isrung1 = "Select * From pdmsupt Where AllT(supcomid) == &pcd1a2"
>
>
> =SQLEXEC(gnIsRung2, isrung1, 'cRuning2')
> =CURSORSETPROP("Tables" , "pdmsupt")
> =CURSORSETPROP("UpdateNameList" , "supcomid pdmsupt.supcomid, isrung pdmsupt.isrung, actdate pdmsupt.actdate")
> =CURSORSETPROP("KeyFieldList", "supcomid, isrung, actdate")
> =CURSORSETPROP("UpdatableFieldList", f1)
> =CURSORSETPROP("SendUpdates", .T.)
>Browse
>Go Top
>Use
>=SQLDISCONNECT(gnIsRung2)

Steven,
Assuming this is SQL server what is 'AllT()' and == ? AFAIK they don't exist in SQL server. Are you sure result set is from backend w/o error (if SQL server)?
Instead = would work the way you thought (might not be depending on ansi_padding -default off- and store type). SQL server wouldn't autotrim only if it's char and not null (for char,varchar,nvarchar).
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
Répondre
Fil
Voir

Click here to load this message in the networking platform