Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. MS SQL Server Not Updating Column Names

MS SQL Server Not Updating Column Names

Scheduled Pinned Locked Moved Database
databasequestionsql-serversysadminannouncement
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Brendan Vogt
    wrote on last edited by
    #1

    Hi, I am using MS SQL Server 2008 Express. I have a product table with columns Id and Name.   I changed these columns to ProductId and ProductName.   In my stored procedure it's not finding ProductId and ProductName, but rather Id and Name.   And now it underlines ProductId and ProductName in red.   How do I update it so that it sees these columns? Regards, Brendan

    A A 2 Replies Last reply
    0
    • B Brendan Vogt

      Hi, I am using MS SQL Server 2008 Express. I have a product table with columns Id and Name.   I changed these columns to ProductId and ProductName.   In my stored procedure it's not finding ProductId and ProductName, but rather Id and Name.   And now it underlines ProductId and ProductName in red.   How do I update it so that it sees these columns? Regards, Brendan

      A Offline
      A Offline
      Andy_L_J
      wrote on last edited by
      #2

      Try this, Right Click the Tables branch in the Server Explorer. Click Refresh. Open the branch for the changed tables - have the changes taken? On the Edit Menu - Click on Intellisense/Refresh Local Cache. Does this help?

      I don't speak Idiot - please talk slowly and clearly 'This space for rent' Driven to the arms of Heineken by the wife

      B 1 Reply Last reply
      0
      • A Andy_L_J

        Try this, Right Click the Tables branch in the Server Explorer. Click Refresh. Open the branch for the changed tables - have the changes taken? On the Edit Menu - Click on Intellisense/Refresh Local Cache. Does this help?

        I don't speak Idiot - please talk slowly and clearly 'This space for rent' Driven to the arms of Heineken by the wife

        B Offline
        B Offline
        Brendan Vogt
        wrote on last edited by
        #3

        Andy_L_J wrote: Right Click the Tables branch in the Server Explorer. Click Refresh. Nope this does not work. Andy_L_J wrote: Open the branch for the changed tables - have the changes taken? Where do I find this? Andy_L_J wrote: On the Edit Menu - Click on Intellisense/Refresh Local Cache. There is no intellisense option from which to choose. From where are you directing me, from SQL Server Management Studio 2008?

        A 1 Reply Last reply
        0
        • B Brendan Vogt

          Hi, I am using MS SQL Server 2008 Express. I have a product table with columns Id and Name.   I changed these columns to ProductId and ProductName.   In my stored procedure it's not finding ProductId and ProductName, but rather Id and Name.   And now it underlines ProductId and ProductName in red.   How do I update it so that it sees these columns? Regards, Brendan

          A Offline
          A Offline
          Ashfield
          wrote on last edited by
          #4

          You need to recompile your stored procedure. It will then reflect the new column names.

          Bob Ashfield Consultants Ltd Proud to be a 2009 Code Project MVP

          1 Reply Last reply
          0
          • B Brendan Vogt

            Andy_L_J wrote: Right Click the Tables branch in the Server Explorer. Click Refresh. Nope this does not work. Andy_L_J wrote: Open the branch for the changed tables - have the changes taken? Where do I find this? Andy_L_J wrote: On the Edit Menu - Click on Intellisense/Refresh Local Cache. There is no intellisense option from which to choose. From where are you directing me, from SQL Server Management Studio 2008?

            A Offline
            A Offline
            Andy_L_J
            wrote on last edited by
            #5

            Did Ashcroft' answer help? You will have to change all references to these field names in all Functions and Stored Procedues that call them in code.

            I don't speak Idiot - please talk slowly and clearly 'This space for rent' Driven to the arms of Heineken by the wife

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups