Forum Replies Created

Viewing 15 posts - 226 through 240 (of 557 total)

  • RE: Mistakes Columbus made.

    Eric M Russell (8/11/2016)


    "If you break a few eggs, then make an omelet."

    Christopher Columbus,... challenges his critics to make an egg stand on its tip. After his challengers give...

  • RE: Mistakes Columbus made.

    At the time of Columbus there was no Gregorian calendar, so Columbus does/did not have to account for this.

    For the last 3000 years the days of the week have followed...

  • RE: Set Date based on day of Month

    ThomasRushton (8/2/2016)


    That's to maintain compatibility with Lotus 1-2-3.

    As often within software errors, once introduced are very difficult to eliminate. We rather define the reality as wrong and keep software 'bug'...

  • RE: Stored procedures and Creating tables. (Problem).

    There were still some questions asked, I'll try to anwser them briefly.

    Sergiy (7/26/2016)


    Our suppliers were kind enough to agree on a protocol where EOL within a "Product Description" or "delivery...

  • RE: Set Date based on day of Month

    John Mitchell-245523 (8/2/2016)


    Perhaps we can all agree on the following?

    * This is of far more interest to us than it is to the original poster, who hasn't been seen here...

  • RE: Set Date based on day of Month

    Sergiy (8/1/2016)


    ben.brugman (7/21/2016)


    spaghettidba (7/21/2016)


    Dates have no format when they are stored in the database

    Dates definitively have a format when they are stored in the database.

    Dates do not have format stored...

  • RE: Set Date based on day of Month

    Luis Cazares (7/22/2016)


    ben.brugman (7/22/2016)


    Luis Cazares (7/21/2016)


    Similar logic, shorter version.

    SELECT DATEADD(month,12*(YEAR(GETDATE())-1902)+3,0)

    This is a bit 'short' I would guess:

    SELECT DATEADD(month,12*(YEAR('20160401')-1902)+3,0) -- Result 2014-04-01 00:00:00.000

    SELECT DATEADD(month,12*(YEAR('20160331')-1902)+3,0) ...

  • RE: Set Date based on day of Month

    Luis Cazares (7/21/2016)


    Similar logic, shorter version.

    SELECT DATEADD(month,12*(YEAR(GETDATE())-1902)+3,0)

    This is a bit 'short' I would guess:

    SELECT DATEADD(month,12*(YEAR('20160401')-1902)+3,0) -- Result 2014-04-01 00:00:00.000

    SELECT DATEADD(month,12*(YEAR('20160331')-1902)+3,0) -- Oops...

  • RE: Set Date based on day of Month

    Oops

  • RE: Set Date based on day of Month

    spaghettidba (7/21/2016)


    Dates have no format when they are stored in the database

    Dates definitively have a format when they are stored in the database.

    This format partly determines what you can do...

  • RE: Stored procedures and Creating tables. (Problem).

    GSquared (7/20/2016)


    I built something very similar, but it uses XML instead of EAV, and NULLs out empty columns. Used less space and XML parsing was faster than EAV reconstitution....

  • RE: Stored procedures and Creating tables. (Problem).

    Sergiy (7/19/2016)


    Been there, done that.

    Exactly that.

    So then I have some questions, because I am still strugling with parts of the code.

    How do you handle EOL within fields? (Or a bit...

  • RE: Stored procedures and Creating tables. (Problem).

    GSquared (7/19/2016)


    How are you doing the CSV imports? OpenRowset? Linked servers? BCP?

    For most of those, you need to have the file definition already in-place.

    If you're pulling data...

  • RE: Stored procedures and Creating tables. (Problem).

    Sergiy (7/19/2016)


    Because it's not a single-user environment.

    Because a process can be delayed, another file can arrive before the previous one is done.

    Because - see your starting topic.

    You listed there several...

  • RE: Stored procedures and Creating tables. (Problem).

    Sergiy (7/18/2016)


    Create and delete static tables on fly is one of the worst possible ways to do things in SQL Server.

    Why ?

    One of the obvious ones - create static tables...

Viewing 15 posts - 226 through 240 (of 557 total)