Click here to Skip to main content
12,070,884 members (64,106 online)
Rate this:
 
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 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 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
Top Experts
Last 24hrsThis month


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