﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Discuss Content Posted by Roy Carlson / Article Discussions / Article Discussions by Author  / No Outlook for Alerts! / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Thu, 23 May 2013 01:20:21 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: No Outlook for Alerts!</title><link>http://www.sqlservercentral.com/Forums/Topic213196-219-1.aspx</link><description>&lt;P&gt;I get this error when I try and run the script.  Any thoughts.&lt;/P&gt;&lt;P&gt;[Microsoft][ODBC SQL Server Driver]COUNT field incorrect or syntax error&lt;/P&gt;</description><pubDate>Tue, 12 Sep 2006 14:28:00 GMT</pubDate><dc:creator>Bart Snyder</dc:creator></item><item><title>RE: No Outlook for Alerts!</title><link>http://www.sqlservercentral.com/Forums/Topic213196-219-1.aspx</link><description>&lt;P&gt;No http - no go.&lt;/P&gt;&lt;P&gt;You could redirect the output to open an instance of word, excel, etc., then use this accross the lan but there are some issues with this especially with XP, SP2.  I will consider this for a future article.  &lt;/P&gt;</description><pubDate>Fri, 16 Sep 2005 08:23:00 GMT</pubDate><dc:creator>rscarlson</dc:creator></item><item><title>RE: No Outlook for Alerts!</title><link>http://www.sqlservercentral.com/Forums/Topic213196-219-1.aspx</link><description>There are several lines in Alert.vbs that reference Microsoft's site.  If my SQL server does not have HTTP access do the web what are my options here?  Thanks.objEmail.Configuration.Fields.Item _	    ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2		    		'name of notesserverhost ?	objEmail.Configuration.Fields.Item _	    ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = _		        "mailserver" 	objEmail.Configuration.Fields.Item _		    ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25</description><pubDate>Wed, 14 Sep 2005 07:49:00 GMT</pubDate><dc:creator>Ryan-209402</dc:creator></item><item><title>RE: No Outlook for Alerts!</title><link>http://www.sqlservercentral.com/Forums/Topic213196-219-1.aspx</link><description>&lt;P&gt;Sorry the line strClass = "Win32_NTEventLog"&lt;/P&gt;&lt;P&gt;Should read:&lt;/P&gt;&lt;P&gt;strClass = "Win32_NTLogEvent"&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description><pubDate>Tue, 13 Sep 2005 06:48:00 GMT</pubDate><dc:creator>rscarlson</dc:creator></item><item><title>RE: No Outlook for Alerts!</title><link>http://www.sqlservercentral.com/Forums/Topic213196-219-1.aspx</link><description>&lt;P&gt;If you go to command prompt and type in wbemtest and enter.&lt;/P&gt;&lt;P&gt;Hit connect.&lt;/P&gt;&lt;P&gt;Change the location from:&lt;/P&gt;&lt;P&gt;root\default to root\cimv2 and hit login&lt;/P&gt;&lt;P&gt;Hit enumerate classes, use recursive radio button, hit ok&lt;/P&gt;&lt;P&gt;You will no have a list of all the classes and their properties.  You can scroll down to Win_NTLogEvent to see the properties in the middle window.&lt;/P&gt;&lt;P&gt;Or you can cut and paste this script as ClassInfo.vbs&lt;/P&gt;&lt;P&gt;Const wbemFlagReturnImmediately = &amp;amp;h10Const wbemFlagForwardOnly = &amp;amp;h20&lt;/P&gt;&lt;P&gt;On Error Resume Next&lt;/P&gt;&lt;P&gt;arrComputers = Array(".")&lt;/P&gt;&lt;P&gt;For Each strComputer In arrComputers   WScript.Echo   WScript.Echo "=========================================="   WScript.Echo "Computer: " &amp;amp; strComputer   WScript.Echo "=========================================="   strClass = "Win32_NTEventLog"Get objWMIService = _    GetObject("winmgmts:{impersonationLevel=impersonate}root\cimv2")&lt;/P&gt;&lt;P&gt;Set colClasses = objWMIService.ExecQuery("SELECT * FROM " &amp;amp; strClass, "WQL", _                                          wbemFlagReturnImmediately + wbemFlagForwardOnly)&lt;/P&gt;&lt;P&gt;i = 0For Each objClass In colClasses   i = i + 1   If i = 1 Then   WScript.Echo "* Properties *"   For Each objProperty In objClass.Properties_      WScript.Echo objProperty.Name   Next&lt;/P&gt;&lt;P&gt;   WScript.Echo vbNewLine &amp;amp; "* Methods *"   For Each objMethod In objClass.Methods_      WScript.Echo objMethod.Name   Next   End IfNext&lt;/P&gt;&lt;P&gt;Next&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;</description><pubDate>Tue, 13 Sep 2005 06:43:00 GMT</pubDate><dc:creator>rscarlson</dc:creator></item><item><title>RE: No Outlook for Alerts!</title><link>http://www.sqlservercentral.com/Forums/Topic213196-219-1.aspx</link><description>&lt;P&gt;Good article. Just proves there is more than one way to skin a cat &lt;img src='images/emotions/wink.gif' height='20' width='20' border='0' title='Wink' align='absmiddle'&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"I cannot find Win32_NTLogEvent anywhere"&lt;/EM&gt;This is a WMI class. There is a whole bunch of them in Windows &lt;A href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/wmi_reference.asp"&gt;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/wmi_reference.asp&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"...you know that MAPI is a goner in 2005"&lt;/EM&gt;Well it's not actually gone, it's still there but you have the option of using a new thing called DatabaseMail which is SMTP based. Realistically, I don't know that many DBA's given the option would use SQL Mail and rely on MAPI and Exchange.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description><pubDate>Mon, 12 Sep 2005 16:27:00 GMT</pubDate><dc:creator>philcart</dc:creator></item><item><title>RE: No Outlook for Alerts!</title><link>http://www.sqlservercentral.com/Forums/Topic213196-219-1.aspx</link><description>Sorry, but I cannot find Win32_NTLogEvent anywhere.  What is it - an mssql table, a file?</description><pubDate>Mon, 12 Sep 2005 15:30:00 GMT</pubDate><dc:creator>Grazyna Trzesicka</dc:creator></item><item><title>RE: No Outlook for Alerts!</title><link>http://www.sqlservercentral.com/Forums/Topic213196-219-1.aspx</link><description>&lt;P&gt;One more thing: Isn't it possible to filter also on the DATE in the query?&lt;/P&gt;&lt;P&gt;btw: Very nice script!&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description><pubDate>Mon, 12 Sep 2005 10:06:00 GMT</pubDate><dc:creator>noeld</dc:creator></item><item><title>RE: No Outlook for Alerts!</title><link>http://www.sqlservercentral.com/Forums/Topic213196-219-1.aspx</link><description>&lt;P&gt;Roy,&lt;/P&gt;&lt;P&gt;Pretty slick!  By the way, you know that MAPI is a goner in 2005?&lt;/P&gt;</description><pubDate>Mon, 12 Sep 2005 06:36:00 GMT</pubDate><dc:creator>Dale Corey</dc:creator></item><item><title>No Outlook for Alerts!</title><link>http://www.sqlservercentral.com/Forums/Topic213196-219-1.aspx</link><description>Comments posted to this topic are about the content posted at &lt;A HREF="http://www.sqlservercentral.com/columnists/rcarlson/nooutlookforalerts.asp"&gt;http://www.sqlservercentral.com/columnists/rcarlson/nooutlookforalerts.asp&lt;/A&gt;</description><pubDate>Tue, 23 Aug 2005 17:19:00 GMT</pubDate><dc:creator>rscarlson</dc:creator></item></channel></rss>