>I need to establish a connection to SQL 2008 R2 in VFP from the command window .,..
>
>Could you refresh my memory on getting a connection in VFP to a system or file dsn from the command window?
>
>I have a system dsn ITF that uses a trusted connection (perhaps VFP is not seen as such?) (SQL Server Native Client 10.0)
>
>nConnectionHandle = SQLCONNECT('ITF') gets a -1
>I created a file DSN and put in in my VFP path ITFDSN but nConnectionHandle = SQLCONNECT('ITFDSN') gets a -1 as well
>
>Am I doing something boneheaded or does this stuff not allow trusted connection or ...
>
>TIA
What is the error?
When you use any of SQL=* function you ALWAYS should check what the function returns and if it returns -1 check the error with AERROR function.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.