RES: RES: mssql_connect() - Unable to connect to server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I got it!!!!!!!!!!

:-)

My mistake... Sorry......

$conn = mssql_connect(" '139.82.24.185' , 'webusa', '1234' ");

Everything was a big string, and that is wrong for MSSQL.

I come from Linux+PHP+Postgres, and pg_connect receives one big string.

Sorry and tks everyone.

Felipe

-----Mensagem original-----
De: Felipe Nascimento [mailto:felipenasc@inf.puc-rio.br] 
Enviada em: terça-feira, 21 de outubro de 2003 14:29
Para: php-windows@lists.php.net
Assunto: RES: RES:  mssql_connect() - Unable to connect to
server


Here is the complete message.

Warning: mssql_connect(): Unable to connect to server: '192.168.1.115' ,
'sa', '' in C:\Inetpub\timesheet\lib\class_dbconnect.inc on line 14

tks
Felipe


-----Mensagem original-----
De: Svensson, B.A.T. (HKG) [mailto:B.A.T.Svensson@lumc.nl] 
Enviada em: terça-feira, 21 de outubro de 2003 10:28
Para: php-windows@lists.php.net
Assunto: Re: RES:  mssql_connect() - Unable to connect to
server


The error message "Warning: MS SQL: Unable to connect to server:" 

Includes an colon (:) in the end which suggest that there is some
additional error message supplied to the. Would it be possible to find
out what that says? otherwise one can start to speculate in hardly
anything, like broken network connectivity due to firewall settings,
etc, etc.

On Tue, 2003-10-21 at 16:02, Felipe Nascimento wrote:
> I guess they are, as there is SQL Query Analyser working. Or is there
> anything else I should do?
> 
> Isn´t ntwdblib.dll responsible for that?
> 
> Tks
> Felipe
> 
> -----Mensagem original-----
> De: Luis Ferro [mailto:lferro@teladigital.net]
> Enviada em: terça-feira, 21 de outubro de 2003 09:32
> Para: php-windows@lists.php.net
> Assunto: Re:  mssql_connect() - Unable to connect to server
> 
> 
> The SQL Server wraper functions in PHP are based on SQL Server Client 
> DLL's which can or can't be already on the system.
> 
> I would check to see if they are present in the machine that is
> running
> PHP...
> 
> Cheers and good luck ;)
> Luis Ferro
> TelaDigital.net
> 
> Felipe Nascimento wrote:
> 
> >Hi all,
> >
> >I´ve seen some coments on the subject already, but I couldn´t put it
> >to
> 
> >work.
> >
> >My set up is: Php 4.3.3 under Win - MSSQL 2000 - Win 2000 server -
> >IIS
> >5.0. All in the same server.
> >
> >php_mssql.dll is set as an extension, ntwdblib.dll is in the system32

> >directory.
> >
> >My call to mssql_connect is:
> >mssql_connect("'MY_IP_ADRESS', 'user', ''"); (the password is empty).
> >
> >The Warning message:
> >"Warning: MS SQL: Unable to connect to server:" ....
> >
> >Did I forget anything?
> >
> >Is there something I have to do in the SQL Server? I am not used to
> >MS
> >SQL Server, but I added a user with read and write privileges. Is
there
> 
> >something else?
> >
> >Tks
> >Felipe
> >
> >---
> >Outgoing mail is certified Virus Free.
> >Checked by AVG anti-virus system (http://www.grisoft.com).
> >Version: 6.0.528 / Virus Database: 324 - Release Date: 16/10/2003
> > 
> >
> >  
> >
> 
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.528 / Virus Database: 324 - Release Date: 16/10/2003
>  
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.528 / Virus Database: 324 - Release Date: 16/10/2003
>  

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.528 / Virus Database: 324 - Release Date: 16/10/2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.528 / Virus Database: 324 - Release Date: 16/10/2003
 

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.528 / Virus Database: 324 - Release Date: 16/10/2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.528 / Virus Database: 324 - Release Date: 16/10/2003
 

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux