Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP + MS SQL ... incredible behavior
Message
De
13/09/2002 20:52:20
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
13/09/2002 12:17:06
Emanuele Bonin
EB Soluzioni Informatiche
Tezze S/B, Italie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00700225
Message ID:
00700424
Vues:
11
>I found an incredible behavior of SQL + VFP.
>follow the steps:
>1) Craete a little on MSSQLServer like this
> create view vdummy as select * FROM sysobjects where 1=0
>2) from vfp use this simple code (i'm usign vfp 7)
>TEXT TO cSample NOSHOW
>--vDummy
>DROP VIEW vDummy
>ENDTEXT
>
>3) create a connection to SQL SERVER from VFP and set nHandle like sql connection handle
>
>4) issue this command on VFP: SQLEXEC(nHandle, cSample)
>
>Now if you see the database you can notice that the view vDummy isn't dropped.
>
>But if you capture the code between TEXT... ENDTEXT and execute the script on SQL analyzer the view will be drop.

"Capture" as in "select the text in vfp editor and press ctrl+c" or setting _cliptext=cSample in command window, having suspended after the EndText? The second may show whether the crlf between the lines was really there. If it wasn't, it may have been understood as a single line, i.e. just a comment. Try inserting a blank line before the drop command.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform