473,788 Members | 2,825 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

unable to connect to mssql server

Hello ,
i am moving my server (php,apache (wamp 2c)) to a new machine.
while executing my php file ,i get the warning : Warning :
mssql_connect() : unable to connect to server .....
i dont understand why. Because am running the same script on the old
machine and its working.

i think i forget to something in php.ini
which kind of setting did i forget?
Jun 2 '08 #1
2 3820
On 29 May, 12:49, yashiro <noum...@yahoo. frwrote:
Hello ,
i am moving my server (php,apache (wamp 2c)) to a new machine.
while executing my php file ,i get the warning : Warning :
mssql_connect() : unable to connect to server .....
i dont understand why. Because am running the same script on the old
machine and its working.

i think i forget to something in php.ini
which kind of setting did i forget?
Did your connection credentials maybe change on the new server?
Jun 2 '08 #2
On Thu, 29 May 2008 06:02:41 -0700 (PDT), Captain Paralytic wrote:
On 29 May, 12:49, yashiro <noum...@yahoo. frwrote:
>Hello ,
i am moving my server (php,apache (wamp 2c)) to a new machine.
while executing my php file ,i get the warning : Warning :
mssql_connect( ) : unable to connect to server .....
i dont understand why. Because am running the same script on the old
machine and its working.

i think i forget to something in php.ini
which kind of setting did i forget?

Did your connection credentials maybe change on the new server?
Especially if the connect parameters are still specifying "localhost" ...
Or specifying nothing at all.

--
"This system operates under martial law. The constitution is suspended. You
have no rights except as declared by the area commander. Violators will be
shot. Repeat violators will be repeatedly shot...." -from "A_W_O_L"
Jun 2 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
11197
by: EricP | last post by:
Hello, First, sorry for my bad English. Here is my problem: BoxA: XPpro + Apache + php (using php_mssql.php)+ ADOdb + MS SQL Server + My_Prog (using local MS SQL PUBS database) BoxB: NT4 + Apache + php (using php_mssql.php)+ ADOdb + My_Prog (using
0
1642
by: Moco | last post by:
Well I installed my first OLAP Server ever just yesterday, allright. I built my first cube with a data source from a MSSQL Server 2000 on the same machine, allright. I browsed the cube with Analysis Manager, allright. Then , my real goal: I want to connect to OLAP Server in much the same way as I use to do with SQL Server, that is from my Domino Web Server, through Lotus Connectors over OLE DB provider. I thought I just needed to adapt my...
2
1464
by: Anilkumar | last post by:
H friends I have a strange problem. i am trying to connect to my sqlserver from client machine to server machine But i am not able to connect to the server from the client machine. The strange thing is that i am able to connect through Named Pipes but not with TCP/IP and i get error SQL Server doesnot exit or access denied.
22
3275
by: Kristof Thys | last post by:
Hello, I'm developing a C# - windows forms application. To get some information for my application, I'm connecting to an URL, wich gives me XML generated using php. With 90% of the users, this code just works fine: WebRequest request = WebRequest.Create(URL);
4
4818
by: Khamal | last post by:
Hello.... My web service cannot connect to My MsSql DB. error message... ---------------------- An unhandled exception of type 'System.Web.Services.Protocols.SoapException' occurred in system.web.services.dll Additional information: Server was unable to process request. --> Login failed for user 'KHAMAL\ASPNET'.
3
3421
by: Uncle Sam | last post by:
Hi, Please confirm.. is it possible to connect to MSSQL server by executing a shell script on HP-UX (UNIX) platform. Regards, Uncle Sam
4
20273
by: aryan2cool | last post by:
hii all i am using php 5 and a warning has occured in my application " Warning: mssql_connect() : message: Login failed for user 'PAYDATA'. (severity 14) in C:\WINNT\Temp\tmpqjqokj.php on line 7 Warning: mssql_connect() : Unable to connect to server: 10.23.80.6 in C:\WINNT\Temp\tmpqjqokj.php on line 7"
0
2481
by: dreamer247 | last post by:
hii all i am working with mssql 2000 and after restoring a databas from device the warning is .. Warning: mssql_connect() : message: Cannot open user default database. Using master database instead. (severity 11) in C:\WINDOWS\Temp\tmpk50gud.php on line 11 Warning: mssql_select_db() : message: Server user 'cms' is not a valid user in database 'cms'. (severity 14) in C:\WINDOWS\Temp\tmpk50gud.php on line 21 Warning:...
1
1736
by: dreaken667 | last post by:
I've dealt with issues with not being able to connect to the database through PHP and know how to correct most of them fairly easily, however, I've got a really odd situation here. I'm running PHP 5.2.5, Apache 2.2.8, and SQL Server 2000 under Windows XP (don't laugh, I was given this setup and told to use it). The problem I have is that I don't have to issue a mssql_connect statement in order to run a query on the database. This poses a problem...
0
9656
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9498
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10366
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10175
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7518
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6750
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5399
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5536
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4070
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.