473,382 Members | 1,390 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

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 2538
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

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

Similar topics

1
by: dmiller23462 | last post by:
Hey guys.... I put an error-handling in my page and have it posted at the complete end of the code, see below(when people were putting in 's I was getting the delimiter errors). Great, I...
1
by: amjad | last post by:
Hi i received that error when connection to sql server 2005 from work station . An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
0
by: ArunkumarWizteam | last post by:
Recently we have upgraded our Database to sql server 2005, but we are getting the following error : "When connecting to SQL Server 2005, this failure may be caused by the fact that under the...
1
by: moncelh | last post by:
Please, how to create a table with SQL statement in SQL Server 2005 including an ID number for the first field as well as an incrementation? Thank you.
1
by: Zeljko Bilandzija | last post by:
Hello! I have a problem, and I looking for help if someone can handle this. I use asp.net 2.0, and I create web site which support users from internet (Web Site Administration Tool) and with...
1
by: BalajiJaganathan | last post by:
When iam trying to execute a dts package i got the following error - Copying to .. (Error) Messages Information 0x402090df: Data Flow Task: The final commit for the data insertion has started. ...
1
by: suess | last post by:
I'm a newb to Informix and trying to convert the following statement to SQL Server (2005). The problem is the join. From what I've been able to find, it appears that Informix outer joins are left...
1
by: neelsbr | last post by:
Error getting when i insert data after truncate the table.once more i truncate that table data is going otherwise it will show the error message. this is the error message i am getting .."Failed to...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.