Sha256: 086b73f289ffdaaa2bbbe6666cc3ddc79a6e34f61ca7ad738cb8415027d2f83a

Contents?: true

Size: 409 Bytes

Versions: 14

Compression:

Stored size: 409 Bytes

Contents

:ON ERROR EXIT

PRINT 'RUNNING DB-CREATE.SQL, CREATING TINYTDS TEST DATABASE';
IF NOT EXISTS(SELECT * FROM sys.databases WHERE name = 'tinytdstest')
BEGIN
  CREATE DATABASE [tinytdstest];
END
GO

IF EXISTS (SELECT name FROM master.dbo.sysdatabases WHERE name LIKE 'tinytdstest')
BEGIN
  PRINT 'TINY TDS TEST DB SUCCESSFULY CREATED';
END
ELSE
BEGIN
  THROW 51000, 'TINY TDS TEST DB CREATION FAILED', 1;
END
GO

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
tiny_tds-3.1.0-x64-mingw-ucrt test/sql/db-create.sql
tiny_tds-3.1.0-x64-mingw32 test/sql/db-create.sql
tiny_tds-3.1.0 test/sql/db-create.sql
tiny_tds-3.0.0-x64-mingw32 test/sql/db-create.sql
tiny_tds-3.0.0-x64-mingw-ucrt test/sql/db-create.sql
tiny_tds-3.0.0 test/sql/db-create.sql
tiny_tds-2.1.7-x64-mingw-ucrt test/sql/db-create.sql
tiny_tds-2.1.7-x64-mingw32 test/sql/db-create.sql
tiny_tds-2.1.7-x86-mingw32 test/sql/db-create.sql
tiny_tds-2.1.7 test/sql/db-create.sql
tiny_tds-2.1.6-x86-mingw32 test/sql/db-create.sql
tiny_tds-2.1.6-x64-mingw-ucrt test/sql/db-create.sql
tiny_tds-2.1.6-x64-mingw32 test/sql/db-create.sql
tiny_tds-2.1.6 test/sql/db-create.sql