Click here to Skip to main content
15,919,613 members

Comments by Member 10794814 (Top 28 by date)

Member 10794814 23-May-14 10:14am View    
thank you
Member 10794814 20-May-14 7:31am View    
insertCommand.ExecuteNonQuery(); its there..!!!
Member 10794814 20-May-14 3:56am View    
same error incorrect syntax near 'from'.
Member 10794814 20-May-14 3:01am View    
using (SqlCommand cmd = new SqlCommand("select from" + coursetype + "where UID = @UID", con)
if cource type is junior it retrieve data from junior else from degree

string insertQuery = "DELETE FROM" + coursetype + "WHERE UID = '@UID'";<br>
and this query does not delete data from table
Member 10794814 19-May-14 0:06am View    
@syed shanu
Sir Actually there are 3 tables, and it retrieve student info from junior or degree table.
I give only UID to the application and click on search button then the application will retrieve value from junior or degree table. IF ITS A JUNIOR STUDENT IT RETRIEVE FROM FROM JUNIOR OR VICE VERSA.
This both table has Column name as A "UID".
And application will retrieve payment info from payment table but it has column name as a "STUD_UID".
Sir help me out how can i do this ?