Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8803469
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T01:20:56+00:00 2026-06-14T01:20:56+00:00

Possible Duplicate: Cannot connect to SQL SERVER 2000 I am using php 5.3.1 to

  • 0

Possible Duplicate:
Cannot connect to SQL SERVER 2000

I am using php 5.3.1 to connect to my SQL SERVER 2000 on remote machine. I use Windows XP.
On using simple program like this:

$conn = mssql_connect("VBNET","sa","anythinghere") or die ( 'Can not connect to server' );

I get following error:

Warning: mssql_connect() [function.mssql-connect]: message: Login failed for user ‘sa’. Reason: Not associated with a trusted SQL Server connection. (severity 14) in C:\wamp\www\Mssql\test.php on line 8

Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: VBNET in C:\wamp\www\Mssql\test.php on line 8
Can not connect to server

I enabled TCP/IP and named pipes in my SQL SERVER and restarted it. Also its Authentication is set to Mixed Mode Authentication. So what am I missing here ?

Thanks in advance.

EDIT This question was first about SQL SERVER 2008 but later it was brought to my knowledge that it was SQL SERVER 2000. Forgive me for my ignorance but the problem still exists. So please give me suggestions.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T01:20:58+00:00Added an answer on June 14, 2026 at 1:20 am

    This problem occurs when the SQL Serversecurity authentication is set
    to Windows only, and one of the following conditions is true
    :

    • You are trying to connect to a SQL Server database with a SQL Server login.
    • You are trying to connect to a SQL Server 2000 Desktop Engine (also known as MSDE 2000) database that is installed on a Microsoft Windows
      98-based computer by using a trusted SQL Server connection.
    • You are trying to connect to a SQL Server database from a Windows account that does not have sufficient permissions to connect to the
      server.

    To work around this problem, use one of the following methods depending on the symptom that you are experiencing:

    – A SQL Server login

    Use a valid Windows login to connect to SQL Server. If you must
    continue to use a SQL Server login, you can change the security
    authentication mode in SQL Server to SQL Server and Windows. To do
    this, follow these steps:

    1. Start Enterprise Manager.
    2. Expand Microsoft SQL Servers, and then expand SQL Server Group.
    3. Right-click the server that you want to change to SQL Server and
      Windows authentication, and then click Properties.
    4. In the SQL Server Properties dialog box, click the Security tab,
      click SQL Server and Windows, and then click OK.
    5. When you are prompted to re-start the SQL Server service, click Yes.

    – A Windows account with insufficient permissions

    To work around this problem, you must add the Windows account to SQL
    Server, and then grant the appropriate permissions to each database
    that the user requires access to. To do this in SQL Server 2000,
    follow these steps:

    1. Start Enterprise Manager.
    2. Expand Microsoft SQL Server, and then expand SQL Server Group.
    3. Expand your server, and then expand Security.
    4. Right-click Logins, and then click New Login.
    5. In the SQL Server Login Properties dialog box, enter the Windows
      account name in the Name box. In the Domain list, select the domain
      that the Windows account is a member of.
    6. Click the Database Access tab, set the appropriate permissions for
      the client, and then click OK.

    http://support.microsoft.com/kb/889615

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Cannot use concatenation when declaring default class properties in PHP? The following
Possible Duplicate: SQL Server 2008 : Cannot Insert new column in the middle position
Possible Duplicate: Decompressing a .gz file via PHP I cannot use gzdecode with php
In SQL its possible to have fields that cannot contain duplicate data. How is
Possible Duplicate: How do I make a request using HTTP basic authentication with PHP
Possible Duplicate: Cannot use ‘this’ in member initializer? Any ideas why I get an
Possible Duplicate: PHP error: Cannot modify header information – headers already sent I've built
Possible Duplicate: Fatal error: Cannot use object of type stdClass as array in Please
Possible Duplicate: Xcode 4.4.1, iOS 5.1: Xcode cannot run using the selected device My
Possible Duplicate: Cannot connect to UserPC\SQLExpress I have been struggling to find a solution

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.