Hi Nathan,
I have created a liquibase.properties file and stored above properties in the same location as the Jar file and
properties file
--driver: com.microsoft.sqlserver.jdbc.SQLServerDriver
--classpath=D:\Liquibase\microsoft_sqlserver_databasesqljdbc4.jar
--url=jdbc:sqlserver://sql-test:1433;tempdb
--username=test
--password=test
--changeLogFile=D:\scripts\test.xml
with a changelog
<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
<changeSet id="1" author="bob">
<createTable tableName="TAXI" remarks="This is my super test">
<column name="ID" type="BIGINT" autoIncrement="true">
<constraints primaryKey="true"/>
</column>
<column name="LASTNAME" type="VARCHAR(255)" remarks="the name of the test" />
<column name="FIRSTNAME" type="VARCHAR(255)" remarks="the first name"/>
<column name="FOREIGN_KEY_ID" type="BIGINT" remarks="reference to some other table"/>
</createTable>
</changeSet>
</databaseChangeLog>
try to run below command.
D:\Liquibase>java -jar liquibase.jar
Unexpected error running Liquibase: Unknown parameter: '--classpath'
SEVERE 4/25/14 1:32 PM:liquibase: Unexpected error running Liquibase: Unknown parameter: '--classpath'
liquibase.exception.CommandLineParsingException: Unknown parameter: '--classpath'
at liquibase.integration.commandline.Main.parsePropertiesFile(Main.java:390)
at liquibase.integration.commandline.Main.main(Main.java:121)
One strange thing I noticed is "sqljdbc4" dose not come with standard sql server installation it is Oracle agent. So is Oracle client a pre requirement for SQL Server ?
Thanks,
Brijesh