Forum Replies Created

Viewing 15 posts - 1 through 15 (of 2,436 total)

  • RE: Export all SQL Agent jobs

    you just need the char(10) for a newline !
    (I use this all the time)

    RegardsRudy KomacsarSenior Database Administrator"Ave Caesar! - Morituri te salutamus."

  • RE: I nedd code to purge or clear sql server logs (current) not database logs

    declare @CoverUp varchar(16)

    select @CoverUp = ['True'|'False'] --> make your choice

    if CoverUp = 'True'

    ...

    RegardsRudy KomacsarSenior Database Administrator"Ave Caesar! - Morituri te salutamus."

  • RE: Maintaince Jobs vs sql agent scripts

    My advice is to dump maintenance plans.

    The two word solution is - Ola Hallengren

    https://ola.hallengren.com/

    RegardsRudy KomacsarSenior Database Administrator"Ave Caesar! - Morituri te salutamus."

  • RE: Software Projects: the important boring bits

    I just 'dare' to be 'dull' !

    RegardsRudy KomacsarSenior Database Administrator"Ave Caesar! - Morituri te salutamus."

  • RE: Have You Been Hacked?

    As a DBA we are kind of the last line of defense unfortunately.

    All of the issues that happen, especially as of late (subscribe to Krebs on Security) are usually not...

    RegardsRudy KomacsarSenior Database Administrator"Ave Caesar! - Morituri te salutamus."

  • RE: Only send DBMail when query results are present

    Try this:

    declare@max_attachment_sizeint,-- in bytes

    @average_rowsizeint,-- in bytes

    @number_of_rowsint,-- used for the TOP in the dynamic select

    @dynamic_selectvarchar(8000)-- dynamic select statement

    select @max_attachment_size=paramvalue

    from msdb.dbo.sysmail_configuration

    where paramname = 'MaxFileSize'

    select@average_rowsize=used_page_count*1024/row_count

    from sys.dm_db_partition_stats

    where object_id=object_id('sysmaintplan_log')

    select @number_of_rows=@max_attachment_size/@average_rowsize

    IF EXISTS(SELECT TOP 1 1 FROM...

    RegardsRudy KomacsarSenior Database Administrator"Ave Caesar! - Morituri te salutamus."

  • RE: Only send DBMail when query results are present

    you'll need to up the attachment size in your database main configuration.

    exec msdb.dbo.sysmail_configure_sp 'MaxFileSize', '10000000'

    RegardsRudy KomacsarSenior Database Administrator"Ave Caesar! - Morituri te salutamus."

  • RE: Deadlock during insert activity

    I would start looking here first: procname=SCHApiOrder.SCHOrder.SCHOrdersSave_v3 line=198

    Next I would change your table variable, @ReturnOrders_TEMP_TABLE, to a real #temp_table.

    RegardsRudy KomacsarSenior Database Administrator"Ave Caesar! - Morituri te salutamus."

  • RE: Script for inserting records in batches from one table to another table

    I am curious about "insufficient buffer memory" ...

    RegardsRudy KomacsarSenior Database Administrator"Ave Caesar! - Morituri te salutamus."

  • RE: Open EDI file in SQL Server

    My advice is to contact the source provider of the EDI file - plain and simple.

    RegardsRudy KomacsarSenior Database Administrator"Ave Caesar! - Morituri te salutamus."

  • Viewing 15 posts - 1 through 15 (of 2,436 total)