Wednesday, March 28, 2012
maintenance plan error
I try to create a maintenance plan, but without success, having message
error : Error 8114: error converting datatype int to tinyint.
Please suggest workaround/solution if any
Thank youThis is normally "Error for converting data " you can search BOL for the
same,,,,
Did you get this error while creating maintenece plan for sure''
--
Thanks,
Sree
[Please specify the version of Sql Server as we can save one thread and
time
asking back if its 2000 or 2005]
"Elijah Bass" wrote:
> Hello
> I try to create a maintenance plan, but without success, having message
> error : Error 8114: error converting datatype int to tinyint.
> Please suggest workaround/solution if any
> Thank you
>
>|||underprocessablesql
maintenance plan error
I try to create a maintenance plan, but without success, having message
error : Error 8114: error converting datatype int to tinyint.
Please suggest workaround/solution if any
Thank you
This is normally "Error for converting data " you can search BOL for the
same,,,,
Did you get this error while creating maintenece plan for sure??
Thanks,
Sree
[Please specify the version of Sql Server as we can save one thread and time
asking back if its 2000 or 2005]
"Elijah Bass" wrote:
> Hello
> I try to create a maintenance plan, but without success, having message
> error : Error 8114: error converting datatype int to tinyint.
> Please suggest workaround/solution if any
> Thank you
>
>
|||underprocessable
Monday, March 12, 2012
maint. plan fails but doenst report error
I have this maint. plan where each and every step has been failing the last couple of days. The problem is, it doesn't write anything to the error logs. It only reports to the application log that each step of the plan has failed.
I suspect this might be a user rights problem, but it's difficult for me to say. What kind of rights are necessary for writing to the error logs?
In general, what rights are necessary for the user that runs the SQL Server Agent? And has anybody else experienced something similar?
MNJThis is mostly about scheduling a DTS package as a job. However, the security aspect of it should pertain to your situation as well.
Go Here: http://support.microsoft.com/default.aspx?scid=kb;en-us;269074 (Microsoft Knowledge Base Article 269074)
Friday, March 9, 2012
Mailing dba when Sql Server Agent Fails
Hello
I would like to have a script which mails the dba mail box when the sql server agent stops running. I am using the SMTP server for mailing.
I am using the query :
EXECUTE xp_servicecontrol 'QueryState', 'SQLSERVERAGENT'
to check the status.
I use the below for mailing :
EXEC master.dbo.xp_smtp_sendmail
@.FROM = N'testsql2000@.is.depaul.edu',
@.TO = N'dvaddi@.depaul.edu',
@.server = N'smtp.depaul.edu',
@.subject = N'Status of sqlserver!',
@.type = N'text/html',
@.message = @.message
How do I change it or write a script get a mail when the sql server agent is not running.
Thanks
You would need a script which checks the Agent, becasue there is no shutdown procedure which can be executed if the service becomes unavailable. The Script could either be executed from another Agent or from any scheduled component like AT / Winat of Windows.HTH, Jens Suessmeyer.
http://www.sqlserver2005.de
|||
I know that , if there are 2 servers first server can monitor the 2nd server agent and vice-versa.
But I am not sure how to work on it or what script to run.
So it would be of great help if anyone can let me know.
Thanks
Mailing dba when Sql Server Agent Fails
Hello
I would like to have a script which mails the dba mail box when the sql server agent stops running. I am using the SMTP server for mailing.
I am using the query :
EXECUTE xp_servicecontrol 'QueryState', 'SQLSERVERAGENT'
to check the status.
I use the below for mailing :
EXEC master.dbo.xp_smtp_sendmail
@.FROM = N'testsql2000@.is.depaul.edu',
@.TO = N'dvaddi@.depaul.edu',
@.server = N'smtp.depaul.edu',
@.subject = N'Status of sqlserver!',
@.type = N'text/html',
@.message = @.message
How do I change it or write a script get a mail when the sql server agent is not running.
Thanks
You would need a script which checks the Agent, becasue there is no shutdown procedure which can be executed if the service becomes unavailable. The Script could either be executed from another Agent or from any scheduled component like AT / Winat of Windows.HTH, Jens Suessmeyer.
http://www.sqlserver2005.de|||
I know that , if there are 2 servers first server can monitor the 2nd server agent and vice-versa.
But I am not sure how to work on it or what script to run.
So it would be of great help if anyone can let me know.
Thanks
Mailing DBA when sql server Agent Fails
I would like to know a script which mails the DBA mail box when the sql server agent fails ( I am working on sql server 2000) using SMTP. I have got SMTP server configured for all my other job failure notifications.
Please let me know any scripts that can be run on the command prompt or any ideas of how I can do it.
ThanksWhen the Agent service fails, or just when a job fails?|||When the Agent Service Fails.
Thanks|||Since the agent executes the scripts, how do you expect it to execute a script to notify you that it is no longer executing scripts?
Two alternatives:
1) Set up an agent on another server to check the functioning of the first one.
2) Set a script to run when the service is restarted (note that this will NOT notify if the server crashes and does not automatically restart).|||I use a configurable WMI script to check the status of selected services on selected servers. I check for any that are set to auto start and are not in a running state (or status, can't remember which).
Function CheckServices ( sComputer, sFQDN )
Dim oConnMail
Dim oCommMail
Dim oWMIService
Dim oItems
Dim oItem
Dim sDisplayName
Dim sSubject
Dim sMessage
Set oWMIService = GetObject("winmgmts:{impersonationLevel=impersonate,(Security )}!\\" & sFQDN & "\root\cimv2")
Set oItems = oWMIService.ExecQuery("SELECT * FROM Win32_Service",,48)
' Define objects for mail message
Set oConnMail = CreateObject("ADODB.Connection")
Set oCommMail = CreateObject("ADODB.Command")
' Open connection to mail database
oConnMail.ConnectionString = Replace(sConnectionString, sDatabase, "master")
oConnMail.Open
' Open connection to catalog database
oConn.ConnectionString = sConnectionString
oConn.Open
If Err.number = 0 Then
For Each oItem in oItems
If IsNull(oItem.DisplayName) Then
sDisplayName = oItem.Name
Else
sDisplayName = oItem.DisplayName
End If
' This part of the routine verifies that
' services that are set to Auto start are still running;
' if not running, then an alert is e-mailed
If oItem.StartMode = "Auto" and oItem.State <> "Running" Then
oCommMail.CommandText = "spSendMail"
oCommMail.CommandType = 4
oCommMail.ActiveConnection = oConnMail
sSubject = "Service " & oItem.Name & " stopped running on " & oItem.SystemName
sMessage = "Service " & sDisplayName & " stopped running on " & oItem.SystemName & VbCrLf & _
"Service Specific Exit Code: " & oItem.ServiceSpecificExitCode & vbCrLf & _
"Exit Code: " & oItem.ExitCode & vbCrLf & _
"Status: " & oItem.Status & vbCrLf & _
"State: " & oItem.State
' sMessage = "Test"
oCommMail.Parameters.Refresh
oCommMail.Parameters("@.Subject") = sSubject
oCommMail.Parameters("@.Message") = sMessage
oCommMail.Parameters("@.Recipient") = sRecipient
oCommMail.Execute
End If
Next
' Close mail database objects
Set oCommMail = Nothing
oConnMail.Close
Set oConnMail = Nothing
Else
Call AddLogEntry(sFQDN, "Error", "ServicesCheck", Err.number & " - " & Err.Source & " - " & Err.Description)
Err.Clear
End If
oConn.Close
End Function|||Hello
Thanks for your script.
How do I go on to execute the script. And do I need to download any WMI .
Thanks|||Hello
Thanks for your script.
How do I go on to execute the script. And do I need to download any WMI .
Thanks
I have a management server which is a dumping ground for a lot of different monitoring tools (some COTS, some custom). This script is scheduled from this server using Windows Scheduled Tasks. I pass in selected parameters to the script from the command line.
WMI is native to Windows 2000/Server 2003; you shouldn't need to load anything special there. You may need to adjust your permissions on the target server to be able to read from the WMI repository (I think you need to be at least a Power User, but I could be wrong.
Note that the script provided is a function. It would run inside of a main script that would:
1. Pull in a list of servers to poll
2. Pull in any system parameters (such as the e-mail address(es) you want the alert to go to
3. Call the function (passing in the name of the computer)
Regards,
hmscott