Want to deploy your JVM, Node.js and Go apps effortlessly to AWS? Try our service Boxfuse

Sybase ASE Server

Versions

  • 12.5 or later

Default Driver

  • net.sourceforge.jtds.jdbc.Driver (jdbc:jtds: URLs)

Jdbc Drivers

  • Jtds 1.2.7 or later

Sql Script Syntax

Compatibility

  • DDL exported by Sybase ASE Client can be used unchanged in a Flyway migration.
  • Any Sybase ASE Server sql script executed by Flyway, can be executed by Sybase Interactive SQL client, Sybase Central (tested on v6.0) and other Sybase ASE Server-compatible tools (after the placeholders have been replaced).

Example

/* Single line comment */
CREATE TABLE Customers (
CustomerId smallint identity(1,1),
Name nvarchar(255),
Priority tinyint
)
GO

CREATE TABLE Sales (
TransactionId smallint identity(1,1),
CustomerId smallint,
[Net Amount] int,
Completed bit
)
GO

/*
Multi-line
comment
*/
-- TSQL
CREATE TRIGGER Update_Customer on Sales
for insert,update
as
declare @errorMsg VARCHAR(200),
        @customerID VARCHAR(10)
BEGIN
    select @customerID = customerID from inserted
    
    IF exists (select 1 from Sales tbl, inserted i
        where tbl.customerID = i.customerID )
    begin
                select @errorMsg = 'Cannot have 2 record with the same customer ID [email protected]
        	raiserror 99999 @errorMsg
        	rollback
    end
END

GO

-- Placeholder
INSERT INTO ${tableName} (name) VALUES ('Mr. T');

Limitations

  • Schema feature in Flyway is disabled for Sybase ASE support due to incompatibility in Sybase ASE
  • No Support for DDL transactions.

Phoenix