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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Database & SysAdmin
  3. Database
  4. problem with sql server 2008 - cant change field type

problem with sql server 2008 - cant change field type

Scheduled Pinned Locked Moved Database
helpdatabasesql-serversysadmin
4 Posts 3 Posters 1 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.
  • E Offline
    E Offline
    E_Gold
    wrote on last edited by
    #1

    hi i have table that i want to change any field type (from int - to - varchar) i get this error: saving changes is not permitted........

    M I 2 Replies Last reply
    0
    • E E_Gold

      hi i have table that i want to change any field type (from int - to - varchar) i get this error: saving changes is not permitted........

      M Offline
      M Offline
      Md Marufuzzaman
      wrote on last edited by
      #2

      Probably you get this error while you alter your table in design mode.. If so then you need to change setting form option... set allow auto generate sql script true.. If this issue still not resolve then please let me know...:)

      I will not say I have failed 1000 times; I will say that I have discovered 1000 ways that can cause failure – Thomas Edison.


      Don't forget to click [Vote] / [Good Answer] on the post(s) that helped you. Thanks Md. Marufuzzaman

      E 1 Reply Last reply
      0
      • E E_Gold

        hi i have table that i want to change any field type (from int - to - varchar) i get this error: saving changes is not permitted........

        I Offline
        I Offline
        i i i
        wrote on last edited by
        #3

        what are the data field sizes you are using to convert the field type you can use script as GO BEGIN ALTER TABLE tbl ALTER COLUMN [fld] [varchar](18, 8) NOT NULL END GO or create another field as varchar and update your data of numeric fld to it and then drop old column you can also use casting

        Best Of Regards, SOFTDEV If you have knowledge, let others light their candles at it

        1 Reply Last reply
        0
        • M Md Marufuzzaman

          Probably you get this error while you alter your table in design mode.. If so then you need to change setting form option... set allow auto generate sql script true.. If this issue still not resolve then please let me know...:)

          I will not say I have failed 1000 times; I will say that I have discovered 1000 ways that can cause failure – Thomas Edison.


          Don't forget to click [Vote] / [Good Answer] on the post(s) that helped you. Thanks Md. Marufuzzaman

          E Offline
          E Offline
          E_Gold
          wrote on last edited by
          #4

          thank's for the help yes, i work in design mode. but, where i can find this ...option... set allow auto generate sql script true ?

          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