Nope
Same error at the same place
Cose as follows ---------------
EXEC xp_startmail @user = 'Administrator', @password = 'rfrlhtn4s'
Declare @sql varchar(1000)
Select @sql= 'SELECT TblName=''Copy-PartMaster Lite'' RowCnt=Count(*) From [Copy-PartMaster Lite] Union All SELECT TblName=''Copy-PartMaster Lite-OLD'' RowCnt=Count(*) From [Copy-PartMaster Lite-OLD] ,
EXEC xp_sendmail @recipients = 'douglasp',
@query =@sql
@subject = 'SQL Server Report',
@message = 'The contents of INFORMATION_SCHEMA.TABLES:',
@attach_results = 'FALSE', @width = 250
------------ Error message ---------------------
Server: Msg 170, Level 15, State 1, Line 3
Line 3: Incorrect syntax near ' '.
Server: Msg 105, Level 15, State 1, Line 8
Unclosed quotation mark before the character string ', @width = 250
DougP, MCP