How to create a login account in ms sql server to access the database engine using "create login" statements?



How to create a login account in ms sql server to access the database engine using "create logi..

Answer / Ankit Dwivedi

To create a login account in MS SQL Server, use the following command: CREATE LOGIN [login_name] WITH PASSWORD = 'password'; To grant permissions to this login, use the ALTER ROLE statement: ALTER ROLE [role_name] ADD MEMBER [login_name];

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SQL Server Interview Questions

Please give me the SP for the below scenario. I have two tables named Table1 and Table2...I need to fetch record by record from Table1 and insert the record in to table2 where the value in the sno column of the table1 is even number.

4 Answers   Value Labs,


Explain what is log shipping?

1 Answers  


What is de-normalization in sql database administration? Give examples?

1 Answers  


How do I run a trace in sql server?

1 Answers  


How do I start sql server?

1 Answers  


How to create a new schema in a database?

1 Answers  


how to use DTS package in 2000,2005,2008 in sql server

1 Answers   Microsoft,


How to enter comments in transact-sql statements?

1 Answers  


Which command is used for user defined error messages?

1 Answers  


In performance wise distinct is good or group by is good? eg:select name from emp group by name; select distinct name from emp;

5 Answers   Infosys,


What is Stored Procedure? What is Views in sql server? Difference between a User Defined Function and a Stored Procedure Difference between a primary key and a unique key? What is a join and explain different types of joins. Difference between temp table and table variable Difference between Triggers and Stored Procedures Difference between UNION ALL Statement and UNION What is COALESCE / Why do we use COALESCE? Why we use SET ROWCOUNT in Sql How many clustered index can have a table How many types of local tables in SQL SERVER Difference between DELETE and TRUNCATE What is Aggregate Functions? What is Row_Number()? What are Ranking Functions? What is NOLOCK? What is CTE? What are the Advantages of using CTE? What is the STUFF function and how does it differ from the REPLACE function? What are the difference between clustered and a non-clustered index? What are the different index configurations a table can have? Difference between a HAVING CLAUSE and a WHERE CLAUSE? Difference between SET and SELECT Provide all the built in string function of SQL SERVER Difference between char and varchar data types Define candidate key, alternate key, composite key. What are constraints? Explain different types of constraints. What is a self join? Explain it with an example. How will you convert table row to a column comma separated value

4 Answers   ACS,


what is the output for this query select * from employee where 1=1;

4 Answers  


Categories