Database Mail not working with SQL Server Agent

I'm running SQL Server 2005 Standard edition 64 bit with SP2 on a 64 bit machine. 
Database mail does not work with SQL Server Agent.  When I configure SQL Server Agent to use database mail the test email button is greyed out and inactive therefore I cannot send emails using operators or for jub success failure etc. 
I've read that there was supposed to be a fix for this with SP1 but I have SP2 and still receive the same problem.  Please can somebody help as I do not wish to use SQL Mail as a work around due to this becomming redundant in future versions of SQL Server.
Kind Regards

The problems solved
steps:
1)we create a mail profile at at Managment->Database Mail ,of SQL Managment
2)we set this account as "default" at Managment->Database Mail -> Configure Database Mail -> Manage profile security
3)At tab "Alert System" of SQL Server Agent properties , we check the "Enable mail profile" , Mail System=Database Mail, Mail profile = "the profile we already create"
4)we create a new operator at "Operators" of sql agent, where at "notification options" -> "Email name" we put the mail where we want to sent the agent the mails at failured job
5)We go at a specific job, at tab "Notifications" ,we check the "email" check box and then we choose the operator we just create, at the text box next to check box.
I hope not to forget something
Thank You all for the help

Similar Messages

  • DB mail not working in sql server 2005

    Hi,
    from today i get following error on sql server 2005
     Exception Type: Microsoft.SqlServer.Management.SqlIMail.Server.Common.BaseException
    Message: There was an error on the connection. Reason: Timeout expired.  The timeout period elapsed prior to obtaining a connection from the pool.  This may have occurred because all pooled connections were in use and max pool size was reached.
    Data: System.Collections.ListDictionaryInternal
    TargetSite: Void OpenConnection(Microsoft.SqlServer.Management.Common.SqlConnectionInfo)
    I can not send the mail.I am sending the mails same profile that configured.Before it is working perfectly.Today I send the bulk mails(near about 4000-5000 mails) through the java code. And from that time i can not get any mails.
    Please tell me how to solve the problem?

    Hello,
    Please refer to the following thread:
    https://social.technet.microsoft.com/Forums/en-US/c8fa3c2d-9e8a-4886-97bf-264c1b8bc31c/throttling-settings-for-sending-more-that-1500-emails-simultaneously-using-sql-job?forum=exchangesvrsecuremessaging
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Back arrow does not work with SQL Server Reporting Services Reports. When one pages back from a sub report the back action appears to skip moving to the previous step. IE 8 works fine?

    I have a SSRS report that has a parameter driven drop down list to select a catagory for a report to run a summary for the category in Report Manager. When the report runs there are links to a sub report with more detailed information about the category summary. Firefox runs everything correctly up to this point.
    When I try to back arrow from the sub report Firefox skips the summary report page and reverts to the initial page where the sub category can be selected to run the summary report.
    Can you help? IE8 works well with this but has severe spped issues with reports that contain multiple selection parameters. Firefox handles the multiple parameters very fast but has the page back issue.

    I have a SSRS report that has a parameter driven drop down list to select a catagory for a report to run a summary for the category in Report Manager. When the report runs there are links to a sub report with more detailed information about the category summary. Firefox runs everything correctly up to this point.
    When I try to back arrow from the sub report Firefox skips the summary report page and reverts to the initial page where the sub category can be selected to run the summary report.
    Can you help? IE8 works well with this but has severe spped issues with reports that contain multiple selection parameters. Firefox handles the multiple parameters very fast but has the page back issue.

  • Shrink database is not active in SQL SERVER Enterpriser manager

    Dear guru
    Shrink database is not active in SQL SERVER Enterpriser manager what to do
    Rupesh
    SAP BASIS Consultant

    Hi,
    >Thank you very much for not supporting i have solved the problem by reading some other documents
    That's exactly what I wanted you to do : With a little personal work, you can actually learn to do your own work ! "Don't give fish to hungry people. Teach them how to go fishing !"
    Regards,
    Olivier

  • Transact-SQL debugger not working in SQL Server 2008: "...debugger does not support SQL Server 2005 or earlier..."

    I have recently installed SQL Server 2008. When I try to execute a query against an Access database, I receive this debugging error:
    "Unable to start Transact-SQL debugger. The Transact-SQL debugger does not support SQL Server 2005 or earlier versions of SQL Server. (SQLEditors)"
    Nor will the query execute; I get a transport-level error 0. Any thoughts?

    Hi Davidmhjr,
    >>Unable to start the Transact-SQL Debugger. The Transact-SQL Debugger does not support SQL Server 2005 or earlier versions of SQL Server. (SQLEditors).
    Have you tried to restart the server once you have installed SQL Server 2008? As Naomi N mentioned please check the version of SQL Server you are using.
    If you tried to connect to SQL Server 2005 from SQL Server 2008 SSMS, you would not be able to debug and get this error, it happens because T-SQL debugger includes both server-side and client-side components. The server-side debugger components are installed
    with each instance of the SQL Server 2008 Database Engine. The client-side components are installed when you install the SQL Server 2008 client-side tools.
    So it works with SQL Server 2008 only so far. Another way is you can triy to use SQL Server 2005 SSMS to connect to SQL Server 2005.
    More information about configuration requirement to run T-SQL debugger as below, please refer:
    There are no configuration requirements to run the Transact-SQL debugger when SQL Server Management Studio is running on the same computer as the instance of the SQL Server Database Engine. However, to run the Transact-SQL debugger when SQL Server Management
    Studio is running on a different computer from the instance of the Database Engine, you must enable program and port exceptions by using the Windows Firewall Control Panel application on both computers.
    On the computer that is running the instance of the Database Engine, in Windows Firewall, specify the following information:
    •Add TCP port 135 to the exceptions list.
    •Add the program sqlservr.exe to the exceptions list. By default, sqlservr.exe is installed in C:\Program Files\Microsoft SQL Server\MSSQL10.InstanceName\MSSQL\Binn, where InstanceName is MSSQLSERVER for the default instance, and the instance name for
    any named instance.
    •If the domain policy requires network communications to be done through IPsec, you must also add UDP port 4500 and UDP port 500 to the exception list.
    On the computer that is running SQL Server Management Studio, in Windows Firewall, specify the following information:
    •Add TCP port 135 to the exceptions list.
    •Add program ssms.exe (SQL Server Management Studio) to the exceptions list. By default, ssms.exe is installed in C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE.
    Hope it is helpful.
    Regards, Amber zhang

  • Can TS work with sql server compact or express?

    I'm don't have much experience with the underpinning of database systems.  I know conceptually how they work and can hack my way through sql queries.  Is there something fundamentally different about a Sql Server Compact itnstall versus Sql Server versus Sql Server Express?  Can TS work with any of them with a proper connection string?
    My problem is at our local site a previous employee set us up on Sql Server and wrote a web app (.asp) to do the query for presentation on a web page.  At an offsite location they can't install Sql Server and I'm trying to figure out the best path for them to be able to use the same .asp tool we have.  My gut feeling is the .asp tool is probably set up such that it wouldn't take much to make it work with MySql but because I don't have the luxury of time I'm hoping someone can point me in what they think might be the easiest direction (whether that is sql compact if possible or MySql for them).

    Hi,
    TestStand works with SQL server express. (not sure about SQL server compact).
    Ravi

  • ColdFusion8 works with SQL Server 2008 compatibility level 90?

    We're currently is using ColdFusion8 and need to upgrade the database from SQL Server 2000 to 2008. Will ColdFusion8 work with SQL Server 2008 compatibility level 90?

    Hi,
    ColdFusion 8 is not supported with SQL Server 2008. A list of supported environment is available at http://www.adobe.com/products/coldfusion/pdfs/cf8_systemsupportmatrix.pdf
    Regards,
    Anit Kumar

  • Add does not run with sql server 2008

    Hi all,
    My add on in the development environment does not run with SQL SERVER 2008. It ran well with SQL Server 2005 and sap b1 2207 B.
    On executing the project file system throws an error "YOU ARE NOT CONNECTED TO THE COMPANY"
    we are trying this scenario on a test machine where SAP B1 2007B with temporary license for one month and SQL server 2008
    is installed.
    Help needed.
    Thanking you
    Pradnya

    Hi Use this
    Dim i as integer
    i=oCompany.Connect()
    if i<> 0 Then
    msgbox(ocompany.GetLastErrorDescription ())
    end if
    the you will get the error description also use try catch wherever necessary
    Alternatively you can use
    Dim SboGuiApi As SAPbouiCOM.SboGuiApi
    Dim sConnectionString As String
    Set SboGuiApi = New SAPbouiCOM.SboGuiApi
    sConnectionString = Command
    SboGuiApi.Connect sConnectionString
    Set SBO_Application = SboGuiApi.GetApplication()
    Set ocompany = New SAPbobsCOM.Company 'initialate DI company object
      ocompany = SBO_Application.Company.GetDICompany
    HTH,
    Atul

  • EXEC SP_EXECUTESQL not working in sql server 2014

    EXEC SP_EXECUTESQL not working in sql server 2014

    EXEC SP_EXECUTESQL not working in sql server 2014
    Hi Amar,
    What's the error when executing this stored procedure?
    I have tested it on my local environment, we can run this SP without any problems.
    Please provide us more information, so that we can make further analysis.
    Regards,
    Charlie Liao
    TechNet Community Support

  • SSIS configuration Not Working With SQL agent Job

    Hi,
    I have created an SSIS configuration table in SQL Server where in I store all connection strings. This configuration is enabled within my package. To make even the DB where I store connection strings, I have an environment varibale. I thus have 2 configurations
    in the following order:
    1. env variable: Points to the DB where in my connection strings would be stored.
    2. SQl Server configuration:where I actually, store the connection strings.
    However , when I try to execute the package, it seems the SQL Server agent does not read from the Configuration tables at all.
    Can someone let me know how to enable this from within SQL Server agent? I do not store connection strings in a file, so I can't add any files within the configuration tab.
    Please let me know as to how do I enable configurations stored within SQL tables from SQL Server Agent jobs. I am using SQL Server 2008.

    Todd,
    Yes, I have enabled the configurations from within the package. When I open the package from BIDS, I do see information stating that package is trying to read from the environment variable and from the SQL Server.
    However, when the same package is used in a SQL Agent job, in the data sources tab, I see the connection string which I have set manually within the package, not the one which it should read from the Configuration table.
    E.g. in the design of my package, I am using Server A with Credential1, but within the Configuration table, against the same Connection, for the Same Server , I have stored Credential2.
    It should read the Credential2, as I have configuration enabled (as I can also verify from the messages within BIDS, upon opening the pacakge).
    However, it just reads the same Credential1, which has been supplied at design time.
    Not sure how can I access the Configuration stored within the SQL table from a SQL Agent job

  • SQL Procedure working when run manually, not running from sql server agent

    I have a procedure that runs fine using the execute command in SSMS, however putting the same command in a job gives the following error.
    line 9, character 9, unexpected end of input
    The code takes a very long XML string in UTF-8 encoding and puts it into a single nvarchar(max) cell. Then puts this string into a XML cell in a different table, allowing me to query the individual parts of the XML code using the nodes function. I cannot put
    the data directly into a nvarchar cell due to encoding differences.
    I can't reproduce the string here as it is very very long.
    I'm just looking for ideas really as to where it might be going wrong.
    Here is what I know so far:
    The procedure runs without issue when executed manually
    I have checked permission issues, and that doesn't seem to be the problem. The agent runs under my own account and I am a sysadmin on the database
    I split the procedure into seperate parts to locate exactly where the problem is occuring. Once again the seperate procedures run fine when executed manually but an error occurs when run through SQL Server agent.
    When the query is run seperately through SQL Server Agent it gives a slightly different error. This leads me to believe it is an encoding issue. However I am getting the XML from a webpage and I can't change the encoding on the webpage.
    line 1, character 38, unable to switch the encoding
    I know this is a long shot since you can't replicate the issue but if anyone could give an idea as to where to start looking for an answer, it would be greatly appreciated.

    Here's how I'm taking the XML data and putting it into an nvarchar(max) column (Column Name TEXT):
    Select @url = 'http://....'
    EXEC @hr=sp_OACreate 'WinHttp.WinHttpRequest.5.1',@win OUT
    IF @hr <> 0 EXEC sp_OAGetErrorInfo @win
    EXEC @hr=sp_OAMethod @win, 'Open',NULL,'GET',@url,'false'
    IF @hr <> 0 EXEC sp_OAGetErrorInfo @win
    EXEC @hr=sp_OAMethod @win,'Send'
    IF @hr <> 0 EXEC sp_OAGetErrorInfo @win
    INSERT #TextData(TEXT)
    EXEC @hr=sp_OAGetProperty @win,'ResponseText'
    IF @hr <> 0 EXEC sp_OAGetErrorInfo @win
    EXEC @hr=sp_OADestroy @win
    IF @hr <> 0 EXEC sp_OAGetErrorInfo @win

  • Select works with SQL Server but not with Oracle!

    Hello
    this select works on SQL Server correct, but it don't work on Oracle!
    Can someone help me?
    Select * from Tabelle, Tabelle as XXX Where Tabelle.ID=XXX.IDTabelle
    Thanks
    Thomas

    Hi,
    These are the things which I have noticed, which wont work in Oracle ..
    Table As XXX ?? Are you giving alias name for the table .. The syntax which you have givne doesnt work in Oracle
    Regards

  • Distributed transaction using linked server not working in SQL Server 2008 64 bit

    Hi. I have had an issue trying to get distributed transactions to work in SQL Server 2008 using a linked server. The error message I get is
    OLE DB provider "SQLNCLI10" for linked server "pod1" returned message "No transaction is active.".
    Msg 7391, Level 16, State 2, Line 3
    The operation could not be performed because OLE DB provider "SQLNCLI10" for linked server "pod1" was unable to begin a distributed transaction.
    My Environment:
    Windows Server 2008 Enterprise 64 bit, SQL Server 2008 Enterprise 64 bit
    Problem occurs with multiple different builds of SQL Server 2008 - I have been able to reproduce the problem with 10.0.1600.0, 10.0.1779.0 (CU 2), as well as 10.0.2531 (SP1)
    I am aware that other people have had this issue and have reviewed all existing posts. I have verified that the MSDTC is configured correctly on both machines. I have also used DTCTester to verify that DTC is working correctly on all machines in question.
    None of the mentioned resolutions has solved this problem for me.
    I am not seeing this problem occur on my 32 bit test machines - it is only occurring if at least one of the two machines is 64 bit.

    Hi All,
    I realise that this topic may be a little bit out-of-date but if someone gets here from some search engine trying to find a solution for DTC problems, this MAY be useful.
    So... I recently had the same issue, tried all the approaches described in KB and other articles, but it didn't help. Because my task to solve this was not of the highest priority I forgot about it for some time.
    Today I was troubleshooting some other issue and, by accident discovered source of that first problem:
    In the EventViewer I found Error entry logged by MSDTC saying:
    "The local MS DTC detected that the MS DTC on vm-server1 (other machine name that also runs DTC - my comment) has the same unique identity as the local MS DTC. This means that the two MS DTC will not be able to communicate
    with each other. This problem typically occurs if one of the systems were cloned using unsupported cloning tools. MS DTC requires that the systems be cloned using supported cloning tools such as SYSPREP. Running 'msdtc -uninstall' and then 'msdtc -install'
    from the command prompt will fix the problem. Note: Running 'msdtc -uninstall' will result in the system losing all MS DTC configuration information."
    So I followed suggestion and run:
    msdtc -uninstall
    msdtc -install
    This solved my problems with DTC. Hope it will help someone.
    Piotr

  • Apple Mail not working with IMAP account

    I have been using Entourage for my email with several IMAP email accounts. SOme of the accounts I was getting occasional errors so I thought I would try Apple Mail.
    I am able to successfully set up the accounts in Mail (i.e. it successfully logs into server) however it does not get any of the mail nor does it get any of the mail folders that are on the IMAP server (viewing email using Web Mail or even going back to Entourage shows the emails on the account). Are there any special (hidden) tricks that I need to do to get Mail to work with a standard IMAP mail server?

    I have a very similar problem. Apparently IMAP access is better than POP3. Well IMAP slows my Mac to a complete stop whereas POP3 is seamless. I deleted my POP3 mailboxes after successfully accessing my GMail accounts via IMAP, then it slowed down.
    I've deleted the IMAP accounts a few times, but each time a new account is created it forces me to accept IMAP with no option for POP3. The help file also contains no information on POP3.
    I get about 50 emails everyday and my usual point of email access has just become redundant, I must now rely on email via my browser and .
    I made this change because the iPhone does not sync downloaded emails with Apple Mail. In Mail on my Mac, the one GMail inbox I have setup says there are 11 unread which it eventually shows yet none appear unread. I'll have to rely on web-based email until this is resolved.
    Can anyone help with these IMAP access problems?

  • Will Report Builder 2012 Work with SQL Server 2008???

    Simple question really
    Will Report Builder 2012 work in conjunction with SQL Server 2008???
    Is it worth while upgrading?
    The main reason i ask is the ability to export in an xlsx format
    Thanks

    Hi Gmach,
    The version of Report Builder on SQL Server Reporting Service (SSRS) 2012 is Report Builder 3.0. The Report Builder 3.0 manufactures 2010 RDL reports, so it only works with the version of SQL Server 2008 R2 or later. So in your scenario, we can no connect
    to SQL Server 2008 Server using Report Builder that on SSRS 2012.
    If you have any questions, please feel free to ask.
    Regards,
    Charlie Liao
    TechNet Community Support

Maybe you are looking for