RaFa Team Member Joined Jan 24, 2009 Messages 785 Reaction score 484 Feb 7, 2019 #21 Basically we tried everything... enabling TCP/IP, named pipes, etc... everything that I have ever had issues with. Didn't work. @r00tme, @Dea7h ideas? Reactions: dota-sdso
Basically we tried everything... enabling TCP/IP, named pipes, etc... everything that I have ever had issues with. Didn't work. @r00tme, @Dea7h ideas?
DarkMaster Administrator Staff member Joined Apr 8, 2008 Messages 2,465 Reaction score 11,167 Feb 7, 2019 #22 config.php PHP: $dbc = mssql_connect($web['dbhost'], $web['dbuser'], $web['dbpassword']) or die("Couldn't connect to SQL Server!"); -> PHP: $dbc = mssql_connect($web['dbhost'], $web['dbuser'], $web['dbpassword']) or die("Couldn't connect to SQL Server! Error: " . mssql_get_last_message());
config.php PHP: $dbc = mssql_connect($web['dbhost'], $web['dbuser'], $web['dbpassword']) or die("Couldn't connect to SQL Server!"); -> PHP: $dbc = mssql_connect($web['dbhost'], $web['dbuser'], $web['dbpassword']) or die("Couldn't connect to SQL Server! Error: " . mssql_get_last_message());
D dota-sdso Well-Known Member Joined Apr 30, 2014 Messages 590 Reaction score 822 Feb 7, 2019 #23 Did you try with PC name instead of IP address? Also did you install the SQL server in the a default instance as MSSQL. That may become a problem as well.
Did you try with PC name instead of IP address? Also did you install the SQL server in the a default instance as MSSQL. That may become a problem as well.
ivowe3 Wiki Joined Apr 1, 2009 Messages 1,220 Reaction score 1,281 Feb 12, 2019 #24 try $web['dbhost'] = '127.0.0.1'; => $web['dbhost'] = '.\sqlexpress';
E EddyM New Member Joined Feb 2, 2019 Messages 17 Reaction score 0 Feb 12, 2019 #25 thanks everyone for help. everything it's ok now
Gasolincho Well-Known Member Joined May 15, 2008 Messages 683 Reaction score 693 Jun 11, 2019 #26 Hello mate, Do not remove any DIE functions as they will save your website in case of emergency or DDoS attack! Find Code: $dbc = mssql_connect($web['dbhost'], $web['dbuser'], $web['dbpassword']); die("Couldn't connect to SQL Server!"); $selected = mssql_select_db($web['database'],$dbc) or die("Couldn't open database"); Replace with Code: $dbc = sqlsrv_connect($web['dbhost'], $web['dbuser'], $web['dbpassword']); die("Couldn't connect to SQL Server!"); $selected = mssql_select_db($web['database'],$dbc) or die("Couldn't open database");
Hello mate, Do not remove any DIE functions as they will save your website in case of emergency or DDoS attack! Find Code: $dbc = mssql_connect($web['dbhost'], $web['dbuser'], $web['dbpassword']); die("Couldn't connect to SQL Server!"); $selected = mssql_select_db($web['database'],$dbc) or die("Couldn't open database"); Replace with Code: $dbc = sqlsrv_connect($web['dbhost'], $web['dbuser'], $web['dbpassword']); die("Couldn't connect to SQL Server!"); $selected = mssql_select_db($web['database'],$dbc) or die("Couldn't open database");