blob: 56cb2bdd72db39042c1c3d9971a4664a3a0eec2f [file] [log] [blame]
<?xml version="1.0" encoding="ISO-8859-15"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN" "http://forrest.apache.org/dtd/document-v20.dtd">
<document>
<header>
<title>SQL Server</title>
</header>
<body>
<p>
The <a href="ext:sqlserver">SQL Server</a> is supported form version <strong>6.5</strong> onwards.
Information about the versions prior to SQL Server 2000 however is difficult to find online, you'll
have to resort to the documentation accompanying the database. Information for version 2000 can be found
<a href="ext:sqlserver/manual-2000">here</a>.
</p>
<p>
If possible, you should use the newest driver available. The older JDBC drivers (for SQL Server 2000 and
older) provided my Microsoft, are known to be buggy and slow. The new SQL Server 2005 driver is preferred
and can also work with SQL Server 2000.
</p>
<p>&nbsp;</p>
<p>
Platform identifier:
</p>
<ul>
<li><code>MsSql</code></li>
</ul>
<p>&nbsp;</p>
<p>
Recognized JDBC drivers:
</p>
<ul>
<li><code>com.microsoft.jdbc.sqlserver.SQLServerDriver</code></li>
<li><code>com.microsoft.sqlserver.jdbc.SQLServerDriver</code></li>
</ul>
<p>&nbsp;</p>
<p>
Recognized JDBC sub protocols:
</p>
<ul>
<li><code>jdbc:microsoft:sqlserver</code></li>
<li><code>jdbc:sqlserver</code></li>
<li><code>jdbc:sqljdbc</code></li>
</ul>
<p>&nbsp;</p>
<table>
<tr>
<td class="platformPropName">The database supports SQL comments</td>
<td class="platformPropValue">yes</td>
</tr>
<tr>
<td class="platformPropName">The database supports delimited identifiers</td>
<td class="platformPropValue">yes</td>
</tr>
<tr>
<td class="platformPropName">The database's maximum identifier length</td>
<td class="platformPropValue">128</td>
</tr>
<tr>
<td class="platformPropName">The database supports default values for <code>LONG</code> types</td>
<td class="platformPropValue">yes</td>
</tr>
<tr>
<td class="platformPropName">DdlUtils uses sequences for identity columns</td>
<td class="platformPropValue">yes</td>
</tr>
<tr>
<td class="platformPropName">The database supports non-primary key columns as identity columns</td>
<td class="platformPropValue">yes</td>
</tr>
<tr>
<td class="platformPropName">The database allows INSERT/UPDATE statements to set values for identity columns</td>
<td class="platformPropValue">yes</td>
</tr>
<tr>
<td class="platformPropName">DdlUtils can read back the auto-generated value of an identity column</td>
<td class="platformPropValue">yes</td>
</tr>
<tr>
<td class="platformPropName">The database supports non-unique indices</td>
<td class="platformPropValue">yes</td>
</tr>
<tr>
<td class="platformPropName">DdlUtils can create a database via JDBC</td>
<td class="platformPropValue">no</td>
</tr>
<tr>
<td class="platformPropName">DdlUtils can drop a database via JDBC</td>
<td class="platformPropValue">no</td>
</tr>
</table>
<p>&nbsp;</p>
<table>
<tr>
<th class="typeMappingJdbcType">JDBC Type</th>
<th class="typeMappingNativeType">Database Type</th>
<th class="typeMappingComments">Additional comments</th>
</tr>
<tr>
<td>ARRAY</td>
<td>IMAGE</td>
<td>Will be read back as LONGVARBINARY</td>
</tr>
<tr>
<td>BIGINT</td>
<td>DECIMAL(19,0)</td>
<td>A native BIGINT type is supported only since SQL Server 2000</td>
</tr>
<tr>
<td>BINARY</td>
<td>BINARY</td>
<td></td>
</tr>
<tr>
<td>BIT</td>
<td>BIT</td>
<td></td>
</tr>
<tr>
<td>BLOB</td>
<td>IMAGE</td>
<td>Will be read back as LONGVARBINARY</td>
</tr>
<tr>
<td>BOOLEAN</td>
<td>BIT</td>
<td>Will be read back as BIT</td>
</tr>
<tr>
<td>CHAR</td>
<td>CHAR</td>
<td></td>
</tr>
<tr>
<td>CLOB</td>
<td>TEXT</td>
<td>Will be read back as LONGVARCHAR</td>
</tr>
<tr>
<td>DATALINK</td>
<td>IMAGE</td>
<td>Will be read back as LONGVARBINARY</td>
</tr>
<tr>
<td>DATE</td>
<td>DATETIME</td>
<td>Will be read back as TIMESTAMP</td>
</tr>
<tr>
<td>DECIMAL</td>
<td>DECIMAL</td>
<td></td>
</tr>
<tr>
<td>DISTINCT</td>
<td>IMAGE</td>
<td>Will be read back as LONGVARBINARY</td>
</tr>
<tr>
<td>DOUBLE</td>
<td>FLOAT</td>
<td>Will be read back as FLOAT</td>
</tr>
<tr>
<td>FLOAT</td>
<td>FLOAT</td>
<td></td>
</tr>
<tr>
<td>INTEGER</td>
<td>INT</td>
<td></td>
</tr>
<tr>
<td>JAVA_OBJECT</td>
<td>IMAGE</td>
<td>Will be read back as LONGVARBINARY</td>
</tr>
<tr>
<td>LONGVARBINARY</td>
<td>IMAGE</td>
<td></td>
</tr>
<tr>
<td>LONGVARCHAR</td>
<td>TEXT</td>
<td></td>
</tr>
<tr>
<td>NULL</td>
<td>IMAGE</td>
<td>Will be read back as LONGVARBINARY</td>
</tr>
<tr>
<td>NUMERIC</td>
<td>NUMERIC</td>
<td></td>
</tr>
<tr>
<td>OTHER</td>
<td>IMAGE</td>
<td>Will be read back as LONGVARBINARY</td>
</tr>
<tr>
<td>REAL</td>
<td>REAL</td>
<td></td>
</tr>
<tr>
<td>REF</td>
<td>IMAGE</td>
<td>Will be read back as LONGVARBINARY</td>
</tr>
<tr>
<td>SMALLINT</td>
<td>SMALLINT</td>
<td></td>
</tr>
<tr>
<td>STRUCT</td>
<td>IMAGE</td>
<td>Will be read back as LONGVARBINARY</td>
</tr>
<tr>
<td>TIME</td>
<td>DATETIME</td>
<td>Will be read back as TIMESTAMP</td>
</tr>
<tr>
<td>TIMESTAMP</td>
<td>DATETIME</td>
<td>The native <code>TIMESTAMP</code> type of SQL Server serves a different purpose: it provides a counter
that automatically increments upon each insertion or update of the table.</td>
</tr>
<tr>
<td>TINYINT</td>
<td>SMALLINT</td>
<td>The native <code>TINYINT</code> type only supports values between 0 and 255.<br/>
Will be read back as SMALLINT</td>
</tr>
<tr>
<td>VARBINARY</td>
<td>VARBINARY</td>
<td></td>
</tr>
<tr>
<td>VARCHAR</td>
<td>VARCHAR</td>
<td></td>
</tr>
</table>
</body>
</document>