473,800 Members | 2,406 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

unable to connect with mssql_connect()

9 New Member
hii all

i am using php 5 and a warning has occured in my application

"
Warning: mssql_connect() [function.mssql-connect]: message: Login failed for user 'PAYDATA'. (severity 14) in C:\WINNT\Temp\t mpqjqokj.php on line 7

Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: 10.23.80.6 in C:\WINNT\Temp\t mpqjqokj.php on line 7"


any suggestions??

regards

Aryan
Sep 13 '07 #1
4 20274
ak1dnar
1,584 Recognized Expert Top Contributor
Check the user name and password again.

Thread title [login failed...need help] changed. Do not use "need help" with your thread titles.
Sep 13 '07 #2
webandwe
142 New Member
I found that usally the DB or the server host is incorrect.

Find out from your hosting company what the details must be?

Example of DB

1.yourdomain_co m_-_yourdb
2.yourdb

And your serverhost

1.localhost
2 292.282.29
3. nk1.222.ns.host

Hope you come right.

Regards
Sep 13 '07 #3
aryan2cool
9 New Member
thank you guys.. that problem is solved. but now i am getting a new warning in different link...


Warning: mssql_connect() [function.mssql-connect]: message: Login failed for user 'CRB'. Reason: Not associated with a trusted SQL Server connection. (severity 14) in C:\WINNT\Temp\t mpuaobbb.php on line 155


Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: HARDWARE in C:\WINNT\Temp\t mpuaobbb.php on line 155
Unable to make connection with server HARDWARE

mssql.secure_co nnection is off in ini file....


any ideas???


regards
aryan
Sep 14 '07 #4
ak1dnar
1,584 Recognized Expert Top Contributor
The default way to connect to MSSQL Server with user names and passwords, but the mssql extension can be configured to use secure/trusted
connections. So you have to set mssql.secure_co nnection = On in
php.ini. and restart the machine before execute the script. Thanks!
Sep 14 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

4
61402
by: Biffo | last post by:
I have PHP Version 5.0.3 installed on Windows XP Pro with IIS as the webserver. All is working well, except I get a - Fatal error: Call to undefined function mssql_connect() in C:\Inetpub\wwwroot\CertificateOccupancy\main.php on line 33 line 33: $conn = mssql_connect(toshibo,sa,ladeda) or die ("Could Not Connect to Database"); when trying to use mssql_connect. Info.php shows that the mssql module
1
11200
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
2
3341
by: alasdair.watson | last post by:
PHP 4.3/MS-SQL7/IIS5. At the start of every script, I include db.php which contains this: <? $db = mssql_connect('devbox','foo','bar'); mssql_select_db('', $db) or die ("Couldn't open database connection"); ?> And then I pass that connection into the various classes and functions
13
7805
by: printline | last post by:
Hello I have problems connecting to my MSSQL through php. I have a microsoft windows server 2003, web edition with php5 installed and Microsoft SQL Server: SQL Server 2005 Express Edition as my platform. my connection string is as follows: <?php
3
1596
by: Matt White | last post by:
Hello, Is there any way to connect to SQL Server without using mssql_connect? The installation of PHP I'm using was not compiled with the MSSQL extensions. Thanks.
0
2482
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...
2
3822
by: yashiro | last post by:
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?
2
3167
by: mirali00 | last post by:
Hello, This is a strange one! I'm getting blank results for mssql_connect. I created a simple testmssql.php page with the following code: <?php if (function_exists('mssql_connect')) { die("Your PHP installation does not have MSSQL support."); } echo "Connecting..."; echo "<BR>";
0
9551
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
10033
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9085
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7576
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
6811
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
5471
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...
1
4149
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
2
3764
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2945
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.