Click here to Skip to main content
15,883,705 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
C#
DbPath.CommandText = "INSERT INTO MapDataImage VALUES Image WHERE @Source='" + TextBox1.Text);


why this is not working !!!!
Posted
Updated 3-Jul-13 17:41pm
v2
Comments
ArunRajendra 3-Jul-13 23:35pm    
I guess @Source is wrong it should be field name.

1 solution

You lack of ending quote:
DbPath.CommandText = "INSERT INTO MapDataImage VALUES Image WHERE @Source='" + TextBox1.Text + "';";
 
Share this answer
 
v2
Comments
promod madushan 4-Jul-13 1:54am    
hey , it gives an error and it says represent text as series of unicode characters
promod madushan 4-Jul-13 1:56am    
DbPath.CommandText = "INSERT INTO MapDataImage VALUES Image WHERE @Source='" + TextBox1.Text + "';";

is this okay?
thanh_bkhn 4-Jul-13 2:09am    
Sorry there is a redundant ")" :)
I edited my answer.
promod madushan 4-Jul-13 3:14am    
Thanks mate!!!!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900