I'm using xampp 1.7.1 (i know it's an old version) and i need to enable the extension=php_mssql.dll - with the extension enabled my appache won't start? If i disable the extension it let's me start appache. I was having problems with my site using mssql_connect() and I was told that enabling the extension in my php.ini would help? I'm using mssql server 2008 express r2. I'm not entirely sure what php version xampp 1.7.1 is but could this be a factor? Someone mentioned I needed php 5.2
Why won't appache let me enable the extension?
Follow what is posted here: http://www.php.net/manual/en/mssql.requirements.php.
If still you cannot make it work try using the new SQLSRV driver for PHP. It can be downloaded at the Microsoft Downloads website.
Related
Requirements are iReport 5.6, Java 6, and MS SQL Server 2012 using jtds-1.3.1.jar.
I cannot make "MS SQLServer (net.sourceforge.jtds.jdbc.Driver)" JDBC Driver to not be red. I had that file everywhere trying to find the right place for it (because I've read many opinions on where it should be). I've also read that I need to add an entry to the /Tools/Options/Classpath/ area to point to the file. This didn't help either.
Where must I place the file and how must the CLASSPATH be set so that iReport can find the .jar file for SQL Server?
The real issue - I cannot use MS SQL Server (it's red here - needs to be black like the MySQL entry below it):
Where the jar file is located (I realize it shouldn't be in all of these places - I did test them one at a time):
JAVA_HOME (cross reference with where the jar file is located):
Added Classpath (also cross reference with where the jar file is located):
It seems like it should be placed here, based on the other contents of the directory - C:\Program Files (x86)\Jaspersoft\iReport-5.6.0\ide10\modules\ext:
After installing Jasper Reports 6.3, I was able to connect to the Server/DB immediately.
Seems iReport 5.6 and Windows 10 do not play well together.
After much trial and error, I had success on Mac OS using the following:
iReports 5.6.0
JDK 1.6 Official Mac version
JTDS 1.2 (NOT 1.3.1 as it does not work due to requiring a later JDK)
I had issues getting iReports running on JDK 1.8 so had to downgrade to JDK 1.6.
I hope this helps some poor soul!
Please remember , iReport 5.6 is working with jre 7 and if you want to connect with MS SQL, you need driver sqljdbc41 (which is compatible with jre 7 in classpath)
Following the instructions from WSO2 IS on setting it up with Microsoft SQL Server (https://docs.wso2.com/display/ML111/Setting+up+Microsoft+SQL), I continue to get the following error when running WSO2 IS:
ERROR (com.microsoft.sqlserver.jdbc.SQLServerConnection) - Java
Runtime Environment (JRE) version 1.7 is not supported by this driver.
Use the sqljdbc4.jar class library, which provides support for JDBC
4.0. ERROR (org.wso2.carbon.user.core.util.DatabaseUtil) - Database Error - Java Runtime Environment (JRE) version 1.7 is not
supported by this driver. Use the sqljdbc4.jar class library, which
provides support for JDBC 4.0.
I made sure that there were no extra sqljdbc libraries in the paths (to rule out ambiguity). I followed the instructions exactly, but did note that they referenced SQL Server 2005 (yikes!).
I am working on a Windows 7 machine, JRE 8, JDK 1.7, SQL Server 2012/2014, and WSO2 IS 5.1.0.
Any help would be greatly appreciated.
I assume you are using the JDK 1.7, so according to the documentation from microsoft you need to have Sqljdbc41.jar. Can you check you have the correct version in the lib folder?
Sqljdbc41.jar requires a JRE of 7 and supports the JDBC 4.1 API
Also make sure that the dropins folder don't have any mssql libs before restarting the server (Jars from lib are copied to dropins at the startup, so there is a chance you have mssql jars copied from an earlier startup).
Also note that WSO2 IS has a separate page for setting up databases. Please follow that doc instead which contains the documentation specific to IS.
I am trying to connect to a SQL Server via PHP, however, I keep getting errors in my code which found out was due to the SQL Server driver. But that's not the issue, the issue I am having now is XAMPP will not run the driver and when checking PHP info it won't show that the drivers are running.
To find a copy of my PHP.ini please go to the following link:http://linustechtips.com/main/topic/376252-xampp-568-with-ms-sql/
There is currently no official driver for PHP 5.6. Found a unofficial driver..
Hope this works, please check this out..
Unofficial Microsoft SQL Server Driver for PHP (sqlsrv)
I am facing problems while installaing db2 client in my system. Initially I got an error: Cannot find XML_0017.cab.
Then I cancelled the installation, selected the custom installation option and removed all the options related to XML (i.e. XML Extender and the XML Extender Samples) and tried to install. Now i can see that WEBD0000.CAB file is missing.
I am not able to understand how to proceed with the installation. Am I missing something?
DB2 9.1 was not supported on Windows 7 at all. IBM ended support of DB2 9.1 in April, 2012.
I would suggest you download a more recent version of the Data Server client from IBM's website.
CAB file, I assume this is a windows installation.
My DB2 on windows is a little rusty but if this is a client install you should not have to install "XML anything" unless you installing some kind of addon for Visual Studio.
What file did you download?
Can you include a file name, url link etc.?
Does anybody here have positive experience of working with MS SQL Server 2005 from Rails 2.x?
Our developers use Mac OS X, and our production runs on Linux. For legacy reasons we should use MS SQL Server 2005.
We're using ruby-odbc and are running into various problems, too depressing to list here. I get an impression that we're doing something wrong.
I'm talking about the no-compromise usage, that is, with migrations and all.
Thank you,
Have you considered using JRuby? Microsoft has a JDBC driver for SQL Server that can be run on UNIX variants (it's pure Java AFAIK). I was able to get the 2.0 technology preview working with JRuby and Rails 2.1 today. I haven't tried migrations yet, but so far the driver seems to be working quite well.
Here's a rough sketch of how to get it working:
Make sure Java 6 is installed
Install JRuby using the instructions on the JRuby website
Install Rails using gem (jruby -S gem install rails)
Download the UNIX package of Microsoft's SQL Server JDBC driver (Version 2.0)
Unpack Microsoft's SQL Server driver
Find sqljdbc4.jar and copy it to JRuby's lib directory
jruby -S gem install activerecord-jdbcmssql-adapter
Create a rails project (jruby -S rails hello)
Put the proper settings in database.yml (example below)
You're all set! Try running jruby script/console and creating a model.
development:
host: localhost
adapter: jdbc
username: sa
password: kitteh
driver: com.microsoft.sqlserver.jdbc.SQLServerDriver
url: jdbc:sqlserver://localhost;databaseName=mydb
timeout: 5000
Note: I'm not sure you can use Windows Authentication with the JDBC driver. You may need to use SQL Server Authentication.
Best of luck to you!
Ben
Instead of running your production server on Linux have you considered to run rails on Windows? I am currently developing an application using SQL Server and until know it seems to run fine.
These are the steps to access a SQL Server database from a Rails 2.0 application running on Windows.
The SQL Server adapter is not included by default in Rails 2. It is necessary to download and install it using the following command.
gem install activerecord-sqlserver-adapter
--source=http://gems.rubyonrails.org
Download the latest version of ruby-dbi from
http://rubyforge.org/projects/ruby-dbi/
and then extract the file from ruby-dbi\lib\dbd\ADO.rb
to C:\ruby\lib\ruby\site_ruby\1.8\DBD\ADO\ADO.rb.
Warning, the folder ADO does not exist, so you have to create it in advance.
It is not possible to preconfigure rails for SQL Server using the --database option, just create your application as usual and then modify config\database.yml in your application folder as follows:
development:
adapter: sqlserver
database: your_database_name
host: your_sqlserver_host
username: your_sqlserver_user
password: your_sqlserver_password
Run rake db:migrate to check your installation. If everything is fine you should not receive any error message.
I would strongly suggest you weigh up migrating from the legacy database. You'll probably find yourself in a world of pain pretty quickly. From experience, Rails and legacy schemas don't go too well together either.
I don't think there's a "nice solution" to this one, I'm afraid.
Our developers use Mac OS X, and our production runs on Linux. For legacy reasons we should use MS SQL Server 2005.
We are developing on Ubuntu 8.04, but our production servers are running Linux (Centos) and we are also using SqlServer 2005.
From our experiences the initial setup and config was quite painful - it took a couple of weeks to get everything to play nicely together. However, it's all seemless now, and I find SqlServer works perfectly well.
We use the FreeTDS ODBC drivers which once configured are fine.
DO NOT run productions Rails apps on Windows - you're asking for trouble. It's fine for development but nothing more. Rails doesn't scale well on Windows platforms.
Hope that helps.