469,917 Members | 1,764 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,917 developers. It's quick & easy.

error in java statement to insert data into sql server 2005

whats error in java statement to insert data into sql server 2005???
#
String query = "insert into dbo.guru VALUES('"taskdata.getTaskid() +',' + taskdata.getTaskname() +','+taskdata.getDateOfBirth()"')";
#
Mar 22 '11 #1
1 2387
Rabbit
12,516 Expert Mod 8TB
Your quotes, both single and double, are all over the place. You need to fix those first.
Mar 22 '11 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by moncelh | last post: by
1 post views Thread by Zeljko Bilandzija | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.