Hi, If your MS SQL Client is configured to use a non TCP/IP protocol as the default protocol you cant connect using ip addresses. If it uses Named Pipes you have to use the netbios name of the server or ask your ISP to configure a client connection for you, using a name (that you then use as first param in mssql_connect) and the protocol that they select.
- Frank > I've been doing this: > > <? > $cn=mssql_connect (<IP address>, <UID>, <PWD>); > mssql_select_db(<db> , $cn); > ?> > > And it works like a dream on servers over which I have control. My ISP > supports PHP4 (on Windows) and Ms Sql Server. They setup a db for me which > I can connect to using Enterprise Manager. No matter how I cast > mssql_connect(), thought, I can't get to their server from a script. I've > tried names and ip addresses. Phpinfo() shows mssql extensions. > > Is there some other way I can connect? > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]