troubleshooting Question

Error Parsing Query

Avatar of H-SC
H-SCFlag for United States of America asked on
Visual Basic.NET
5 Comments1 Solution221 ViewsLast Modified:
I have a local database(SQL CE) in my winforms application that I am trying to update with the following code.  When the code runs it errors out.

Here is the Error - There was an error parsing the query. [ Token line number = 1,Token line offset = 109,Token in error = ) ]

Here is my code:
Dim myConn2 As SqlServerCe.SqlCeConnection = New SqlServerCe.SqlCeConnection("DataSource=|DataDirectory|\SSI.sdf")
        Catch ex As Exception
        End Try
        Dim command2 As New SqlServerCe.SqlCeCommand("insert into insp_def_buildings(internalctl)select ctl_num from buildings_rooms where buildings_rooms.sel = 1)", myConn2)
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 5 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros