G
Guest
Hi Folk
Im trying to create a datatable but i keep encountering the following error message
An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in system.data.dl
Additional information: System error
does anyone know what im doin wrong
The problem seems to go away when i remove the following portion of code from the select statement
Sum(c.Cost) AS Tot_Cara_Charge
I cant however see what is so wrong with this!!!
I have used this in another datatable and it works fine!
'create the Caravan_Booking datatabl
daClient = New SqlDataAdapter("SELECT a.BookingNo, a.Caravan_Inv_No, b.Caravan_Model,
b.Length, c.Cost, Sum(c.Cost) AS Tot_Cara_Charge FROM Caravan_Booking a,
Caravan_Inv b, Caravan_Details c WHERE a.Caravan_Inv_No = b.Caravan_Inv_No AND
b.Caravan_Model = c.Caravan_Model", Cn
daClient.FillSchema(dsFullBooking, SchemaType.Mapped, "dtCaraBooking"
Can anyone plz offer any assistance
Im trying to create a datatable but i keep encountering the following error message
An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in system.data.dl
Additional information: System error
does anyone know what im doin wrong
The problem seems to go away when i remove the following portion of code from the select statement
Sum(c.Cost) AS Tot_Cara_Charge
I cant however see what is so wrong with this!!!
I have used this in another datatable and it works fine!
'create the Caravan_Booking datatabl
daClient = New SqlDataAdapter("SELECT a.BookingNo, a.Caravan_Inv_No, b.Caravan_Model,
b.Length, c.Cost, Sum(c.Cost) AS Tot_Cara_Charge FROM Caravan_Booking a,
Caravan_Inv b, Caravan_Details c WHERE a.Caravan_Inv_No = b.Caravan_Inv_No AND
b.Caravan_Model = c.Caravan_Model", Cn
daClient.FillSchema(dsFullBooking, SchemaType.Mapped, "dtCaraBooking"
Can anyone plz offer any assistance