Forum Replies Created

Viewing 15 posts - 46 through 60 (of 121 total)

  • RE: auditing the creation and dropping of linked server

    o? where is this default trace file stored? I don't remember turning anything off during setup.

    thx

  • RE: Developers' access to dev SQL Server

    in our environment, dev has their own servers to destroy. we don't support the dev servers or their test databases, only uat and prod.

    when they are promoting code to...

  • RE: Please help , read the trn files names from a folder

    what's there not to understand about the script I provided? it creates a memory table and stores all of your .trn file names in it.

    Then the while loop...

  • RE: straight query faster than SP!?

    (nolock) doesn't help with performance. You are basically doing a dirty read of the table and allowing other process to write to that table. It does nothing for...

  • RE: Linked Server

    if u have already added the linked server then all you need to do is:

    exec servername.msdb..sp_start_job @job_name = 'name of the job on the linked server'

    4 part naming is your...

  • RE: Please help , read the trn files names from a folder

    the script should go something like this:

    -- declare variables

    declare @dir varchar(1000), @rowid int, @sqlcmd varchar(1000), @filename varchar(1000)

    declare @trn table (rowid int identity(1,1),file_name varchar(1000))

    -- set variables

    set @dir = 'dir c:\i386\ /TW...

  • RE: dbmail and For XML error

    hey jack,

    here's table structure for @info:

    DECLARE @info table (DBNAME SYSNAME, SPID INT, Duration INT, PROGRAM_NAME SYSNAME, INPUT_BUFFER NVARCHAR(MAX), BLOCKED VARCHAR(2), BLOCKING_PROCESS VARCHAR(10), PROGRAM_NAME1 SYSNAME, INPUT_BUFFER1 NVARCHAR(MAX))

    and...

  • RE: Need a loop... perhaps

    you can use datediff and use a while loop to loop thru 12 times to give you 12 months worth of data.

    or you can use datediff and the BETWEEN function.

  • RE: color coding sp_send_dbmail HTML email

    RS is capable of sending out reports via email. I'm going to subscribe to the report and have it set to email me once a day 🙂

  • RE: varchar(MAX) or nvarchar(MAX) not satisfying my requirement

    you can look into using ntext or maybe varbinary(max).

    ntext will be removed in future releases.

    varbinary(max)

    Variable-length binary data. n can be a value from 1 through 8,000. max indicates...

  • RE: color coding sp_send_dbmail HTML email

    nope, didn't work 🙁 . RS or C# here I come!

  • RE: color coding sp_send_dbmail HTML email

    hrmm using case statement, interesting idea.

    I'll give it a shot and if it doesn't work, I'll just use Reporting Services.

  • RE: color coding sp_send_dbmail HTML email

    this is what I got now to send out regular HTML email

    set nocount on

    declare @tableHTML nvarchar(max)

    SET @tableHTML =

    ' ' +

    ' ' +

    ...

  • RE: Replication Vs Mirroring

    transactional replication is near real time data being sent to your subscriber. your subscriber is accessible during this time.

    mirroring is near real time data however, the mirrored server isn't...

  • RE: Alert not working.

    is there an operator setup? is your server setup to send out notification?

    I wouldn't rely on those latency BS SQL got, it didn't do me any good in the...

Viewing 15 posts - 46 through 60 (of 121 total)