sql server - Creating a SQL Login for Windows user -
i have .net application connects sql server on network. user logs in windows user. sql server set windows authentication only. client machine, user not created on sql server login yet. on first startup of application, application needs check if windows user sql server login , if not, login must created .net application.
my question user log in sql server check if login exists. cannot current windows user, user must created first , on first run not exist on sql server.
i know how proceed once connection established, , need on correct login use when windows user not exist login on sql server. keep in mind server set windows authentication only.
all of must done through .net code (vb or c#).
thanks help.
i not understand question, answering upon think asking:
you need logged in administrator in windows since using windows authentication only. once have logged in admin, windows recognise , give authentication rights when go sql server these rights automatically passed on, allowing create new user permissions , grant access etc...
let me know if answers question correctly.
Comments
Post a Comment