local connect to remote mssql database

Problems with the Windows version of XAMPP, questions, comments, and anything related.

local connect to remote mssql database

Postby POP » 26. March 2008 09:07

Is it possible to connect from the local server to a remote database? (mssql)

I am running XP and XAMPP (basic package) version 1.6.6a .

My connection string:

$db = mssql_connect("remote ip", "username", "pass") or die("Could not connect to the MSSQL server!");
mssql_select_db("dbname", $db) or die("Could not connect to the database!");

This works on my remote server but not locally. any suggestions?

Tx :)
POP
 
Posts: 7
Joined: 28. February 2008 16:09

Postby Wiedmann » 26. March 2008 14:08

This works on my remote server but not locally

Why not? (error message, mssql_get_last_message, ...)
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby POP » 26. March 2008 14:10

error message: Unable to connect to server: ipaddress
POP
 
Posts: 7
Joined: 28. February 2008 16:09


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 49 guests