How to Create Login and User through query in Sql server
2005.and also how to delete Login and User through query?
Answers were Sorted based on User's Feedback
Answer / rajiv singh
CREATE LOGIN ra
WITH PASSWORD = 'passwd';
USE COREDATA;
CREATE USER ra FOR LOGIN ra;
GO
DROP LOGIN name
Is This Answer Correct ? | 2 Yes | 4 No |
Answer / jagadeesh
create login 'name' with password='cghhicl'
GO
DROP LOGIN name
Is This Answer Correct ? | 0 Yes | 4 No |
i have table students with fields classname,studname select * from students classname studname 1 xxxxx 1 yyyy 1 zzzz 2 qqqq 2 tttt 3 dsds 3 www i want the output should be No of students in class 1 : 3 No of students in class 2 : 2 No of students in class 3 : 2
In which files does sql server actually store data?
What is @@rowcount in sql?
What is clustered index
How to edit table in sql server 2017?
How to rebuild all indexes on a single table?
Suppose i have one sql query that contains 2 minute to execute.After one weekly i am executing same query that is taking 5 minute.Why our same query is taking more time.what would be my approach to reduce execution time.Please help.
1 Answers Cognizant, HCL, Value Labs,
What is difference between after and before?
Where are SQL server users names and passwords are stored in sql server?
Difference between report and query parameter. Why do we need different type of parameter?
how to write test cases for testing databases,especially for testing and writing test cases for stored procedures.any real time database testers.please answer me.
How to check if stored procedure is running in sql server?