Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Answer
sql server connection to login form created in asp.net and c
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
kritika Rana
11y
1.8k
1
Reply
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-PCikas'.
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-PCikas'.
[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
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
Sql server management studio installation
error.............. Keyword not supported: 'source'