Forum Replies Created

Viewing 15 posts - 931 through 945 (of 7,164 total)

  • RE: SQL 2008 - Migrating job schedules

    Adding a schedule to a job requires separate proc calls from adding the job. On the source select from msdb.dbo.sysschedules and from msdb.dbo.sysjobschedules to build the relevant calls to msdb.dbo.sp_add_schedule...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: sqlcmd

    mithunc23 (6/29/2013)


    Hi All,

    I am a newbie to sqlserver.I recently came across "sqlcmd"utility feature while surfing.So here is my doubt.

    I connect to a server using some credentials.I do it like

    --->Right...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: PowerShell snap-ins

    webrunner (6/28/2013)


    Maybe I just need to manually load whatever snap-ins I want to use or test out?

    Yep. For oft used snap-ins you can edit your Profile so they are auto-loaded...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: PowerShell snap-ins

    The assumption is that you will not have any non-core snap-ins loaded at startup. On my machine:

    [font="Courier New"]PS C:\Users\Orlando> Get-Command -commandtype cmdlet | select PSSnapin -Unique

    PSSnapIn

    --------

    Microsoft.PowerShell.Core

    PS C:\Users\Orlando> Add-PSSnapin -Name SqlServerProviderSnapin100...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Seeking Feedback/Recomendations on Auditing, both Simple and Detailed

    CDC wasn't really built to be an audit tool per se, although it can be used that way if it happens to satisfy your requirements. For you it clearly does...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Logins and DB Users

    MSSQL_NOOB (6/27/2013)


    Thanks for the tip, John.

    And OPC, thank you for the link. I was able to run the script on SQL Server 2008. You don't by any chance have a...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Logins and DB Users

    MSSQL_NOOB (6/27/2013)


    Issue Replication:

    1) Create Login for user Domain\ABC

    2) User Mapping for user Domain\ABC to Database ABCTest (DB User created in ABCTest database)

    3) Remove Domain\ABC username from Login

    I am still...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Special character in password

    Was it a Java app by chance?

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Write PowerShell Output to SQL Server Table

    Happy to. Forgot about the view fronting the table for bulk loads. That has saved my bacon more than once.

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Write PowerShell Output to SQL Server Table

    calvo shows the approach I use, namely:

    1. Get a PowerShell Object.

    2. Convert PowerShell object to a .NET DataTable

    3. Load DataTable into a SQL Server table using SqlBulkCopy.

    SqlBulkCopy is a .NET...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Today's Random Word!

    The Dixie Flatline (6/26/2013)


    Cliff Jones (6/26/2013)


    JAZZ Master (6/26/2013)


    crookj (6/26/2013)


    WOTD - atrophy

    a trophy

    Stanley Cup

    Athletic Supporter

    Cheerleader

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Special character in password

    @ is acceptable in both SQL Server and Windows passwords. In the case of Windows Authentication, SQL Server will never even be sent the actual password as authentication is offloaded...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Need some eyes on a SP I'm working on

    erikd (6/25/2013)


    I'll see if I can figure it out when I have some extra time. I'm most likely going to leave this SP as-is (at least for now), since it's...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Need some eyes on a SP I'm working on

    erikd (6/25/2013)


    For the simple file move, I agree with you. But I'm doing a bit more than that with the file name as a variable. I'm not sure I could...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Need some eyes on a SP I'm working on

    erikd (6/25/2013)


    opc.three (6/25/2013)


    Gosh, that seems like a lot of code to move the newest file from one place to another. Here is how you would do the same in PowerShell:

    $SourceFileSpec...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

Viewing 15 posts - 931 through 945 (of 7,164 total)