1 /**
2 * Logback: the reliable, generic, fast and flexible logging framework.
3 *
4 * Copyright (C) 1999-2006, QOS.ch
5 *
6 * This library is free software, you can redistribute it and/or modify it under
7 * the terms of the GNU Lesser General Public License as published by the Free
8 * Software Foundation.
9 */
10
11 package ch.qos.logback.core.db.dialect;
12
13 /**
14 * The MS SQL Server dialect is untested.
15 *
16 * Note that the dialect is not needed if your JDBC driver supports
17 * the getGeneratedKeys method introduced in JDBC 3.0 specification.
18 *
19 * @author James Stauffer
20 */
21 public class MsSQLDialect implements SQLDialect {
22 public static final String SELECT_CURRVAL = "SELECT @@identity id";
23
24 public String getSelectInsertId() {
25 return SELECT_CURRVAL;
26 }
27 }