Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7916887
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T14:58:17+00:00 2026-06-03T14:58:17+00:00

I have the following code in a VB .NET application. I am trying to

  • 0

I have the following code in a VB .NET application. I am trying to update columns in an Oracle table with data with SQL data. When I run the application, I get (ORA-00933: SQL command not properly ended) for the ‘or_cmd_3.ExecuteNonQuery()’ line.

If I strip out the code and run it in TOAD or SQL Developer, replacing the temp varialve with some bogus data it updates fine. What am I missing?

Many thanks in advance.

  ElseIf (oracle_summary_temp = ueio_tmpALM_Summary) And (oracle_request_ID_temp = ueio_tmpALM_ID) And added_to_alm = "1" AndAlso ({"Deferred", "Rejected", "Closed"}.Contains(ueio_tmpALM_Status)) Then
Dim update_oracle As String = Nothing

update_oracle =
"update SCHEMA.TABLE set ISSUE_ADDED_TO_ALM = '2'," & _
"ISSUE_STATUS = '" & ueio_tmpALM_Status & "'," & _
"ISSUE_REJECTED_REASON = '" & ueio_tmpALM_Rejected & "'," & _
"ISSUE_PHASE = '" & ueio_tmpALM_Current_Phase & "'," & _
"ISSUE_PRIORITY = '" & ueio_tmpALM_Priority & "'," & _
"ISSUE_SYSTEM_IMPACTED = '" & ueio_tmpALM_System_Impacted & "'," & _
"ISSUE_DQ_ANALYST = '" & ueio_tmpALM_DQ_Analyst & "'," & _
"ISSUE_COMMENTS = '" & ueio_tmpALM_Comments & "'," & _
"ISSUE_OWNER_DEPARTMENT = '" & ueio_tmpALM_Owner_Department & "'," & _
"ALM_ISSUE_ID = '" & ueio_tmpALM_ID & "'," & _
"DQ_Team = '" & ueio_tmpALM_DQ_Team & "'" & _
"where ISSUE_SUMMARY = '" & ueio_tmpALM_Summary & "'"

Dim or_cmd= New NetOracle.OracleCommand(update_oracle, OracleConn)
or_cmd.ExecuteNonQuery()
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T14:58:18+00:00Added an answer on June 3, 2026 at 2:58 pm

    Building a query text concatenating input strings is allways a bad practice.
    One reason is that you need to remove characters that break the query like a single quote or other defined by your database query syntax.
    But the most important reason is the possibility of Sql Injection Attacks.
    That said, the possible reason of your error is the missing space before the where clause.
    You should replace all of your text using parameters in this way:

    update_oracle = "update SCHEMA.TABLE set " & _
           "ISSUE_ADDED_TO_ALM = '2'," & _ 
           "ISSUE_STATUS = :tmpALMStatus, " & _
           "ISSUE_REJECTED_REASON = :tmpALMRejected," & _ 
           "ISSUE_PHASE = :tmpALMCurrent_Phase, " & _
           "ISSUE_PRIORITY = :tmpALMPriority," & _
           "ISSUE_SYSTEM_IMPACTED = :tmpALMSystemImpacted," & _ 
           "ISSUE_DQ_ANALYST = :tmpALMDQAnalyst, " & _ 
           "ISSUE_COMMENTS = :tmpALMComments," & _
           "ISSUE_OWNER_DEPARTMENT = :tmpALMOwnerDepartment, " & _ 
           "ALM_ISSUE_ID = :tmpALM_ID," & _ 
           "DQ_Team = :tmpALM_DQ_Team" & _
           " where ISSUE_SUMMARY = :tmpALM_Summary" 
    
       Dim or_cmd= New NetOracle.OracleCommand(update_oracle, OracleConn)   
       or_cmd.Parameters.AddWithValue(":tmpALMStatus",ueio_tmpALM_Status)
       or_cmd.Parameters.AddWithValue(":tmpALMRejected" ,ueio_tmpALM_Rejected )
       or_cmd.Parameters.AddWithValue(":tmpALMCurrent_Phase",ueio_tmpALM_Current_Phase)
       or_cmd.Parameters.AddWithValue(":tmpALMPriority",ueio_tmpALM_Priority)
       or_cmd.Parameters.AddWithValue(":tmpALMSystemImpacted" ,ueio_tmpALM_System_Impacted)
       or_cmd.Parameters.AddWithValue(":tmpALMDQAnalyst" ,ueio_tmpALM_DQ_Analyst)
       or_cmd.Parameters.AddWithValue(":tmpALMComments",ueio_tmpALM_Comments)
       or_cmd.Parameters.AddWithValue(":tmpALMOwnerDepartment",ueio_tmpALM_Owner_Department)
       or_cmd.Parameters.AddWithValue(":tmpALM_ID",ueio_tmpALM_ID)
       or_cmd.Parameters.AddWithValue(":tmpALM_DQ_Team",ueio_tmpALM_DQ_Team)
       or_cmd.Parameters.AddWithValue(":tmpALM_Summary",ueio_tmpALM_Summary)
       or_cmd.ExecuteNonQuery()         
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an small ASP.NET application that reads data from a table and sends
I'm trying to implement AES encryption in my application. I have the following code
I am trying to get the DB2 data provider from a 32-bit .Net application
I have following asp.net code but it gives error when I change dropdown selected
I have the following code: http://jsfiddle.net/uRCL2/1 At the moment the result is shown in
Anything I have tried didn't work. Currenly I have following code to change asp.net
I have the following code in my ASP.NET project public sealed class IoC {
I have the following code in a full .NET framework solution: public delegate int
i have the following code in an asp.net mvc view. <% = Html.DropDownList(Filter, new
I have the following code in a ASP.NET master page: <div id=hyperlinkimage><asp:HyperLink ID=SomeHyperLink runat=Server

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.