Merge pull request #463 from yitam/userScripts

adding test users for testing in Azure -- the password tests for both drivers require re-design
This commit is contained in:
Jenny Tam 2017-09-25 12:27:30 -07:00 committed by GitHub
commit cba037a809
2 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,18 @@
--for this script to work in Azure, use sqlcmd to connect to master database
IF NOT EXISTS (SELECT name FROM sys.sql_logins WHERE name = 'test_password')
BEGIN
CREATE LOGIN test_password WITH PASSWORD='! ;4triou';
END
GO
IF NOT EXISTS (SELECT name FROM sys.sql_logins WHERE name = 'test_password2')
BEGIN
CREATE LOGIN test_password2 WITH PASSWORD='!} ;4triou';
END
GO
IF NOT EXISTS (SELECT name FROM sys.sql_logins WHERE name = 'test_password3')
BEGIN
CREATE LOGIN test_password3 WITH PASSWORD='! ;4triou}';
END
GO

View file

@ -0,0 +1,21 @@
--for this script to work in Azure, create_logins_azure.sql must have been invoked beforehand
--assuming these logins exist, use sqlcmd to connect to a test database
--these users will be granted access to that database
IF NOT EXISTS (SELECT name FROM sysusers WHERE name = 'test_password')
BEGIN
CREATE USER test_password FROM LOGIN test_password;
END
GO
IF NOT EXISTS (SELECT name FROM sysusers WHERE name = 'test_password2')
BEGIN
CREATE USER test_password2 FROM LOGIN test_password2;
END
GO
IF NOT EXISTS (SELECT name FROM sysusers WHERE name = 'test_password3')
BEGIN
CREATE USER test_password3 FROM LOGIN test_password3;
END
GO