Forum Replies Created

Viewing 10 posts - 1 through 10 (of 10 total)

  • RE: Lookin for Reference for EDI Using SSIS and X12 Format Files

    I'm tasked with creating SSIS packages that import and export data to an ERP system as sales orders and invoices.

    While I'm very familiar with using flat files in...

  • RE: Custom Schemas

    We have a bunch of old views that are used for cross-database queries and they were originally written using hard-coded database pointers. Of course after moving/renaming the databases a...

  • RE: Help Needed to Convert Numeric Value to CHAR(7)

    Eirikur Eiriksson (9/22/2014)


    More for fun, here is an alternative "solution", set to return six digits and the decimal separator.

    😎

    I like this solution because it handles the "dangling decimal point" issue,...

  • RE: Help Needed to Convert Numeric Value to CHAR(7)

    Luis Cazares (9/22/2014)


    Am I missing something here? Wouldn't a simple LEFT() do the job?

    The only problem with using LEFT() is if the value to the left of the decimal is...

  • RE: Hypervisor

    Dave62 (8/29/2014)


    Thanks for the question Steve!

    I was hoping one of the answers was going to be "A supervisor who had too much caffeine".

    :hehe:

    Enjoy!

    +1

  • RE: Find database where table is located

    I realize that it uses an undocumented Microsoft function, but rather than creating a stored procedure, couldn't you just use:

    sp_msforeachdb 'select "?" AS db, * from [?].sys.tables where name like...

  • RE: Count all records the tables

    You could also use:

    sp_MSforeachtable 'select ''?'' Tablename, count(*) ''Rows'' from ?';

    though this uses an undocumented Microsoft function, and may go away at any time/be modified.

    I originally got this code from...

  • RE: Intersecting - 1

    RLilj33 (2/26/2014)


    Equivalent to:

    SELECT X AS 'Intersecting'

    FROM A

    JOIN b ON b.y = a.x;

    Except the ordering. INTERSECT returns the values in...

  • RE: DEFAULT

    Victor Kirkpatrick (10/18/2013)


    Might be an easy one, but I learned something: the WITH VALUES clause. Thanks.

    +1:-)

  • RE: Find the most executed stored procedure(s)

    I'm unsure how useful this script is for an 'active' database.

    Running against our development server, with few if any active connections at the time, produced some interesting information,...

Viewing 10 posts - 1 through 10 (of 10 total)