Forum Replies Created

Viewing 15 posts - 4,981 through 4,995 (of 7,164 total)

  • RE: Using sys.dm_os_memory_objects to analyze memory use and identify possible memory leaks

    Thanks, that helps. I have heard memory leaks in SQL Server itself are extremely rare at this point, however paranoia prevails at times so I am investigating. The consensus of...

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

  • RE: Create new folder and copy file using xp_cmdshell

    You could certainly do that. Either way, whether SQL Agent or Windows Task Scheduler, I would favor PowerShell over VBScript in every conceivable use case.

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

  • RE: Create new folder and copy file using xp_cmdshell

    Perry Whittle (12/22/2011)


    opc.three (12/22/2011)


    Sure...but how would you copy the file (without xp_cmdshell)?

    Via a VB script ran as a SQL agent job step!

    OK 😛

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

  • RE: Create new folder and copy file using xp_cmdshell

    Perry Whittle (12/22/2011)


    personally i find this easier to create the path

    exec xp_create_subdir 'G:\somepath\mynewfolder'

    or

    exec xp_create_subdir '\\myserver\myshare\mynewfolder'

    If the folder doesn't exist it will create it 😉

    Sure...but how would you copy the file...

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

  • RE: Create new folder and copy file using xp_cmdshell

    Sachin Nandanwar (12/22/2011)


    Cant you just write a 4 line code VBscript in a batch file to create a folder and schedule it using windows scheduler ?

    Just about anything would...

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

  • RE: CLR procedure to export xml file ?

    BTW, IMHO stands for In My Humble Opinion

    PS BTW stands for By The Way

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

  • RE: CLR procedure to export xml file ?

    I would strongly advise against trying to write a file from within a trigger. A more sound approach would be to:

    1. Create a staging table to hold the data you...

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

  • RE: Identify SQL Server Instances + User database

    A more reliable way to find machines than using NET VIEW is to select directly from Active Directory. This post has a nice script I refer to from time to...

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

  • RE: Need a powershell script and I'm stumped

    Ed.Watson (12/21/2011)


    I think the script is backward, it is deleting the PDF when the CSXML is there. I need it to do the opposite, if there is no CSXML...

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

  • RE: Policy Based Management SQL 2008 R2

    I can recreate the issue using the "Server Installation Settings" facet. I can use the ExecuteWql function using the "Server Information" facet however @EngineServiceAccount is not a property of that...

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

  • RE: Create new folder and copy file using xp_cmdshell

    There is no need to use xp_CmdShell here. You can do this using PowerShell directly from within your Job. In SQL Server 2008 a PowerShell job step type is available...

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

  • RE: CLR procedure to export xml file ?

    blah...

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

  • RE: TDES ENCRYPTION

    I think the OP may mean Triple DES which is typically abbreviated TDEA, not TDES.

    You may be comparing apples to oranges but I cannot say for sure because I do...

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

  • RE: CLR procedure to export xml file ?

    There are many better ways (IMHO) to get XML from a database to disk than from within a T-SQL context. Have you exhausted all other options? What is your client...

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

  • RE: Need a powershell script and I'm stumped

    I imagine it is possible to do this using the pipeline with far less code but this will get the job done:

    $dir = "C:\@\1"

    foreach($file in (ls "$dir\*.pdf"))

    {

    ...

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

Viewing 15 posts - 4,981 through 4,995 (of 7,164 total)