MS SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMS SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old May 26th, 2004, 12:57 AM
jaypeesol jaypeesol is offline
Rehistradong manggagamit ...
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Cavite, Philippines
Posts: 116 jaypeesol User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 9 m 22 sec
Reputation Power: 5
Send a message via ICQ to jaypeesol Send a message via AIM to jaypeesol Send a message via MSN to jaypeesol
Red face How to setup PHP to connect to MSSQL SERVER 2000

OK, I'm sorry about this, but I'm just getting confused...

I am trying to connect PHP to MSSQL, but I don't know where to setup (find) the MSSQL server name, username and password that is needed by the function mssql_connect().

Is there a manual/tutorial that tells me how to do this (complete with the MSSQL Server 2000 setup for connectivity with PHP/Other programming languages)?

Thanks
__________________
JP

Last edited by jaypeesol : May 26th, 2004 at 05:27 PM.

Reply With Quote
  #2  
Old May 26th, 2004, 05:30 PM
punkisdead's Avatar
punkisdead punkisdead is offline
Moron
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Michigan, USA
Posts: 170 punkisdead User rank is Private First Class (20 - 50 Reputation Level)punkisdead User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 10 h 31 m 37 sec
Reputation Power: 5
for all the mssql functions:

http://us4.php.net/mssql

for the mssql_connect:

http://us4.php.net/manual/en/function.mssql-connect.php

Reply With Quote
  #3  
Old May 26th, 2004, 06:26 PM
jaypeesol jaypeesol is offline
Rehistradong manggagamit ...
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Cavite, Philippines
Posts: 116 jaypeesol User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 9 m 22 sec
Reputation Power: 5
Send a message via ICQ to jaypeesol Send a message via AIM to jaypeesol Send a message via MSN to jaypeesol
Quote:
Originally Posted by punkisdead
for all the mssql functions:

http://us4.php.net/mssql

for the mssql_connect:

http://us4.php.net/manual/en/function.mssql-connect.php


Yes, I know that functions (thanks anyways). But I am looking for where to find the server name, username and password that I will pass into the msssql_connect function. In mysql, it was simply hostname (localhost), and the username and password are found in the my.ini file.

Is there a file in MSSQL SERVER 2000 where I can find/set-up these values (servername, username, function)? Should I create a "connection"? Maybe there is a tutorial that tells me how a programming language can connect to MSSQL?

My only experience with MSSQL was with SERVER 7 and VB6, that's it. I was developing webbies w/ PHP/MySQL before I was asked to do PHP/MSSQL.

Thanks for every help that you can give me!

Reply With Quote
  #4  
Old May 26th, 2004, 08:27 PM
jaypeesol jaypeesol is offline
Rehistradong manggagamit ...
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Cavite, Philippines
Posts: 116 jaypeesol User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 9 m 22 sec
Reputation Power: 5
Send a message via ICQ to jaypeesol Send a message via AIM to jaypeesol Send a message via MSN to jaypeesol
I fixed it now! Whew....

1. I right clicked the Server, then selected Properties...
2. I clicked on the Security tab
3. In Authentication, I clicked SQL Server and Windows.

That's it!

What I have going is

$ServerName = "";
$dbuser = "sa";
$dbpass = "";

and it's connecting, and displaying data. Hope this all work well!

Reply With Quote
  #5  
Old May 27th, 2004, 08:14 AM
punkisdead's Avatar
punkisdead punkisdead is offline
Moron
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Michigan, USA
Posts: 170 punkisdead User rank is Private First Class (20 - 50 Reputation Level)punkisdead User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 10 h 31 m 37 sec
Reputation Power: 5
I would highly recommend not using a blank password for the sa account.....

Reply With Quote
  #6  
Old May 27th, 2004, 07:11 PM
jaypeesol jaypeesol is offline
Rehistradong manggagamit ...
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Cavite, Philippines
Posts: 116 jaypeesol User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 9 m 22 sec
Reputation Power: 5
Send a message via ICQ to jaypeesol Send a message via AIM to jaypeesol Send a message via MSN to jaypeesol
Quote:
Originally Posted by punkisdead
I would highly recommend not using a blank password for the sa account.....


OK. But I only used 'sa' for testing purposes...

Thanks anyways.

Reply With Quote
  #7  
Old June 3rd, 2004, 05:02 AM
Dieter's Avatar
Dieter Dieter is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Location: SA, Centurion
Posts: 304 Dieter User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 4 h 46 m 21 sec
Reputation Power: 6
I seem to have the same problem as you jaypeesol: I can't connect to MSSQL from php.

Don't know what to do next, tried everything.
Where do you set-up users in MSSQL ? Can these users then be used to make a connectoin using php ????????
__________________
:P

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMS SQL Development > How to setup PHP to connect to MSSQL SERVER 2000


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway