kritika Rana

kritika Rana

  • NA
  • 252
  • 100.6k

sql server connection to login form created in asp.net and c

Apr 8 2013 6:07 AM
hi

I have created a login page and a table in sql server using windows authentication and a stored procedure to insert the values from login form

But when I click on the login button it shows the following error

Server Error in '/WebSite1' Application.

Login failed for user 'vikas-PC ikas'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: Login failed for user 'vikas-PC ikas'.
[SqlException (0x80131904): Login failed for user 'vikaskriti'.]



My connection string is as follows--------->>>>


  string strcon = "Data source= -.; User id=vikas-PC\vikas; initial catalog =master";

Please help me in resolving the above error

Thanks
kritika Rana

Answers (1)