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
32 lines
831 B
Transact-SQL
32 lines
831 B
Transact-SQL
--first, create new logins (user id / password pair) if not yet created
|
|
USE master;
|
|
GO
|
|
|
|
IF NOT EXISTS (SELECT name FROM master..syslogins WHERE name = 'test_password')
|
|
BEGIN
|
|
CREATE LOGIN test_password WITH PASSWORD='! ;4triou';
|
|
END
|
|
GO
|
|
|
|
IF NOT EXISTS (SELECT name FROM master..syslogins WHERE name = 'test_password2')
|
|
BEGIN
|
|
CREATE LOGIN test_password2 WITH PASSWORD='!} ;4triou';
|
|
END
|
|
GO
|
|
|
|
IF NOT EXISTS (SELECT name FROM master..syslogins WHERE name = 'test_password3')
|
|
BEGIN
|
|
CREATE LOGIN test_password3 WITH PASSWORD='! ;4triou}';
|
|
END
|
|
GO
|
|
|
|
--the following users will be granted access to the test database
|
|
USE $(dbname);
|
|
GO
|
|
|
|
CREATE USER test_password FROM LOGIN test_password;
|
|
CREATE USER test_password2 FROM LOGIN test_password2;
|
|
CREATE USER test_password3 FROM LOGIN test_password3;
|
|
GO
|
|
|