I have made a C# front end for a database on SQL Server 2008 R2.
Is there a way to create a sql server login from the front end program or do they need to be created in the sql management studio?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes you can do it with SQL code. Take a look at the CREATE LOGIN documentation.
Here is example SQL code:
CREATE LOGIN <login_name> WITH PASSWORD = '<password>' MUST_CHANGE