Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sql server - vfp how?
Message
De
12/04/2012 16:59:43
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
12/04/2012 11:21:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01541027
Message ID:
01541293
Vues:
43
>I tried that but the inserts did not work.

whenever SqlExec() returns less than zero, it helps to stop your code (at least in development), and copy your SQL statement into _cliptext, then try it out in Query Analyzer, SSMS, Toad or what have you. If your command had too many question-mark-prefixed parameters, then the SQL Profiler will help - you can catch your command as it was received at the server, and then copy it and try it in QA, SSMS, Toad. That will also help you to understand what's VFP doing behind your back (ie. how does it automate those parameters).

>But now I have an even bigger problem
>yesterday i could connect to sqlserver just fine. today it times out
>
>
>strConnectionString	= [Driver={SQL Server};Server=OTT-LT1026;Database=kba_sql;Uid=sa;pwd=]
>strConnectionString	= [Driver={SQL Server};Server=OTT-LT1026;Database=kba_sql;Trusted Connection]
This should be a [...;Trusted_Connection=yes]

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