Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQLStringConnect() - working as .app, not as .exe
Message
From
04/07/2009 14:47:54
 
General information
Forum:
Visual FoxPro
Category:
Client/server
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows XP
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01410028
Message ID:
01410076
Views:
56
>>According to AError(), the connection attempt is timing out, which I suspected intuitively. The connection string looks correct, and when I switch back to compiling the application as an .app, it continues to work correctly. Most of the research I've done indicates that there's something going on at the server end, but that doesn't make sense in the context.
>>
>>Any thoughts?
>
>Are you sure that connection string is exactly the same in both cases?

Yes - I've verified that the connection string is both the same and correct.

I ran the application .exe inside VFP and it works correctly.The most recent time I ran the .exe independently, I used ODBC tracing, and got a SQL.LOG file that included the following:
2108            1654-b20	ENTER SQLDriverConnectW 
		HDBC                0098BD68
		HWND                00000000
		WCHAR *             0x6FD6B1C0 [      -3] <Invalid string length!>
		SWORD                       -3 
		WCHAR *             0x6FD6B1C0 
		SWORD                       -3 
		SWORD *             0x00000000
		UWORD                        0 <SQL_DRIVER_NOPROMPT>

2108            1654-b20	EXIT  SQLDriverConnectW  with return code -1 (SQL_ERROR)
		HDBC                0098BD68
		HWND                00000000
		WCHAR *             0x6FD6B1C0 [      -3] <Invalid string length!>
		SWORD                       -3 
		WCHAR *             0x6FD6B1C0 
		SWORD                       -3 
		SWORD *             0x00000000
		UWORD                        0 <SQL_DRIVER_NOPROMPT>
(2108.exe is the name of the application.)

Anyone know how to read this, and if so, what does it mean?
David M. Stowell
Ravenslake Consulting
Chicago, Illinois

e-mail: davidstowell@ravenslakeconsulting.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform