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. I blame San Andreas - it's his default...

I blame San Andreas - it's his default...

Scheduled Pinned Locked Moved The Weird and The Wonderful
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.
  • D Offline
    D Offline
    Duncan Edwards Jones
    wrote on last edited by
    #1

    ALTER TABLE [tablename] ADD DEFAULT (NULL) FOR [fieldname]

    Well yes - that should make a huge difference....:confused:

    Z 1 Reply Last reply
    0
    • D Duncan Edwards Jones

      ALTER TABLE [tablename] ADD DEFAULT (NULL) FOR [fieldname]

      Well yes - that should make a huge difference....:confused:

      Z Offline
      Z Offline
      ZurdoDev
      wrote on last edited by
      #2

      Duncan Edwards Jones wrote:

      that should make a huge difference

      You can never be too clear. :-\

      There are only 10 types of people in the world, those who understand binary and those who don't.

      L 1 Reply Last reply
      0
      • Z ZurdoDev

        Duncan Edwards Jones wrote:

        that should make a huge difference

        You can never be too clear. :-\

        There are only 10 types of people in the world, those who understand binary and those who don't.

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

        Then why is there no comment explaining the default? :rolleyes:

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

        Z 1 Reply Last reply
        0
        • L Lost User

          Then why is there no comment explaining the default? :rolleyes:

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

          Z Offline
          Z Offline
          ZurdoDev
          wrote on last edited by
          #4

          Eddy Vluggen wrote:

          Then why is there no comment explaining the default?

          Reminds me of some code I inherited.

          DataManager dm = new DataManager();
          // open the connection
          dm.Open();

          Ya, thanks for the helpful comment. :rolleyes:

          There are only 10 types of people in the world, those who understand binary and those who don't.

          L 1 Reply Last reply
          0
          • Z ZurdoDev

            Eddy Vluggen wrote:

            Then why is there no comment explaining the default?

            Reminds me of some code I inherited.

            DataManager dm = new DataManager();
            // open the connection
            dm.Open();

            Ya, thanks for the helpful comment. :rolleyes:

            There are only 10 types of people in the world, those who understand binary and those who don't.

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

            That is rather helpful; it explains that the DataManager is merely a wrapper round a connection, and that it probably should be deleted from the project and simply replaced by an IDbConnection and a factory :-\

            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
            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