<p>I'm going to start a new project - rewriting an existing system (PHP + SQL Server) from scratch because of some very serious limitations by design.</p>

<p>We have some quite good knowledge of SQL Server (currently we're using SQL Server 2000 in existing system) and we would like to employ its newer version (2008 I guess) in our new project.</p>

<p>I am really fond of technologies that Java offers - particularly Spring Framework and Wicket and I am quite familiar with Java from others projects and assignments before.
Therefore, we consider using Java and Microsoft SQL Server.</p>

<p>There are two JDBC drivers for SQL Server - jTDS and Microsoft's one - <a href="http://msdn.microsoft.com/en-us/data/aa937724.aspx" rel="noreferrer">http://msdn.microsoft.com/en-us/data/aa937724.aspx</a>. I think we should test both of them.<br/></p>

<p>Are there any limitations in such solution I should know of? Has someone experience with such a technology combination?</p>

[{'answer_id': 6779, 'author': 'lomaxx', 'author_id': 493, 'author_profile': 'https://Stackoverflow.com/users/493', 'pm_score': 1, 'selected': False, 'text': '<p>I don\'t know about Java and 2008... but you shouldn\'t have too much trouble with Java and SQL2000. As lubos suggested, you\'d be doing yourself a favour to look at c# but if you\'re much more comfortable with Java then there shouldn\'t be any real limitations as the JDBC connector <a href="http://msdn.microsoft.com/en-us/data/aa937724.aspx" rel="nofollow noreferrer">is supported by Microsoft</a></p>\n'}, {'answer_id': 6902, 'author': 'dlinsin', 'author_id': 198, 'author_profile': 'https://Stackoverflow.com/users/198', 'pm_score': 4, 'selected': True, 'text': "<p>I've worked on a project using MSQL Server in conjunction with a Java Stack. It works very well and as long, since JDBC shouldn't really care about your database. We used ehcache together with Hibernate and had problems with the MS JDBC Driver, so we switched to jtds and it works really good.</p>\n\n<p>It's quite a while ago, so you still might wanna give the MS driver a chance...</p>\n"}, {'answer_id': 9652, 'author': 'TiGz', 'author_id': 1126, 'author_profile': 'https://Stackoverflow.com/users/1126', 'pm_score': 1, 'selected': False, 'text': "<p>We've been running an application using Hibernate talking to multiple remote MSQL Server instances for a few years now and we also switched to the jTDS driver early on after a few issues with the M$ driver. Since the switch we haven't had any issues at all. However, it's not a complicated application so it doesn't use any LOB's. Hope that helps.</p>\n"}, {'answer_id': 9743, 'author': 'Olly', 'author_id': 1174, 'author_profile': 'https://Stackoverflow.com/users/1174', 'pm_score': 1, 'selected': False, 'text': "<p>jTDS is excellent. I've been using it for years without issue in high-availability production environments.</p>\n"}, {'answer_id': 85919, 'author': 'Mike Pone', 'author_id': 16404, 'author_profile': 'https://Stackoverflow.com/users/16404', 'pm_score': 1, 'selected': False, 'text': '<p>I would lean towards the jTDS driver.  The MSSQL driver has a limitation where you cannot re-read the same column twice.  This happens frequently when using Hibernate.</p>\n'}, {'answer_id': 38664293, 'author': 'Jay', 'author_id': 5641640, 'author_profile': 'https://Stackoverflow.com/users/5641640', 'pm_score': 0, 'selected': False, 'text': '<p>The JDBC driver works well with SQL Server 2008, I\'ve not had any problems with it.  The version that you need to download depends on the version of the JRE you have installed.  JRE6 uses JDBC4, JRE7 uses JDBC4.1, etc.  Once you download the correct driver from Microsoft and run the installer you will need to copy the \n<strong>sqljdbc_auth.dll</strong> from the <strong>\\auth</strong> directory to the <strong>c:\\windows\\system32</strong> directory.  Then can then use this code to make a connection:</p>\n\n<p>In your header:</p>\n\n<pre><code>import java.sql.Connection;\nimport java.sql.DriverManager;\nimport java.sql.ResultSet;\nimport java.sql.SQLException;\nimport java.sql.Statement;\n</code></pre>\n\n<p>and in your class:</p>\n\n<pre><code>public class connectToSQL {\n\n    public void connectToDB() throws Exception {\n        Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");\n        String connectionUrl = "jdbc:sqlserver://&lt;IPADDRESS&gt;:&lt;PORT&gt;;DatabaseName=&lt;NAME OF DATABASE TO CONNECT TO&gt;;IntegratedSecurity=false";    \n        Connection con = DriverManager.getConnection(connectionUrl, "&lt;SQL SERVER USER LOGIN&gt;", "&lt;SQL SERVER PASSWORD&gt;");\n        Statement s = con.createStatement();\n        ResultSet r = s.executeQuery("SELECT * FROM &lt;TABLENAME TO SELECT FROM&gt;");\n        while (r.next()) {\n            System.out.println(r.getString(1));\n        }\n    }\n}\n</code></pre>\n'}]
['https://Stackoverflow.com/questions/6765', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/837/']