41af6fc0a2
* porting database setup files for functional tests * Updating yml files to setup test databases before running the tests * update spacing * Renaming env variables * Modifying cleanup_dbs.py and setup_dbs.py scripts so that they can execute database setup files * update env variables * Fix typo * Update .travis.yml * update env variables * update travis scripts * Checking sqlcmd setup on travis * Checking sqlcmd setup on travis * sqlcmd bcp fix * sqlcmd bcp fix * sqlcmd bcp fix * sqlcmd bcp fix * sqlcmd bcp fix * sqlcmd bcp fix * sqlcmd bcp fix * sqlcmd bcp fix * sqlcmd bcp fix * Adding a test to make sure the database is setup properly * update exec_sql_scripts.py * update sqlsrv_num_fields.phpt * update sqlsrv_num_fields.phpt * update * Fixing identation
14 lines
166 B
Transact-SQL
14 lines
166 B
Transact-SQL
USE [master]
|
|
GO
|
|
|
|
IF EXISTS (SELECT name FROM sys.databases WHERE name = '$(dbname)' )
|
|
|
|
BEGIN
|
|
DROP DATABASE $(dbname)
|
|
END
|
|
|
|
CREATE DATABASE $(dbname)
|
|
|
|
GO
|
|
|