itsurge
دوشنبه 21 اردیبهشت 1388, 19:48 عصر
سلام من در c# این کد رو می نویسیم ولی به هم ایراد می گیرد چگونه رفعش کنم
SqlConnection objConnection = new
SqlConnection("Server=localhost;Database=smael;IntegratedSecurity =true;");
SqlCommand objCommand = new SqlCommand();
objCommand.Connection = objConnection;
objCommand.CommandText = "INSERT INTO smael " +
"(name, name-kh, id, phon) " +
"VALUES('ali', 'Barnes', '21', 2708194)";
objConnection.Open();
objCommand.ExecuteNonQuery();
objConnection.Close();
این مشکل را می گیرد.
Keyword not supported: 'integratedsecurity'.
در ضمن من از user خود ویندوز به sql کانکت می شم.
SqlConnection objConnection = new
SqlConnection("Server=localhost;Database=smael;IntegratedSecurity =true;");
SqlCommand objCommand = new SqlCommand();
objCommand.Connection = objConnection;
objCommand.CommandText = "INSERT INTO smael " +
"(name, name-kh, id, phon) " +
"VALUES('ali', 'Barnes', '21', 2708194)";
objConnection.Open();
objCommand.ExecuteNonQuery();
objConnection.Close();
این مشکل را می گیرد.
Keyword not supported: 'integratedsecurity'.
در ضمن من از user خود ویندوز به sql کانکت می شم.