Forum Replies Created

Viewing 15 posts - 1,141 through 1,155 (of 7,164 total)

  • RE: What happens if new records are inserted in a source table during a package execution?

    wolfkillj (5/13/2013)


    opc.three (5/13/2013)


    If you are using either Snapshot Isolation or READ COMMITTED SNAPSHOT ISOLATION (RCSI) mode that could account for the behavior you are seeing. My comments are related to...

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

  • RE: Forfiles Utility Error When No Files to Delete

    One way would be to switch to PowerShell.

    $path = '\\server\path'

    $filter = '*.bak'

    $retentionDate= (Get-Date).AddHours(-12)

    #################################################

    Get-ChildItem (Join-Path $path $filter) -Recurse |? {($_.PSIsContainer -eq $false) -and ($_.LastWriteTime -lt $retentionDate)} | Remove-Item -WhatIf

    Just remove the...

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

  • RE: What happens if new records are inserted in a source table during a package execution?

    If you are using either Snapshot Isolation or READ COMMITTED SNAPSHOT ISOLATION (RCSI) mode that could account for the behavior you are seeing. My comments are related to the default...

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

  • RE: What happens if new records are inserted in a source table during a package execution?

    The issuance of the IDENTITY column is part of the transaction so we are protected from loss of data.

    In SSMS, Query Window 1, run this:

    USE YourDatabaseName;

    DROP TABLE dbo.StagingTable

    CREATE TABLE dbo.StagingTable...

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

  • RE: List orphaned users from all databases

    The script does not take into account Database Users that were created without a login, a.k.a. loginless users.

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

  • RE: What happens if new records are inserted in a source table during a package execution?

    wolfkillj (5/13/2013)


    Jeff Moden (5/10/2013)


    wolfkillj (5/7/2013)


    Phil Parkin (5/7/2013)


    This is probably what you meant by "I can program the loading process in another way, I know." but to remove most of the...

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

  • RE: Loginless In Seattle

    Thanks for having a look Wayne and for the nod. Also, congrats on recently becoming an MCM! That's an amazing accomplishment.

    I agree that using sys.sql_logins is a cleaner way to...

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

  • RE: how to find out fixed server role changes to user?

    A Database DDL Trigger for the events ADD_ROLE_MEMBER or DROP_ROLE_MEMBER might give you the oversight you want. Note that a member of db_owner or sysadmin can always circumvent the triggers...

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

  • RE: IS NULL in a Case Statement

    GilaMonster (5/10/2013)


    Case is not a control flow statement, it can't return portions of the query. It returns expressions (values)

    Precisely! Thank you for calling attention to it. It was my thought...

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

  • RE: BIDS error when opening SSIS package

    Puja Shah (5/8/2013)


    Hi,

    When I try to open SSIS solution (created in BIDS on server having SSIS installed) on my local machine (do not have SSIS installed locally), I am getting...

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

  • RE: SQL Orphaned users

    pskoasha (5/10/2013)


    Hi

    firstly thanks for looking at this post.....

    I am trying to implement a solution to fix our current security dilemma….i have created some security groups in AD where users are...

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

  • RE: Why powershell?

    I can't really say the same but that's great for you. Like I said, I do not need a translator and your saying I do not understand him is a...

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

  • RE: Replicate from Non-Partioned Table (Publisher) to a Partitioned Table (Subscriber)

    Neeraj Dwivedi (5/7/2013)


    The only way I know you can set up a replication by creating a snapshot or initialize with backup. In both cases you have to have the...

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

  • RE: How to prevent ANY use of xp_CmdShell?

    With the help of this article I was able to work up a Console App in C# using VS 2012 to alert me when a specific type of process (cmd.exe)...

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

  • RE: How to prevent ANY use of xp_CmdShell?

    Jeff Moden (5/6/2013)


    opc.three (5/6/2013)


    At the Windows level I think you can intercept and prevent attempts by the sqlservr.exe process to spawn instances of cmd.exe. I am guessing this is done...

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

Viewing 15 posts - 1,141 through 1,155 (of 7,164 total)