Click here to Skip to main content
11,705,998 members (59,208 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# SQL
DbPath.CommandText = "INSERT INTO MapDataImage VALUES Image WHERE @Source='" + TextBox1.Text);

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

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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

is this okay?
thanh_bkhn at 4-Jul-13 2:09am
   
Sorry there is a redundant ")" :)
I edited my answer.
promod madushan at 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
0 OriginalGriff 208
1 Sergey Alexandrovich Kryukov 142
2 Inimicos 60
3 ppolymorphe 57
4 ProgramFOX 50
0 OriginalGriff 9,037
1 Sergey Alexandrovich Kryukov 8,417
2 CPallini 5,189
3 Maciej Los 4,726
4 Mika Wendelius 3,626


Advertise | Privacy | Mobile
Web04 | 2.8.150819.1 | Last Updated 4 Jul 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100