Is it possible in any ways to connect Drupal 6.x to SQL Server 2008 R2? I am really struggling to find a way out.
please let me know. Any help would be greatly appreciated!
No, by default, Microsoft SQL Server is not within the Drupal 6 system requirements.
Additionally, if you need that database server, it's highly suggested to use Drupal 7 instead which has PDO support and PDO supports (somehow) Microsoft SQL Server.
Related
I would like to know if it's possible to connect PHP running on Google App Engine to SQL Server 2017 running on Google cloud SQL(same project)?
As far as I can see there is no extension available for PHP to connect to SQL Server, or maybe, to blame is my lack of experience with GC’s products.
I have done this in the past but with MySQL, and that was really easy but now I seem to be stuck.
Is there a solution to this problem or should I try a workaround using a container?
Thank you!
I’m actually developing a CI app in my developer machine with Windows and XAMPP, using de sqlsrv driver to connect to the MS SQL Server 2008 database.
But the final server machine is an Ubuntu server, and trying to run the app from there doesn’t work because of the sqlsrv driver not installed in the server.
I tried the mssql driver and the app starts to load but it ends with SQL queries errors (SQL queries previously tested and working).
What do you recommend?
Is it possible to connect from Linux/PHP/CI to SQL Server 2008? If there is a way, will it be as fast as running on Windows? It will be compatible with CI Active Record?
Is it better to create a new Windows server?
Thx
I would say that you should develop on whatever you deploy to so if you will stick to dev on windows, deploy to a windows box.
If you do want to get it working, I have seen a ruby app talk to ms sql 2005 before, you need to make sure you have FreeTds working, this looks like a good walkthrough:
http://php.net/manual/en/mssql.setup.php
If you are using sql 2008 there are some features which probably are not in sql 2008 like table valued parameters which FreeTds won't support so it might be not working because you are trying to use something it can't do - have a look at the query that fails and see what types it has and the types of the responses, if anything is new to sql 2008 it might not work.
I'm sorry if this question ever asked before. However, I'm getting frustrate about this stuff.
Currently I'm maintenance a project, I'm using WampServer 2.0, PHP 5.2.5 and SQL Server 2005.
I've added extension=php_sqlsrv_52_ts_vc6.dll inside php.ini copy the file to php's extension. However sqlsrv_connect() in the project didn't work. I read the manual book of the project, I have to install SQL Server 2008 R2 Client Native since this project was developed by other programmer few times ago using wampserver 2.0 and SQL Server 2008. In other word, the prerequisites: - Install Driver SQLSRV20, SQL Server 2008 R2 Native Client. But, I still confuse what's SQL Server 2008 R2 Native Client used for. Do I need to install it though I use SQL Server 2005?
Please help.
Thank in advanced
Yes you do. Explained more fully here.
I am debating between using MsSQL and SQLSrv to connect to SQL Server.
Our platform is running IIS7 on Windows and using PHP. We tried using the MsSQL extension to work but had problems so we decided to use SQLSrv instead since it was easier to get working.
Using MsSQL would be the preferred option because it fits the workflow better and the function names are similar to the ones used in SQL. Is it worth the effort to use MsSQL with PHP in light of the problems we are facing or should we use SQLSrv with the downsides mentioned.
Also, on the MSDN Docs for SQLSrv it mentions that the documentation is for preview and might change. Does that mean the functions could end up changing?
As far as the notice on the documentation all it means is they may change the wording of the document later in its release, I can't promise that the functions will stay the same however nothing on that page leads me to believe otherwise. Here is a Microsoft Wiki article on Accessing SQL Server Databases from PHP is says that the process outlined on that page is compatible with SQL Server 2005, SQL Server 2008, and SQL Server 2008 R2 so the software should not change since it needs to maintain compatibility with older versions of SQL Server.
You may also want to reference that wiki article, it contains step by step setup procedures for MsSQL and SQLSrv which may work for you and fix the issue you have.
As a part of the technology standardization in the organization I work at, we're moving from MySQL and Linux to MS SQL Server and Windows. One of the PHP-based applications that we use is Mantis, a bug tracking system available at http://www.mantisbt.org
Has anyone had any luck getting Mantis to work completely with MS SQL Server? I've got Mantis 1.1.8 working for the most part but file attachments do not work, while Mantis 1.2.1 does not install on MS SQL Server.
Here is a step by step guide, maybe this helps out: http://gonfva.blogspot.com/2010/03/mantis-on-sql-server.html
The mantis page states:
It is written in the PHP scripting language and works with MySQL, MS SQL, and PostgreSQL databases and a webserver.
So it is possible, and you might want to use the official mantis support channels.
I can confirm also that Mantis 1.2.x does not install on MS SQL Server. We tried at work but had to move to a LAMP stack to get 1.2.x running. Seems to work with 1.1.x versions.
Also see this forum thread: http://www.mantisbt.org/forums/viewtopic.php?f=3&t=18827
As part of the MantisBT development team I can tell you that although there is code support for MS SQL Server, there are many issues with it. The cause of the problem is that none of the developers - or contributing users - are running an SQL Server installation and we're not aware of any free setups which we can use to the SQL Server.
Long story short: it probably doesn't work out of the box, but you might force it into running by patching it. If you do, please contribute those changes back, as there are many users which reported problems with SQL Server.
I confirm that Mantis 1.2.6 IS successfully installable and usable on IIS 7.5 + PHP 5.3.6
Tips: http://thegrayzone.co.uk/blog/2011/03/setting-up-mantisbt-on-iis-7-w-sql-server/