473,487 Members | 2,711 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

error in java statement to insert data into sql server 2005

10 New Member
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 2541
Rabbit
12,516 Recognized Expert Moderator MVP
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
2099
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
1574
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
6914
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
789
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
885
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
2994
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
1862
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
7040
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
2381
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...
0
7106
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6967
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7181
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6846
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7349
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
3076
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3071
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1381
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
267
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.