Hi and heeeelp!
Can you help me how to create a new database "Test", with user "Hank", password "PASS"?? Must have rights to make tables, procedures and triggers.
Thanks. Ole
use master
go
-- create the database...this is the basic statement without
-- specify size or filegroup
CREATE DATABASE Test
GO
--create login and specify default database
EXEC sp_addlogin 'HANK', 'PASS', 'Test'
GO
-- specify database
use test
go
-- grant permissions
GRANT CREATE TABLE, CREATE DATABASE, CREATE PROCEDURE
TO test
GO
Something to note is that you can't grant or revoke permissions to create triggers.
Alternatively right click on databases in Enterprise Mng, Create Database...select options.
Under security in EM right click Logons, choose options, default database, password and database access.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.