Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Incorrect syntax near ')'. for SQL Server String

Posted on 2010-11-09
2
Medium Priority
?
398 Views
Last Modified: 2012-06-21
Good Day:

I am using VS.NET 2005, VB.NET, and SQL Server.  The following syntax gives me an error that reads:
Incorrect syntax near ')'.

Dim sSQL as string
   sSQL = "INSERT INTO CodesQuick(Description, Type, ) values('" & _
                                            Me.cboType.Text & "','" & _
                                            frmQuote.cboDelivery.Text & "')"


Any Suggestions?

Thanks,
Denise
0
Comment
Question by:DeniseGoodheart
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 7

Accepted Solution

by:
rogerard earned 2000 total points
ID: 34096779
You have an extra comma after the word type.
0
 

Author Comment

by:DeniseGoodheart
ID: 34096918
Yes of course.

Thank you rogerard.  
0

Featured Post

Survive A High-Traffic Event with Percona

Your application or website rely on your database to deliver information about products and services to your customers. You can’t afford to have your database lose performance, lose availability or become unresponsive – even for just a few minutes.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
This article describes how to use the timestamp of existing data in a database to allow Tableau to calculate the prior work day instead of relying on case statements or if statements to calculate the days of the week.
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

670 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question