Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sql server - vfp how?
Message
From
12/04/2012 16:59:43
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
12/04/2012 11:21:14
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01541027
Message ID:
01541293
Views:
42
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform