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. Other Discussions
  3. The Weird and The Wonderful
  4. A database view that affects the underlying data?!

A database view that affects the underlying data?!

Scheduled Pinned Locked Moved The Weird and The Wonderful
databasequestion
24 Posts 7 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.
  • L Lost User

    Brisingr Aerowing wrote:

    Whoever wrote that view needs to be drawn and quartered. Then each piece quartered again. Then those chunks dumped into a lava pit.It's called a VIEW for a reason, people!

    I am thinking it isn't actually the developer of the view but the dev of the queries for the view. A view can't actually change the data as it is or its not a "view" per say, but any idiot could have put some insertion or anything with in a query that is accessed when a view is accessed. Granted, probably the same developer but not necessarily.

    Computers have been intelligent for a long time now. It just so happens that the program writers are about as effective as a room full of monkeys trying to crank out a copy of Hamlet. The interesting thing about software is it can not reproduce, until it can.

    L Offline
    L Offline
    Lost User
    wrote on last edited by
    #21

    Or even better: Some triggers.

    The language is JavaScript. that of Mordor, which I will not utter here
    This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a fucking golf cart.
    "I don't know, extraterrestrial?" "You mean like from space?" "No, from Canada." If software development were a circus, we would all be the clowns.

    1 Reply Last reply
    0
    • L Lost User

      Eddy Vluggen wrote:

      You expect the same results, or new ones?

      As another said it depends. Not all vies are static and will report on new data rather than a slice. Depends on how the view was built, but that is not what the OP is really about. It sounds more like a view was causing the data to actually change meaning a query was doing adding to the data set which is against all view policies.

      Computers have been intelligent for a long time now. It just so happens that the program writers are about as effective as a room full of monkeys trying to crank out a copy of Hamlet. The interesting thing about software is it can not reproduce, until it can.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #22

      N_tro_P wrote:

      It sounds more like a view was causing the data to actually change meaning a query was doing adding to the data set which is against all view policies.

      A view does not have side-effects. Adding a row is not the same as a view with side-effects :)

      Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

      1 Reply Last reply
      0
      • J Jorgen Andersson

        Then the only possibility I can think of is if some idiot (IMHO) has created a trigger on the view.

        Wrong is evil and must be defeated. - Jeff Ello

        Richard DeemingR Offline
        Richard DeemingR Offline
        Richard Deeming
        wrote on last edited by
        #23

        SQL Server doesn't let you create a trigger that fires on a SELECT.


        "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

        "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

        J 1 Reply Last reply
        0
        • Richard DeemingR Richard Deeming

          SQL Server doesn't let you create a trigger that fires on a SELECT.


          "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

          J Offline
          J Offline
          Jorgen Andersson
          wrote on last edited by
          #24

          Quite right you are. :doh: I need to get rid of this cold. My brain is getting mushy.

          Wrong is evil and must be defeated. - Jeff Ello

          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