Forum Replies Created

Viewing 15 posts - 241 through 255 (of 562 total)

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

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

    Steve Jones - SSC Editor (7/15/2016)


    It helps if you get more specific, then we can work on that solution, perhaps making it more general.

    At the moment I am in a...

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

    GSquared (7/15/2016)


    If that's reasonably accurate, I recommend breaking the functionality up into multiple sub-procs. One proc that creates a table, one that does "process 1", etc. Then conditionally...

  • RE: Replicate Vb/excel Formula to SQL 2008 - HULL Moving Average

    Whford (5/24/2016)[hr

    But this one calculation, I am just having a hard time wrapping my mind around. :ermm:

    Are you still looking for a solution ?

    What is the size of N ?

    What...

  • RE: How to get output from a select to a file ?

    Jeff Moden (5/13/2016)Nah. No security breach. Not even a bad practice if it's limited to ...

    In general most practises do not form a security breach, provided that the...

  • RE: How to get output from a select to a file ?

    sestell1 (5/13/2016)


    Interesting question.

    I've always used a combination of xp_cmdshell and bcp to move data to/from files within T-SQL.

    As said this poses a security 'breach'.

    You could also use OLE automation, but...

  • RE: Processing strings.

    I am on leave right now, but still want to keep you posted with my progress.

    Tackled most of the problems using SQL (T-SQL) only. Processing speed is adequate for what...

  • RE: Processing strings.

    Jeff Moden (4/7/2016)

    As hardcore as I am about using T-SQL for database functionality, I'll readily admit that there are many things that need to be done outside of T-SQL and...

  • RE: Processing strings.

    patrickmcginnis59 10839 (4/7/2016)


    was anybody able to get a tally table looking solution to work with the delimiter inside quotes exclusion? its obviously easy with a loop, but was curious about...

  • RE: Processing strings.

    So there were a number of passionate replies.

    Thanks for the links in the passionate replies, they might lead to something usefull for me. But for me there is still the...

Viewing 15 posts - 241 through 255 (of 562 total)