Code: Select all
CREATE LOGIN _username_
WITH PASSWORD = '_password_';
GO
-- Creates a database user for the login created above.
CREATE USER _username_ FOR LOGIN _username_;
GO
exec sp_addrolemember 'db_owner', '_username_'
go
In order to achieve this you can use our "Dialog Editor" feature. Here are the main steps to proceed:Now i have another query, i made a form where user can type the Database Username, Password and confirm password. I want to validate this field this fields should be mandatory. After filling this form completely then only user can navigate to the next step and i need to compare the password type in the textbox.
FOLLOW US
Get the latest news in Application Packaging