Click here to Skip to main content
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 18:33pm
Edited 3-Jul-13 18: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 8,284
1 Sergey Alexandrovich Kryukov 7,327
2 DamithSL 5,614
3 Manas Bhardwaj 4,986
4 Maciej Los 4,920


Advertise | Privacy | Mobile
Web01 | 2.8.1411023.1 | Last Updated 4 Jul 2013
Copyright © CodeProject, 1999-2014
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