Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sqlconnection
Message
From
08/07/2010 11:53:53
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
08/07/2010 05:45:46
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01471821
Message ID:
01471861
Views:
40
>>The windows firewalls are disabled on the both computers and on the other 2 (those that can connect) the firewall is enabled... so i don't think there is a firewall problem. We have writen the program so it makes a connection via SQLSTRINGCONNECT(). the connection string is in a init file so thats for every pc the same.
>>
>>I just did the test with the odbc connection to see where the prob could be. when i make a connection with dynamic ip via tcp/ip for those 2 pcs i can't make a connection on the other 2 it works fine. when i chose to make a conneciton via tcp/ip and specify the port (1433) i get an instand connection so i guess the problem with the SQLSTRINGCONNECT() must be the same as the problem with the odbc connection.
>>
>>So if possible i want to put the tcp port in my SQLSTRINGCONNECT() but i don't know if that is possible
>
>did you try the PORT-Parameter (This comes from foxite.com)
>
>SQLSTRINGCONNECT("Driver={PostgreSQL};Server=127.0.0.1;Port=5432;Database=zain;Uid=postgres;Pwd=Pubb@834f")

I didn't know about this parameter, but I have a case where this works:

...;server=192.168.1.202,1433;...

For some reason, nothing else worked there (and I wasn't there to watch over the IT guy trying things out), but this did. My 0.02 of your currency of choice.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform