Forum Replies Created

Viewing 15 posts - 631 through 645 (of 1,170 total)

  • RE: mdf / ndf backup confusion

    Backup usually takes less space, and significantly less if it's a compressed backup.

    When restoring via SSMS you should see all the .mdf and .ndf files. You have to specify locations...

  • RE: Simple query failing

    Strange. I run all of yours t-sql statements on a sql 2012 and sql 2008 r2 instances and they worked all.

    I don't think it's the new installed instance of 2012.

    You...

  • RE: IDENTITY

    SQLRNNR (2/19/2014)


    Nice question. I wonder how many people have used identity in this way (select into...).

    It's used in migrations. For example if you have to migrate users from one...

  • RE: Just one row for each patientid 2

    Hi

    What about this

    r.dbPatID, t.PatientFirstName, t.patientlastname, r.dbstatusdesc, r.dbAddDate, r.LastName, r.dbStaffLastName,

    SUM(CASE WHEN t.LedgerAmount > 0 AND t.LedgerType != 1 THEN t.LedgerAmount ELSE 0.00 END) AS Charges,

    SUM(CASE WHEN t.LedgerAmount < 0 AND...

  • RE: To T-SQL or not to T-SQL?

    sqldriver (2/15/2014)


    Yeah, I think my plan is going to be using PS to generate a bulk insert for every file, naming the tables after the files before the .txt, and...

  • RE: To T-SQL or not to T-SQL?

    sqldriver (2/15/2014)


    I really hate SSIS and was hoping to avoid it. I guess I could try doing this all in another language that handles large file operations better. Of course,...

  • RE: To T-SQL or not to T-SQL?

    Try to avoid the addition of the column into the files. Whatever approach you apply for that operation, it will be slow.

    Doing the same in the db engine is pretty...

  • RE: To T-SQL or not to T-SQL?

    It's easy to give advises, but the hard part goes to you. You've already put some effort for a PS script to do it.

    SSIS is designed for that, and...

  • RE: To T-SQL or not to T-SQL?

    Something similar that I once worked on, was on a migration process.

    I had to change the recovery model to BULK_LOGGED and expanded the TLog file enough so that there was...

  • RE: Just one row for each patientid 2

    The current result set from the sql produces

    Can you send the sql statement that produces the result set?

  • RE: Total space used per table

    Ron007 (2/11/2014)


    total table space means data size plus index size?

    Yes.

    The author uses the reserved_page_count for both data and indexes.

    Regards,

    Igor

  • RE: Newbie Question

    Can you log in with any account?

    Is the other "domain\username" added to the AD? and if not, add it and then you should add it to the Logins too.

    Do you...

  • RE: Storing XML File

    Hi,

    Here is a link for this: http://blog.sqlauthority.com/2013/09/12/sql-server-automatically-store-results-of-query-to-file-with-sqlcmd/

    If you want to do it from t-sql, then you must enable xp_cmdshell and remote access to the server. Also check the "Named pipes"...

  • RE: Guest Account - Properties

    1. Yes, it gets created, and by default is disabled.

    2. Yes we can, same ways as for the other logins.

    Regards,

    IgorMi

  • RE: Is there any possiblity to create job execution in stored procedure?

    Yes you can. As described in previous post.

    The job is actually a SP. So executing/creating a SP from a SP is possible.

    Regards,

    Igor

Viewing 15 posts - 631 through 645 (of 1,170 total)