Forum Replies Created

Viewing 15 posts - 946 through 960 (of 7,164 total)

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

    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 = "H:\"

    $DestinationFileSpec...

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

  • RE: Penetration Testing - Sqlmap fails at enabling xp_cmdshell procedure

    How ironic. You're client is conscientious enough to do a penetration test yet they will not accept advice on not running a website using the sa Login. Wish them luck...

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

  • RE: Penetration Testing - Sqlmap fails at enabling xp_cmdshell procedure

    Aadhar Joshi (6/24/2013)


    If you enalbe xp_cmdshell option in configuration, it does not give effect immediately for current session. U have to use Reconfigure command to give immediate effect.

    One would...

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

  • RE: Email Formatted HTML Table with T-SQL

    heb1014 (6/24/2013)


    Is there any reason for this approach IF SSRS is installed? I'm thinking a simple query, report and subscription would be the way to go.

    That's how I would...

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

  • RE: Can you script role permissions

    dwilliscp (6/24/2013)


    I am using SQL 2008R2...

    SSMS 2012 can go against SQL 2008 R@. I think the setting is in the same place in SSMS 2008 R2. I was just pointing...

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

  • RE: Can you script role permissions

    dwilliscp (6/24/2013)


    is there a limit on what gets printed?

    Yes. In SSMS 2012 go to Tools > Options > Query Results > SQL Server > Results to ... and increase the...

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

  • RE: Today's Random Word!

    pervasive

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

  • RE: Penetration Testing - Sqlmap fails at enabling xp_cmdshell procedure

    medized (6/23/2013)


    Dear folks,

    I have been browsing the web looking for some help regarding the following issue. I am currently performing an web application penetration test, and I had come accross...

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

  • RE: ?? on xp_cmdshell not writing to file

    Jeff Moden (6/15/2013)


    I like the idea of not having to concatenate lines or use long unreadable lines so I do thigs like the following...

    DECLARE @Cmd VARCHAR(8000);

    SELECT @Cmd = '

    echo...

    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

    Writing a PowerShell script and kicking it off using powershell.exe from a SQL Agent CmdExec Job Step would be another option here. The backflips you're having to perform using xp_cmdshell...

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

  • RE: Strange issue with sp_OAMethod

    Can you switch from OLE Automation (sp_OA procs) to SQLCLR and COM interop? The .NET Framework being a managed environment you probably won't have any issues with hung in-process dlls.

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

  • RE: Can you script role permissions

    DECLARE @sql NVARCHAR(MAX) = N'';

    SELECT @sql = @sql + 'GRANT INSERT, SELECT, UPDATE ON ' + QUOTENAME(OBJECT_SCHEMA_NAME(object_id)) + N'.' + QUOTENAME(name) + ' TO [YourRoleName];

    '

    FROM sys.views

    WHERE...

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

  • RE: Pull Data from diffrent servers - SSIS

    This might help you start learning how to connect to databases on many different instances using SSIS:

    http://thesqldev.wordpress.com/2013/03/23/iterate-over-databases-using-ssis-part-2/%5B/url%5D

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

  • RE: Today's Random Word!

    Green

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

  • RE: Email Formatted HTML Table with T-SQL

    nakache (6/20/2013)


    i fixed my code to support the "problematic" gmail which strips any CSS styling...

    and as you say "keep it simple" , so NO bcp, NO xp_cmdshell ,NO Blat =...

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

Viewing 15 posts - 946 through 960 (of 7,164 total)