Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What port does VFP use for SQL Connection
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01669000
Message ID:
01669017
Views:
63
>Got a VFP app that I'd like to take to a SQL backend, but it won't connect. Says everything is fine, but when I try to do anything on the connection it gives me an error that basically says 'Not connected'
>
>Research on that error generally comes back to 'port issue' so, what port does VFP default to use and is it possible to change it?

Is this a connection to a remote machine? If so make sure the remote machine enables remote connections - by default that's disabled. You may also have to check what port the server is listening on - typically that's 1433, but it's changeable from the server end. You can specify a different port as part of the connection string (ie. ipordomain:port syntax).

Best thing to do is connect with an interactive SQL client like SQL Server Management studio and see whether that works first. You might get additional error info in that case as well.

+++ Rick ---
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Reply
Map
View

Click here to load this message in the networking platform