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:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old November 25th, 2003, 04:23 PM
Lejnieks Lejnieks is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 9 Lejnieks User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
HELP!! Php - SQL on Win2k3 WE

Ok so this is a follow up on a previous post. I tried installing SQL on win2k3 web edition (but as most of you will tell me, its not possible)

with that said. is there a way to connect php to MSSQL (on a remote host) with php running windows 2003?

im totaly desaprate at this point for any possible solutions to this. MySQL is not a possibility (no matter how much i tried to get them to use mysql, they want mssql).

thanks

Reply With Quote
  #2  
Old November 26th, 2003, 03:08 AM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,711 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 2 Weeks 6 Days 4 h 53 m 59 sec
Reputation Power: 259
You'll have to enable MSSQL support in Php (uncomment a few lines in php.ini) then check that the extension is loaded properly with the usual info.php and finally put up a script to query MSSQL, you can find a reference for this here

Reply With Quote
  #3  
Old November 26th, 2003, 08:52 AM
Lejnieks Lejnieks is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 9 Lejnieks User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks for the reply, sorry but i was remiss in mentioning it before, mssql support is fully enabled in php. all the dlls are installed and everythign seems to be loaded to spec.

with using php's mssql connections directly (without mssql client tools or mssql installed on the php hosted box) everytime i try to connect to the mssql remote host by way of mssql_connect _pconnect .... either nothing happens, or i get an error. the SQL host does even see my ip hitting the server so i dont think im getting in by way of mssql connections.

Reply With Quote
  #4  
Old November 26th, 2003, 10:44 AM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,711 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 2 Weeks 6 Days 4 h 53 m 59 sec
Reputation Power: 259
Why don't you install mssql client tools?

Reply With Quote
  #5  
Old November 26th, 2003, 11:05 AM
Lejnieks Lejnieks is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 9 Lejnieks User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
cant install mssql client tools or mssql on windows 2k3 web edition. thats where the real problem is. Web edition doesnt allows this install. So i need to find a way to connect to a remot mssql host, with php runnning on a windows 2003 web edition server with no client tools or sql server on it.

Reply With Quote
  #6  
Old November 26th, 2003, 01:52 PM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,711 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 2 Weeks 6 Days 4 h 53 m 59 sec
Reputation Power: 259
You should find what dll's are needed and install them by hand.
As a sidenote, why did you choose this s*ting "win 2k3 web edition" when you could use linux and connect to MsSQL with FreeTDS as shown in the link I suggested?

Reply With Quote
  #7  
Old November 28th, 2003, 08:58 AM
Lejnieks Lejnieks is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 9 Lejnieks User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
thanks everyone for the help.

reply to side note: i personally am an advocate of unix and run most of my sites from there but its not always up to me. i think the unix, php, mysql choice is the best, otherwise windows php mysql... but they didnt want to here it .

Reply With Quote
  #8  
Old March 10th, 2004, 11:13 AM
Runnion Runnion is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 1 Runnion User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
How did you solve this?

Did you find the DLL's that are needed for web edition to connect to the remote sql server? I'm having the same problem.

Reply With Quote
  #9  
Old March 10th, 2004, 12:47 PM
Lejnieks Lejnieks is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 9 Lejnieks User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
SQL on Win2k3

Quote:
Originally Posted by Runnion
Did you find the DLL's that are needed for web edition to connect to the remote sql server? I'm having the same problem.


Actually i had a few issues:
1. Getting SQL Server on Win2k3 Web Edition. This is not possible i found out, so that is now a mut point. I am moving to sbs 2003 PE and that will solve this problem with more then what i need.

2. As for connectivity to SQL with PHP, the DLL's are in the ZIP from PHP all you need to do to create the Connectivity is uncomment the dll lines in the php ini file and move the actual dll over to the system root. i used the mssql dll and it worked fine, you will need to recompile your php before it will work though.

Reply With Quote
  #10  
Old March 13th, 2004, 06:03 PM
BobT BobT is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 1 BobT User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Another alternative is ODBTP. It should easily solve your problem. Also, the php_mssql.dll extension does not fully support SQL Server 2K. You will have problems if your database has varchar(>255), nvarchar or ntext fields. The php_odbtp_mssql.dll extension supports all of these fields.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMS SQL Development > HELP!! Php - SQL on Win2k3 WE


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


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





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