What is srv\ins ? It should be a hostname or ip address.
pritaeas
Posting Expert
5,484 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
pritaeas
Posting Expert
5,484 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
rajarajan07
Nearly a Posting Virtuoso
1,447 posts since May 2008
Reputation Points: 167
Solved Threads: 239
iam not tried because i already have 231 php page contain mssql_query() function that should be connection by mssql_connect() function , this code i wrote it run in all company branches successfully but one branch have instance for sql server that made problem
Perhaps the user you are trying to connect with does not have sufficient rights. Seeing that only branch has problems with it, it does not appear to be a coding error. More likely a configuration or rights issue on SQLServer or some firewall misbehaving.
Can you change your die('Could not ...') to die(mssql_error()) and output what it says here. It should provide some additional information.
pritaeas
Posting Expert
5,484 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875