hello everyone;
can any one solve my problem.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Satyapriya NayakPosted Dec 17, 2011, 12:27 PM
May i know Why you are using single quotes in tables.
'clinicMainsurgery'
'patientsurgery'
change it to
clinicMainsurgery
patientsurgery
Use the below code
SqlCommand cmd = new SqlCommand("select s.[surgery d],s.[patient surgeryid],s.[surgery name],s.[surgery type id],s.[type name],s.[charges],s.[pv id],s.[patient visit charges] from mainsurgery s inner join surg su on su.[surgery id]=s.[surgery id] inner join patientsurgery ps on ps.[patient surgery id]=s.[patient surgery id]");
Thanks
sumaira manzoor hussain khanPosted Dec 17, 2011, 8:55 AM
there is no effect after rename table name; here is my code:
Satyapriya NayakPosted Dec 17, 2011, 2:29 AM
Please the rename the tables as
sp_rename 'main surgery', 'mainsurgery'
sp_rename 'patient surgery', 'patientsurgery'
While creating any tables dont give any space.
After renaming change it as
SqlCommand cmd = new SqlCommand("select s.[surgery d],s.[patient surgeryid],s.[surgery name],s.[surgery type id],s.[type name],s.[charges],s.[pv id],s.[patient visit charges] from mainsurgery s inner join surg su on su.[surgery id]=s.[surgery id] inner join patientsurgery ps on ps.[patient surgery id]=s.[patient surgery id]");
Thanks
sumaira manzoor hussain khanPosted Dec 17, 2011, 12:34 AM
i am sending my complete meal of error application.
regards
sumaira manzoor
Satyapriya NayakPosted Dec 16, 2011, 11:13 PM
Can you send me the code with your database.
Thanks