you can restart sql server agent during business hours, but make sure that it won’t be stopped when a scheduled job is set to run.
Author: Josephine
instructions to setup database mail and job notification emails also, if you want to use your companies exchange server, then you need to make sure that smtp is enabled for the server that you want to send email from.
run first: sp_configure ‘show advanced options’, 1; RECONFIGURE; then this: sp_configure ‘Ad Hoc Distributed Queries’, 1; RECONFIGURE; ad hoc opens security issues – use very carefully!! only supposed to use ad hoc if there is infrequent access to the data for any data sources that…
in order to set: sp_configure ‘Ole Automation Procedures’, 1; GO you need to run this first: sp_configure ‘show advanced options’, 1; GO
exec sp_dboption dbname, ‘select into/bulkcopy’, ‘TRUE’ exec SP_dboption dbname,’trunc. log on chkpt.’,’true’
http://www.sql-ex.ru/exercises.php
in order to get the name of a document and the project that contains it – I needed a self-join select d1.name as docname, d2.name as Project from stuff d1, stuff d2 where d1.ownerid = d2.id order by Project
