hello everyone;
can any one solve my problem.
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Satyapriya NayakRank #47 · 31.5K reputationPosted Dec 16, 2011, 6:13 PM EST
Can you send me the code with your database.
Thanks
sumaira manzoor hussain khanRank #8,900 · 214 reputationPosted Dec 16, 2011, 7:34 PM EST
i am sending my complete meal of error application.
regards
sumaira manzoor
Satyapriya NayakRank #47 · 31.5K reputationPosted Dec 16, 2011, 9:29 PM EST
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 khanRank #8,900 · 214 reputationPosted Dec 17, 2011, 3:55 AM EST
there is no effect after rename table name; here is my code:
Satyapriya NayakRank #47 · 31.5K reputationPosted Dec 17, 2011, 7:27 AM EST
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