나는 C# 및 Asp.Net에서 작업하고 있습니다. 나는 데이터 어댑터를 다음하고 데이터 설정 : 내가 쿼리 결과로 데이터 세트 ds_for_showing_X_Rows_Cols
를 입력 할데이터 어댑터 쿼리 결과로 데이터 세트 채우기 C# Asp.Net
SqlDataAdapter da_Select_Matching_Records;
DataSet ds_for_showing_X_Rows_Cols = new DataSet();
.
con = new SqlConnection("Data Source=local;Initial Catalog=Test;Integrated Security=True");
da_Select_Matching_Records = new SqlDataAdapter("Select BusinessSector5.Description_DE, SubCategory.Kategorie "+
"FROM Match_Subcategory_BusinessSector5 INNER JOIN "+
" SubCategory ON Match_Subcategory_BusinessSector5.SubCategoryID = SubCategory.ID INNER JOIN "+
" BusinessSector5 ON Match_Subcategory_BusinessSector5.BusinessSector5ID = BusinessSector5.ID", con);
//Filling of Data Set
da_Select_Matching_Records.Fill(ds_for_showing_X_Rows_Cols, "Description_DE, Kategorie");
은 내가 데이터 세트를 작성하고있는 줄에이 오류를 얻고있다 : 여기 내 코드입니다. 나는 Sql Server 관리 스튜디오에서 쿼리를 사용하고 실행 중입니다.
Incorrect syntax near the keyword INNER.
가입 : http://msdn.microsoft.com/en-us/ 라이브러리/bbw6zyha (v = vs.110) .aspx – hutchonoid
각 줄마다 공백 추가 –