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 7514691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T00:34:35+00:00 2026-05-30T00:34:35+00:00

I don’t know much (really anything) about SQL Server 2008, but I just need

  • 0

I don’t know much (really anything) about SQL Server 2008, but I just need to make a few basic queries.

My question is:

While using Windows Authentication (on SQL Server 2008 R2), what data do I fill in the mssql_connect field?

$userName = "username";
$password = "password";
$serverName = "localhost(??)";
$connection = mssql_connect($serverName, $userName, $password);

What should those variables be or how can I easily change the set-up of my SQL Server or…whatever the quickest way there is to get this connected?

Any help would be great, I haven’t found too much info, let alone clear info on this anywhere.

  • 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-05-30T00:34:36+00:00Added an answer on May 30, 2026 at 12:34 am

    If you are running on a XAMP environment, then it would stand to reason that you are running everything locally. If that’s the case, your server would be ‘localhost’ or ‘127.0.0.1’ and you can define your own accounts in SQL. As I said, I don’t use windows accounts myself, but you can add an NT account to your “server” and then in SQL Server Mgmt tool set that user to have access to the DB you are using. Then you have set the account and password and know what they are. If you have trouble with the useracount, you can try “computerName\userName”

    If you are not the admin, you’ll need to get the relevant information from them.

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

Sidebar

Related Questions

Don't really know how to formulate the title, but it should be pretty obvious
Don't know much about encryption... Say I'm preparing a SAML request to submit to
Don't know whether I'm having a "thick day" - but I just wondered what
Don't need to do this right now but thinking about the future... What would
Don't know how to google for such, but is there a way to query
Don't know if I worded the question right, but basically what I want to
(Don't know if this is strictly on-topic, but I don't see any better Stack
Don't know how to explain it better but i'm trying to get a response
Don't know whats exactly going on, but it's definitely killing my time for nothing.
Don't have much to say, just can get into the event handler. XAML: <Grid>

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.