Seite 2 von 2

Verfasst: 27.10.2003 17:18
von Misr
Nein wir sprechen hier von einem 2000er!

Verfasst: 27.10.2003 17:25
von itst
Datenbanktyp: SQL Server 7
Wenn PHP korrekt auf dem IIS installiert ist (also als ISAPI, nicht als CGI) und Du von PHP aus auf dem SQL Server connecten kannst, liegt es wohl an phpBB. Soweit ich gesehen habe, läuft phpBB mit SQL Server 2000 nur über ODBC...

http://www.phpbb.com/phpBB/viewtopic.ph ... mssql+2000

Verfasst: 27.10.2003 17:28
von PhilippK
Dazu das PHP-Manual in den Kommentaren:
To connect named instance, you have to specify the port number for name instance.
This document help you find the instance port number.

HOWTO: Connect to a SQL Server 2000 Named Instance with JDBC
( http://support.microsoft.com/default.as ... us;Q313225 )

To find the SQL Server instance port number, follow these steps: ...blahblahblah...
oder

Gruß, Philipp
>> Problems With Multiple Instances <<

If you are having problems to connect PHP 4.x to MSSQL 2000 on Win2K, there is a simple way to solve it:

Open the Client Network Utility and do the following:

1. Add a new Alias choosing Named Pipes
2. Type in the ‘Alias’ field (anything you want): CONN1
3. Erase ‘Server field’ and type exactly: SERVER_NAME\INSTANCE_NAME

The field ‘Pipe Name’ should be: \\SERVER_NAME\pipe\MSSQL$INSTANCE_NAME\sql\query

Now, in PHP, use:

mssql_connect('CONN1', 'username', 'password');
or
mssql_pconnect('CONN1', 'username', 'password');

Regards
Guilherme Cruz
oder
Problems using mssql_connect with MSSQL 2000.

You have to:

1 - have installed MSSQL 2000 Client on the server that run PHP. This allows to use the libraries of MSSQL.

2 - when you use mssql_connect the parameter SERVERNAME has to be SERVERNAME\INSTANCE.
Ej: mssql_connect("MYSERVER\\MYINSTANCE","USER","PASWWORD")

NOTE the use of \\ intead of \, because this is escape caracter. This is very important!!

If you dont have configured instances on your server use as instance the name of the server.
Ej: mssql_connect("MYSERVER\\MYSERVER","USER","PASWWORD")
Einer der Wege sollte vermutlich funktinonieren. Der letzte erscheint mir dabei der eleganteste :-)

Gruß, Philipp

Verfasst: 27.10.2003 17:32
von Misr
Vielen Dank euch allen. Ich werde auf jeden Fall die 3 dinge mal versuchen. Ansonsten werde ich wohl oder übel den beschwerlichen weg über ODBC wählen.
Ich melde mich wieder wenn es geht oder nicht :-)! Ich hoffe mal schon :lol:

Verfasst: 28.10.2003 18:32
von itst
Viel Erfolg! Und bitte berichte hier, ob es geklappt hat oder nicht. Leider hat nicht jeder einen MS SQL Server zum Testen/Rumspielen ,-)

Verfasst: 30.10.2003 08:30
von Misr
Ja ich habe es soeben geschaft. Aber ich konnte eigentlich keine der Lösungen gebrauchen. Der entscheidende hint ist dabei das es offenbar, ich habe jetzt 3 ganze Tage gebastelt, nur über ODBC funktioniert.
Bei HOST / DSN trägt man den ODBC Namen ein, und wählt als DB nicht MSSQL 2000 sondern MS SQL (ODBC). Dann funktioniert es :-)!

Danke euch allen trotzdem tausend mal :-)!