Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Configuring WAMP (Windows/Apache/MSSQL/PHP) environment

Posted on 2006-11-10
8
Medium Priority
?
7,121 Views
Last Modified: 2010-10-14
Hi,

I have used MySQL for a long time in the WAMP setup but am unsure how I go about getting the WAMP setup with MSSQL.

This is probably an easy solution but a simple step through guide would be much appreciated.
0
Comment
Question by:bisleyboy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
8 Comments
 
LVL 35

Accepted Solution

by:
Raynard7 earned 1000 total points
ID: 17913152
Hi,

The Windows, Apache and PHP installation stuff remains the same - for the mssql you just need to install it then for php to run

" The extension requires the MS SQL Client Tools to be installed on the system where PHP is installed. The Client Tools can be installed from the MS SQL Server CD or by copying ntwdblib.dll from \winnt\system32 on the server to \winnt\system32 on the PHP box. Copying ntwdblib.dll will only provide access. Configuration of the client will require installation of all the tools."

then enabling this library in the php.ini file

http://au3.php.net/mssql

and then using the mssql functions inside php rather than the mysql ones (most are pretty similar)
0
 

Author Comment

by:bisleyboy
ID: 17913477
do i not need to reconfigure it or is that just for the unix/linux installations?
0
 
LVL 35

Expert Comment

by:Raynard7
ID: 17913508
thats only for *nix installations

in fact you can have WAMP and also have mssql on the same server
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 

Author Comment

by:bisleyboy
ID: 17913520
aah ok - didnt realise that it was this easy - The thing that was throwing me was that there was no MS SQL section like there is a MySQL section in phpinfo();
0
 

Author Comment

by:bisleyboy
ID: 17913789
Fatal error: Call to undefined function: mssql_connect() in C:\web\mssql.php on line 2

not sure everything is as it should be. Various bits and pieces I have noticed are detailed below - hope this helps in some way!

<<php.ini>>
extension_dir = "./"
...
;extension=php_mime_magic.dll
;extension=php_ming.dll
extension=php_mssql.dll
;extension=php_msql.dll
;extension=php_oci8.dll
<<php.ini>>

php_mssql.dll is in the php folder (c:\php) as is the ntwdblib.dll (it's also in c:\windows\system32 || version 2000.2.8.0)

I noticed the following in the php.ini as well - do i need to make changes to this.


[MSSQL]
; Allow or prevent persistent links.
mssql.allow_persistent = On

; Maximum number of persistent links.  -1 means no limit.
mssql.max_persistent = -1

; Maximum number of links (persistent+non persistent).  -1 means no limit.
mssql.max_links = -1

; Minimum error severity to display.
mssql.min_error_severity = 10

; Minimum message severity to display.
mssql.min_message_severity = 10

; Compatability mode with old versions of PHP 3.0.
mssql.compatability_mode = Off

; Connect timeout
;mssql.connect_timeout = 5

; Query timeout
;mssql.timeout = 60

; Valid range 0 - 2147483647.  Default = 4096.
;mssql.textlimit = 4096

; Valid range 0 - 2147483647.  Default = 4096.
;mssql.textsize = 4096

; Limits the number of records in each batch.  0 = all records in one batch.
;mssql.batchsize = 0

; Specify how datetime and datetim4 columns are returned
; On => Returns data converted to SQL server settings
; Off => Returns values as YYYY-MM-DD hh:mm:ss
;mssql.datetimeconvert = On

; Use NT authentication when connecting to the server
mssql.secure_connection = Off

; Specify max number of processes. -1 = library default
; msdlib defaults to 25
; FreeTDS defaults to 4096
;mssql.max_procs = -1
0
 
LVL 35

Expert Comment

by:Raynard7
ID: 17918659
is php giving you any errors when you are trying to load apache? have you restarted apache?
if the extension if uncommented in the ini file then should load and if not then there should be an error.
0
 

Author Comment

by:bisleyboy
ID: 17958156
I have decided that learning ASP may be an easier option as the script is going to run on IIS in the end anyway and I think I can get that to work.

Many thanks for the advice though
0
 

Expert Comment

by:gtmathewDallas
ID: 33907730
Where i can download ntwdblib.dll version 2000.2.8.0? Please help me..
0

Featured Post

Tech or Treat! - Giveaway

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Viewers will learn how the fundamental information of how to create a table.

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question