I got the task:
user on login page types login/password, and your application should try to connect to SQL Server using these parameters
And I don't know how to do this on server-side... I was googling it for an hour with no success.
BTW, I'm using ASP.NET MVC