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. Columns failing to save data on insert

Columns failing to save data on insert

Scheduled Pinned Locked Moved Database
databasesysadmintoolshelptutorial
1 Posts 1 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.
  • M Offline
    M Offline
    Mike Osbahr
    wrote on last edited by
    #1

    On SQL 7 I wrote a stored procedure which included: Insert tblA A.item1, A.item2,A.item3, ... A.item10,A.item11,A.item12, B.item1,B.item2,B.item3 From tblA A, tblB B Where A.IDcol = @colA And B.IDcol = @colB Everything worked as expected. I generated a script, imported it into another server (which happened to be SQL 2000), and it would not write the last three items when inserting. The fact that the items were coming from another table appears to just be a coincidence. I replaced the final three items with constants and there was still no joy. Finally I wrote an Update to modify the final three items after the insert was completed. The insert itself generated no errors, it just wouldn't write the data. If anyone has seen this kind of problem before, I would sure appreciate knowing the cause and how to avoid it in the future. Thanx... >>>-----> MikeO

    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