メインテーブルとサンテーブルからdatagridviewに入力したい![ここに画像の説明を入力してください] [1]
私のコード:
SqlConnection conn = new SqlConnection(@"Data Source=SHARKAWY;Initial Catalog=Booking;Persist Security Info=True;User ID=sa;Password=123456");
conn.Open();
txtDate.Text = DateTime.Now.ToShortDateString();
DataSet Booking_ds = new DataSet();
DataSet Trip_ds = new DataSet();
DataSet Fleet_ds = new DataSet();
DataSet Partner_ds = new DataSet();
DataSet Guide_ds = new DataSet();
SqlDataAdapter Booking_da;
string Bookingsql = "SELECT dbo.Booking.BookingID, dbo.TripTypes.TripName, dbo.Partners.PartnerName, dbo.Booking.DelegateName, dbo.Fleets.FleetName, dbo.Guides.GuideName, dbo.Booking.AdultNum, dbo.Booking.AdultPrice, dbo.Booking.BookingDate, dbo.Booking.ChildNum, dbo.Booking.ChildPrice, dbo.UserInfo.UserName, dbo.Booking.TripID, dbo.Booking.PartnerID"
+"FROM dbo.Booking INNER JOIN"
+"dbo.Partners ON dbo.Booking.PartnerID = dbo.Partners.PartnerID INNER JOIN"
+"dbo.TripTypes ON dbo.Booking.TripID = dbo.TripTypes.TripID INNER JOIN"
+"dbo.Fleets ON dbo.Booking.FleetID = dbo.Fleets.FleetID INNER JOIN"
+ "dbo.Guides ON dbo.Booking.GuideName = dbo.Guides.GuideID INNER JOIN"
+"dbo.UserInfo ON dbo.Booking.UserName = dbo.UserInfo.UserID BookingDate = '"+txtDate.Text+"'";
Booking_da = new SqlDataAdapter(Bookingsql, conn);
Booking_da.Fill(Booking_ds, "Booking");
DGViewBooking.DataSource = Booking_ds.Tables["Booking"];
conn.Close();
エラーが見つかりません