Viewing 15 posts - 4,261 through 4,275 (of 7,504 total)
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
December 10, 2008 at 2:09 am
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.
December 10, 2008 at 2:04 am
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...
December 9, 2008 at 7:12 am
No, not using raiserror.
Other options ?
- alter the monitoring software
- write your own xp ( :sick: ) to log the message you want. :sick:
December 9, 2008 at 6:48 am
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...
December 5, 2008 at 7:45 am
there can be more than one child table for any parent table..
December 4, 2008 at 11:46 pm
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...
December 3, 2008 at 1:59 pm
always try to create your tempdb objects outside of a transaction (locking on tempdb)
December 3, 2008 at 1:49 pm
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....
December 3, 2008 at 3:32 am
EdVassie (12/1/2008)
December 3, 2008 at 3:19 am
are there child tables that act as parent table for other tables ?
December 3, 2008 at 3:10 am
skjoldtc (12/2/2008)
December 3, 2008 at 1:40 am
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...
December 2, 2008 at 4:36 am
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...
December 1, 2008 at 6:37 am
Grant Fritchey (11/30/2008)
December 1, 2008 at 5:18 am
Viewing 15 posts - 4,261 through 4,275 (of 7,504 total)