Forum Replies Created

Viewing 15 posts - 1,351 through 1,365 (of 7,164 total)

  • RE: INSERT statements containing regex as a string being read as regex

    I am not able to recreate your issue using the ExecuteNonReader. One thing that looks odd is this line:

    $db.Create()

    Why are you trying to create a new database? Maybe this is...

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

  • RE: Cursor in Stored Procedure

    mister.magoo (4/1/2013)


    Lynn, Nope that pretty much sucks too! :hehe:

    Lynn's numbers seem off to me. I got ~10s for your method and ~50ms for Lynns. But Lynn's numbers make it look...

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

  • RE: Cursor in Stored Procedure

    I'll give you the @objtype change as something to be corrected, and the second as I just reread ap_rename. Now, how to deal with multiple schemas??

    Without testing, does the...

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

  • RE: Cursor in Stored Procedure

    mister.magoo (4/1/2013)


    I don't have a suitably large database to test on , but I am sure you will see some improvement if you test it that way...

    You have done it...

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

  • RE: Cursor in Stored Procedure

    That seems to be a function of continually updating an NVARCHAR(MAX) which does not scale linearly. It gets truncated so it's worthless to use it but if you run the...

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

  • RE: Using the Script Task in SSIS to Process Data Files When They Arrive

    Dave Pendleton (4/1/2013)


    I guess I spoke too soon; it isn't working as desired right now.

    If I copy the file "manually" to the drop folder it will work every time. When...

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

  • RE: Cursor in Stored Procedure

    I use a slightly different method to avoid some of the entitization problems FOR XML brings with it. Technically it is an undocumented method that I know of but I...

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

  • RE: Cursor in Stored Procedure

    Lynn Pettis (4/1/2013)


    And yes, I have created dynamic code that actually exceeds 8000 bytes and does multiple commands.

    Mind if I ask what made you break them into multiple commands?

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

  • RE: Need help with a .bat for a stored procedure, please.

    I am with Andrew on this one. I would probably use SSIS for this as well. This would allow you to get rid of the stored procedure that calls BULK...

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

  • RE: Change SSIS package owner to SA

    nihal9200_kwada (4/1/2013)


    Open ssis package in BIDS

    Package properties

    creator name is old DBA

    creator name is different than owner name?

    No, different. I thought that might be what you were looking at. The value...

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

  • RE: Call powershell in SQL agent job

    Grant Fritchey (4/1/2013)


    Glad to hear it's fixed.

    Just curious though, why not use a PowerShell type of step in SQL Agent for a PowerShell script?

    Depending on what your script does sometimes...

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

  • RE: Change SSIS package owner to SA

    Where are you seeing the previous DBA listed as the owner? In the properties of the SSIS package or somewhere else? Maybe in the SQL Agent jobs?

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

  • RE: best replication method for large database

    It depends on the requirement. What are you trying to do? How fresh does the data need to stay? Is there a fast network link between the involved databases?

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

  • RE: Issue Loading excel files into SQL SERVER 2008 database using SSIS package.

    Anytime. Thanks for posting back the nature of the problem and solution so others may benefit.

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

  • RE: SSIS- Call to Stored Procedure

    greeshatu (3/29/2013)


    Hi

    I have scenario where I need to Call an Storeprocedure in SQL task

    Eg: Procedure Name Like Usp_ABCDEF 'Param1',Param2'

    Part of Stored Procedure name is coming from Varible

    Eg:...

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

Viewing 15 posts - 1,351 through 1,365 (of 7,164 total)