View Single Post
Old 15.07.2007, 04:16   #5
moogle
Архивный участник
 
Join Date: Jul 2007
Posts: 23
Default

I've been messing around with this quite a bit and I've figured most errors new server devs would get.

Sometimes if your connecting to the local pc it still gives the error unable to connect. Make sure Authentication mode is on SQL Server + Windows. Do that by logging into the db, right click the db, goto the security tab and its there. If you still get the error, then change the server address to your pc name. for example mine is "server-pc", so replace "localhost" or "127.0.0.1" with that and you will be able to connect. I still havent managed to change the username from sa but if you have thats great.

Since you could register before and now you have the firewall on you cant, I'm guessing its the port, MSSQL uses port 1433, open that in your firewall if you want. You can change it also somewhere but I dont know the exact details. Also Goto Start > SQL Server 2005 > Config Tools > Surface Area Configuration, click surface area config for services and connections expand the database engine, click settings and you can change the connection type, when you do you will have to restart the database engine. do that by logging in and right clicking the db and choosing restart.

when i mean logging in i mean into sql server management studio.

hope this helps you, most likely you've already fixed it but anyone else who gets the same probs will see this

EDIT: Oh yea also try copying the dll i posted into your php dir, its a fix for connecting to sql server, i can connect to sql server using easyphp 2 which has php5 installed.

Вложения из исходного сообщения (сами файлы в копии отсутствуют):
ntwdblib.rar — 100893 байт
moogle is offline