실패 "제출"버튼을 클릭하면 :도록 SqlConnection의 로컬 호스트는이 ASP.Net에서 데이터베이스를 사용하려고 내 처음이며, 여기에 문제가있는 사용자 이름
, 나는 어떤 이름을 가지고 있겠지 바로!사용자 코드가 SQLException을 처리하지 못했습니다. 로그인은 "사용자 실패했습니다.
protected void Register_Click(object sender, EventArgs e) { SqlConnection connection = new SqlConnection("server = localhost ;uid=; Password= database = Movies;"); connection.Open(); //FirstName*********** string firstName = UsernameTextBox.Text; string sqlquery = ("INSERT INTO [Movie] (FirstName) VALUES (' " +FirstNameTextBox.Text + " ' "); SqlCommand command = new SqlCommand(sqlquery , connection); command.Parameters.AddWithValue("FirstName", firstName);
서버가 내 컴퓨터에 있기 때문에
감사 포맷하기에 문제가있는 경우 빠른 응답 : – thormayer
그것은 작동하지 않지만. 그것은 말합니다 : "키워드가지지되지 않음"이며 밑줄없이 integrated_security – thormayer
@ user1054375는 "통합 보안"을 사용합니다. – vcsjones