|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Couldn't connect yet.
Hey,
Still I couldn't connect to my MS SQL server. PHP Code:
The output on execution: Something went wrong while connecting to MS SQL Microsoft SQL server 2005 is installed in my laptop. How to fix this error? |
|
#2
|
|||
|
|||
|
the format of the server name is wrong. it needs to be "serverName\serverInstanceName". If that doesn't help, then if the web server and sql server are on different boxes you might have to enable remote connections to the sql box.
|
|
#3
|
|||
|
|||
|
Hey,
What does serverInstanceName all about? The web server ( I presume Apache here ) is on my laptop. So from my laptop I'm trying to connect to SQL server which is on different machine through this PHP script. How should I enable remote connections? |
|
#4
|
|||
|
|||
|
the server instance name is the name of the server that was setup when installing it. SQL server supports multiple installations on one computer by giving them an instance name.
I'm just going off what the user notes say in the php manual page for mssql. http://www.php.net/mssql |
|
#5
|
|||
|
|||
|
Hey,
No problem I was able to connect. A very silly mistake |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Database Help > Couldn't connect yet. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|