S
sk.rasheedfarhan
Hi All,
Please look in to this snippet.
string sEvtSource = "MSSQLSERVER";
int m_nEventID = 17055;
string sEvtLog = "Application";
if (!EventLog.SourceExists(sEvtSource))
EventLog.CreateEventSource(sEvtSource,sEvtLog);
EventLog.WriteEntry(sEvtSource,"TESTMessage",EventLogEntryType.Information,m_nEventID);
Above I am Generating and writing an NT Event entry into the logviewer.
Here I am performing the action on event Source = MSSQLSERVER and its
EventID = 17055
So the issue is I am getting the Description of this Event as below:
"The description for Event ID ( 17055 ) in Source ( MSSQLSERVER )
cannot be found. The local computer may not have the necessary registry
information or message DLL files to display messages from a remote
computer. The following information is part of the event:
TESTMessage."
But if I want to get the description which will contain only the actual
event description of event 17055 what should I do?
You can please view the actual description of the event no 17055 by
restarting the MS SQL Server service.
Regards,
Rasheed
Please look in to this snippet.
string sEvtSource = "MSSQLSERVER";
int m_nEventID = 17055;
string sEvtLog = "Application";
if (!EventLog.SourceExists(sEvtSource))
EventLog.CreateEventSource(sEvtSource,sEvtLog);
EventLog.WriteEntry(sEvtSource,"TESTMessage",EventLogEntryType.Information,m_nEventID);
Above I am Generating and writing an NT Event entry into the logviewer.
Here I am performing the action on event Source = MSSQLSERVER and its
EventID = 17055
So the issue is I am getting the Description of this Event as below:
"The description for Event ID ( 17055 ) in Source ( MSSQLSERVER )
cannot be found. The local computer may not have the necessary registry
information or message DLL files to display messages from a remote
computer. The following information is part of the event:
TESTMessage."
But if I want to get the description which will contain only the actual
event description of event 17055 what should I do?
You can please view the actual description of the event no 17055 by
restarting the MS SQL Server service.
Regards,
Rasheed