Forum Replies Created

Viewing 15 posts - 4,261 through 4,275 (of 7,504 total)

  • RE: Database Mail

    So your goal is to only send one email per recepient ?

    In that case, alter your cursor :

    declare mail_merge cursor for select DISTINCT supervisor_email,email_body from mail_merge

  • RE: How to Create and Start SQL Server Trace Automatically

    easyest way is to use sql server profiler.

    Create your trace with all filters (db) you want and script it.

    Then launch it in a startup job or procedure.

  • RE: Database Mail

    Change your dbmail-query !

    Declare @TheQuery varchar(1000)

    Set @TheQuery = 'Select * from dbo.mail_merge where supervisor_email = ''' + @supervisor_email + ''' '

    execute msdb.dbo.sp_send_dbmail

    @profile_name = 'Scn',

    @recipients = @supervisor_email,

    @subject = 'SCN...

  • RE: Log an error message/message to Event Viewer without the error number , severity and state

    No, not using raiserror.

    Other options ?

    - alter the monitoring software

    - write your own xp ( :sick: ) to log the message you want. :sick:

  • RE: SQL fn (convert(.......,............,) as xxx

    From Books Online 😉

    If you specify only the last two digits of the year, values less than or equal to the last two digits of the value of the two...

  • RE: FK relation error

    there can be more than one child table for any parent table..

  • RE: VERY SLOW query

    First of all I would start using the correct datatype to query.

    Use a datetime variable to query your dates.

    You can do that changing the functions inputparameters to a single date...

  • RE: Begin Tran...Execute (@Query)...Commit causing very slow query

    always try to create your tempdb objects outside of a transaction (locking on tempdb)

  • RE: FK relation error

    khushbu.kumar (12/3/2008)


    ...

    I'm deleting the record from child table and then parent table. Still I get the error

    A parent row can have more than one child rows in a child table....

  • RE: move temp db to another drive after installtion

    EdVassie (12/1/2008)


    This topic was discussed a few times at PASS, and the people who author SQL Server and the most experienced people in the user community are clearly saying you...

  • RE: FK relation error

    are there child tables that act as parent table for other tables ?

  • RE: The Ebb and Flow of Community

    skjoldtc (12/2/2008)


    I have a question for the frequent posters? Do you spend you employer's time answering questions here or are you doing it on your own time. If on your...

  • RE: After migration to 2005 query takes too long

    did you perform post-migration maintenance ?

    / * To be executed after a db-restore from a lower version than sqlserver 2005 !

    *

    *DATA_PURITY

    * Causes DBCC CHECKDB to check the...

  • RE: Are the posted questions getting worse?

    Grant Fritchey (12/1/2008)


    Permits? We don't need no stinking permits.

    That's why it is considered a nation wide sports (over here) to try to avoid the rules whenever you can ... 😀

    Do...

  • RE: Are the posted questions getting worse?

    Grant Fritchey (11/30/2008)


    Well, it was a thrilling moment, I don't mind saying. I'll be picking up one of those integrated face sheild/helmet/ear protection things soon (read ASAP). First time in...

Viewing 15 posts - 4,261 through 4,275 (of 7,504 total)