Forum Replies Created

Viewing 15 posts - 5,986 through 6,000 (of 7,164 total)

  • RE: Sql Server Permissions and PowerShell

    I don't know about *bright* but a try/catch might do some good. If an exception is thrown control will change to the catch block, the message will be output to...

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

  • RE: How can I save the results of a query that produces XML to a file?

    Here is a bcp.exe example:

    bcp "SELECT * FROM master.sys.tables FOR XML AUTO, TYPE" queryout C:\example.xml -S SERVER\INSTANCE -T -c

    bcp can be used against any version of SQL Server.

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

  • RE: Question about MERGE with DELETED

    That's why I said "It won't affect you" ... you lucked out that it fit your use-case 🙂

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

  • RE: Log reader agent is stuck with message "Batch processing is in progress..."

    I latched onto this thread as a watcher to try and learn something from it so, sorry, I cannot offer any technical assistance.

    I could see where replicating from Oracle to...

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

  • RE: copy files created in a folder two Months ago to another folder

    err...the title of the thread is:

    "copy files created in a folder two Months ago to another folder"

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

  • RE: Does anyone have a good reason to run xp_CmdShell?

    Jeff Moden (6/19/2011)


    opc.three (6/18/2011)


    I choose not to use SQLCLR for accessing the file system. If I find myself in a situation where I want to retrieve some information about a...

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

  • RE: How to Compare Month\date

    Thank you for attempting to provide what I asked for, however that is quite what I had in mind. Did you read the article? Specifically first section titled "The Wrong...

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

  • RE: copy files created in a folder two Months ago to another folder

    Hi Brandie, It would be ideal if SSIS contained component(s) to do this kind of work without having to use a Script Task or involving PowerShell, I would actually prefer...

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

  • RE: Pros and Cons of using the MERGE statement versus EXCEPT in identifying changed dimensional data

    Sorry, almost missed the point...

    Using EXCEPT you'll be incurring a lot of the same comparison overhead by comparing every column in both sets. Have you run both methods side by...

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

  • RE: Pros and Cons of using the MERGE statement versus EXCEPT in identifying changed dimensional data

    The MERGE statement evaluates the predicates in ON clause and applies all assignments in the WHEN MATCHED...THEN clause. What are you trying to prevent by adding the additional checks...a trigger...

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

  • RE: How to regenerate recordset from XML data+schema

    Tao Klerks (6/19/2011)


    Hi, FYI, I did something similar to this using a SQL CLR stored procedure, it actually works pretty well! Doesn't handle the "ROOT" option yet, but should work...

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

  • RE: call sql server job from ssis package

    robinrai3 (6/20/2011)


    ... then I assume the ssis package waits there till until it finishes

    how do you notify to the package if it has failed or been successful

    Phil provided the...

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

  • RE: How to Compare Month\date

    What have you tried so far? I am willing to help you if you can provide the following:

    1) DDL and DML to build some sample tables.

    2) Expected results.

    3) The queries...

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

  • RE: Failed to find file

    Another possibility: on the new server did you run Set-ExecutionPolicy under the context of the user trying to run the script?

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

  • RE: SQL 2008 R2 64bit - Tools to analyse transaction log

    WRACK (6/19/2011)


    Hi,

    This just happened again. Sunday 2 PM was a full backup right after we restored all the missing records and Monday 9:20 AM 250000 records have been deleted. I...

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

Viewing 15 posts - 5,986 through 6,000 (of 7,164 total)