Can SQL Server Express Send an Email When an SProc Finishes?

I looked online for an answer to this; I didn't find anything definitive.  I'm wondering if I can get my SQL Server Express to send an email as soon as an SProc runs.  I know a more robust version of SQL Server can do it, but I don't know if the
express version can do it.  If it can be done, can you please show me how to set it up, step by step.
Thanks everyone!!
Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

if I can get my SQL Server Express to send an email as soon as an SProc runs.  I
The SQL Server Express Edition don't support Database E-Mail feature; see
Features Supported by the Editions of SQL Server 2012; so you can't send an e-mail.
Olaf Helper
[ Blog] [ Xing] [ MVP]

Similar Messages

  • Can SQL Server Express Send Emails?

    I am fiddling around with one of my SQL Server Express instances, and I'm trying to get it to send me an email.  I just read these links.
    http://execsql.org/configure-send-database-email-sql-server-2012-express-edition
    http://www.databasejournal.com/features/mssql/article.php/3626056/Database-Mail-in-SQL-Server-2005.htm
    I followed all the steps there, and now, as I'm trying to send myself an email, I get this message.
    The mail could not be sent to the recipients because of the mail server failure. Exception Message: Could not connect to mail server.
    When I run this:
    SELECT * FROM msdb.dbo.sysmail_event_log;
    I see this:
    description
    The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 1 (2015-01-21T14:25:36). Exception Message: Could not connect to mail server. (The requested name is valid, but no data of the requested type was found).
    Any idea what's wrong?  Can SQL Server Express even send emails???
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

    Hello,
    You can make use of CLR Integration for sending email from SQL Server Express.
    http://www.sqlservercentral.com/articles/SQL+Server+Express/71341/
    http://www.vnypatel.com/sending-emails-with-clr-sql-server-express-editions
    SQL Server Express does not support database mail.
    https://msdn.microsoft.com/en-us/library/cc645993.aspx
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • How to attatchment some files that are in other server to send an email?

    Hi
    I need to send an enmail with sql, but i have to attatchment some files, those files are in anohter server, so I want to know, how attatchment those files? 
    Thanks in advance 

    Yeah, I don't know if you can attach a file on a remote server.  Why not just copy it over to the SQL Server machine, and attach it form there (which would be the local machine when the file is downloaded).
    Please see this for info about using email in SQL Server.
    Create account, permission account, and send Email from SQL Server Express:
    http://www.sqlservercentral.com/blogs/querying-microsoft-sql-server/2013/09/02/sending-mail-using-sql-server-express-edition/
    Check email event log, and remove unsent emails from server
    http://www.dotnet-tricks.com/Tutorial/sqlserver/4761260812-Remove-unsent-database-email-from-SQL-Server.html
    Troubleshoot email error message:
    http://www.mytechmantra.com/LearnSQLServer/Troubleshooting-SQL-Server-blocked-access-to-procedure-sp_send_dbmail.html
    When you get your email processes working fine, download the file using C#.
    http://www.microsoft.com/en-us/download/details.aspx?id=34673
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Net;
    using System.IO;
    namespace ConsoleApplication2
    class Program
    static void Main(string[] args)
    string localPath = @"C:\Downloads\";
    string fileName = "your_file.txt";
    FtpWebRequest requestFileDownload = (FtpWebRequest)WebRequest.Create("ftp://ftp.server.com/" + fileName);
    requestFileDownload.Credentials = new NetworkCredential("your_username", "your_password");
    requestFileDownload.Method = WebRequestMethods.Ftp.DownloadFile;
    FtpWebResponse responseFileDownload = (FtpWebResponse)requestFileDownload.GetResponse();
    Stream responseStream = responseFileDownload.GetResponseStream();
    FileStream writeStream = new FileStream(localPath + fileName, FileMode.Create);
    int Length = 2048;
    Byte[] buffer = new Byte[Length];
    int bytesRead = responseStream.Read(buffer, 0, Length);
    while (bytesRead > 0)
    writeStream.Write(buffer, 0, bytesRead);
    bytesRead = responseStream.Read(buffer, 0, Length);
    responseStream.Close();
    writeStream.Close();
    requestFileDownload = null;
    responseFileDownload = null;
    Sorry if this is a little more complex than what you were looking for, but I think this is the easiest way to do it.  :0
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

  • How to modify stored procedures in SQL Azure database in SQL server express 2012

    Hi,
    I want to modify stored procedures in SQL Azure database in SQL Server Express 2012. But when right click on the stored procedure in Object Explorer, there is no option "Modify" as for SQL Server database. I wonder how to modify stored procedures in SQL
    Azure database in SQL Server Express 2012. Thanks.
    York

    Hi,
    Not sure whay there is no modify..
    As a workaround can you try this and see if you can modify proc..
    Script Procedure As-> Alter To->New query window..
    - Chintak (My Blog)

  • Can't add datasource for local SQL Server Express

    I can't get new datasource to connect to a local SQL Server Express (2008).
    On SSE, I enabled non-NTLM authentication, created an account specifically for CFServer, and was able to log into SQL Server through Management Studio. But the datasource still won't connect.
    When I enter computerName/SQLServerName for the Server, I get a message saying "...The requested instance is either invalid or not running."
    When I enter just SQLServerName, message says "Error establishing socket. Unknown host: SQLServerName."
    When I enter (local), I get a message saying "Error establishing socket. Unknown host: (local)"
    When I enter 127.0.0.1, message says "Error establishing socket to host and port: 127.0.0.1:1433. Reason: Connection refused: connect"
    I don't know why the first is considered invalid, or why the fourth is refusing connection. Am I forgetting something?

    I found the solution, which doesn't have to do with Coldfusion, but rather with configuring SQL Server for TCP/IP.  In case someone else ever stumbles upon this post with a similar problem, I wrote about it at http://forums.devshed.com/ms-sql-development-95/trying-to-connect-to-sql-server-on-localho st-1433t-958558.html.

  • Can't install sql server express

    HElp!!!
    I'm trying to install any recent free sql server.. to practice with vs2012 and asp.net mvc.. and the install keeps failing.  THis is my personal desktop running 64bit Windows 7.  sql server express "said" it was installing but sql
    server doesn't show up under Start/all programs and SWL server management studio isn't under administrative tools.  I tried sql server express but it said it wouldn't install on 64 bit -- something about WOW.  Several sql server things are listed
    in control panel and I'm trying to uninstall them to start over.   Please point me to place to get sql server express with hopefully instructions to install.  Buying a 32 bit computer is not an option at this time.
    Thanks in advance,
    Kay

    problems: 1. no menu item for "new table" in sql server management studio (Right click on tables)
    2. Can't attach northwind db and won't create it using script.  missing stored procedure 'sp_dboption'
    Hi,
    Based on your description, firstly, we need to verify  if  there is no option of ‘New Table’ when right-clicking ‘Tables’ in the left panel of SQL Server Management Studio (SSMS), or you cannot create new table via the GUI in the right panel as follows.
    They might be caused by incomplete installation, I recommend you to check if you have installed the SQL Server 2012 completely.
    Secondly, are you trying to attach the NORTHWIND sample database with the sp_dboption in SSMS? If so, the sp_dboption has been deprecated in SQL Server 2012, it’s only supported in SQL Server 2008 or prior version, you can use
    ALTER DATABASE NORTHWIND SET RECOVERY SIMPLE to replace the following lines in the
    instnwnd.sql script, then execute it. I have done a test successfully in SQL Server 2012. 
    exec sp_dboption 'Northwind','trunc. log on chkpt.','true'
    exec sp_dboption 'Northwind','select into/bulkcopy','true'
    In addition, according to the message “visual studio 2013 does NOT recognize the server”, it seems that you encounter the connection issue between Visual Studio and SQL Server. If you get some error messages, you can post them for further analysis. Also, you
    need to verify that the connection string (contains server name, login, password and so on) is correct when connecting to the SQL Server from Visual Studio.
    Thanks
    Lydia Zhang

  • I can't see sql server express 2012 from ssms 2008 R2 -- what do I need to download?

    I'm running sql server 2008 R2 Developer on a win7 (pro) workstation.   I would like to keep this installation because it has SSRS and Analysis Server. But I was not able to attach a sql 2012 DB so I downloaded Sql Server Express 2012 (per the
    picture below - 1st option selected) and installed it.   Sql Server Express 2012 appears to be running -- per my services list, but I cannot see the instance in ssms 2008 R2. Do I need to uninstall Sql Server Express 2012 and then download another
    option (from the picture below)? How should I proceed so that I can have a working/workable instance of Sql Server Express 2012 that I can see in ssms (whatever required version) and also keep sql server 2008 R2?  which download should I select (from
    the picture below?
    Rich P

    Should I uninstall Sql server 2012 first?
    Rich P
    No you do not need to uninstall any thing
    >> Sql Server Express 2012 appears to be running -- per my services list, but I cannot see the instance in ssms 2008 R2.
    You need to just download SQL Server 2012 express management studio and use that to connect to SQL Server 2012. And use SSMS 2008 r2 to connect to SQL Server 2008 r2.
    This File :ENU\x64\SQLManagementStudio_x64_ENU.exe
    Although I guess SSMS 2012 express with SP2 would work just fine and you would connect to 2008 R2 database using that.
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Wiki Article
    MVP

  • Issue when installing SQL Server Express 2012 - "The requested control is not valid for this service" + "Could not find the database engine startup handle"

    Good morning,
    I'm experiencing the following issue when installing Microsoft SQL Server Express 2012 (with tools, SQLEXPRWT_x86_ENU.exe) on the laptop of my company;
    Installation goes plain until around the end of the progress bar, it stops on the setup of
    SqlEngineDBStartConfigAction_install_configrc_Cpu32
    giving 7-8 times, even pressing "Cancel", the message "The requested control is not valid for this service";
    After this, I receive one last message ""Could not find the database engine startup handle", then installation ends with failures, in particular the Database Engine and the Server Replication failed to be installed.
    I've put in my SkyDrive the error log I received after the install;
    I'm at full disposal if you need further information,
    thank you in advance
    Best regards
    Francesco

    Well, i just ran into this issue and the problem was lack of admin rights. It was my company's laptop so got the setup initiated by my company's IT team with admin rights. However, the upon completion of setup, i go the same error messages as stated above: 
    SqlEngineDBStartConfigAction_install_configrc_Cpu32
    giving 7-8 times, even pressing "Cancel", the message "The requested control is not valid for this service";
    After this, I receive one last message ""Could not find the database engine startup handle", then installation ends with failures, in particular the Database Engine and the Server Replication failed to be installed.
    Also, if you open SQL Server Configuration, the status of the service is "Change Pending" and you would not be able to set the startup login type to Local Service/System/Network.
    Then, I just got my account added as Local Admin and then tried to start the service and was able to.
    However, I am not sure whether same was the case for you.
    Please mark the answer as helpful if i have answered your query. Thanks and Regards, Kartar Rana

  • Can i use sql server express 2008, 2012, and 2014 for commercial purpose?

    Good day,
    I saw that the sql server express 2005 can be used for commercial purpose without buying additional license
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/8df18025-fc2b-43c2-8476-532336ff09e3/sql-server-express-for-commercial-use?forum=sqlexpress
    the question is can I do the same for sql server express 2008,2012, and 2014?
    can I install and use sql server express 2008, 2012 and 2014 on an azure vm? specifically
    http://azure.microsoft.com/en-us/pricing/details/virtual-machines/
    A0 instance
    just an off topic question, is it required to pay to use sql server on virtual machines?
    why is there a different pricing here
    http://azure.microsoft.com/en-us/pricing/details/virtual-machines/#Sql

    Hello,
    Yes, you can use all versions SQL Server Express for commercial use. Please read more resources about it.
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/01dbc5c3-b5fe-42d4-9eb9-91683cf8285b/can-any-commercial-application-that-uses-sql-server-express-freely-redistribute-the-sql-server?forum=sqlexpress
    https://social.technet.microsoft.com/Forums/en-US/661ebf2e-ff2f-4dae-a8ae-e2179a764c09/sql-server-2012-express-in-commercial-product?forum=sqlexpress
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Can we Install SQL Server Express with Advanced Services x 64 bit for our testing purpose without procuring any license? Also can we use it for commercial use if we are neglect risk sof using it on Production?

    Can we Install SQL Server Express with Advanced Services x 64 bit for our testing purpose without procuring any license? Also can we use it for commercial/Production
    use if we are agree to take risk of using it on Production?

    Hi,
    Yes you can, but you should be aware of the limitations of MS SQL Express version.
    1. 1GB RAM
    2. 10 GB database size per database excluding log file (SQL 2008 R2 and above)
    3.Job Scheduling service is not available with SQL Server Express.
    4.Data import and export feature is not available with SQL Server Express.
    5.Limitation on number of CPU
    Refer following article for features supported by different editions of MS SQL Server.
    Features Supported by the Editions of SQL Server 2012
    Please mark solved if I've answered your question, vote for it as helpful to help other users find a solution quicker
    Praveen Dsa | MCITP - Database Administrator 2008 |
    My Blog | My Page

  • Can't find SQL Server Express application after install

    I have downloaded and install SQL Server Express on my new Win 8.1 laptop.  Installtion runs without any issues (no error messages displayed) and shows a successfull completion.  However, I can't seem to make any connections to the server.  There
    are not applicaitons available and I don't get any response trying to make a connection.  How do I make connection?

    Hello,
    Do you search your computer already for the SQL Server programs installed by SQL Server setup? On
    the Start Screen, could you write the word SQL and see what the search can find on your computer?
    What version of SQL Server you installed? Depending of the version installed, could you share with
    us the Summary.txt log file? The following article may help you locate the Summary.txt log file:
    http://technet.microsoft.com/en-us/library/ms143702(v=sql.110).aspx
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • In Lookout 6.2 how can I send an email when an alarm has deactivated or cleared?

    I need to send an email when an alarm has deativated. Such as, AC power fails and the generator is running. Whne the AC power is restored, I want to send an email as well as when the generator stops running. I have created mailer objects to do this based on the data member for each being "false". The problem is, that if the system does a restart then emails go out for all of those data members because they start up as "false" in the normal condition. Anyone have a suggestion?
    Thanks
    Brad Adams
    Communications Group Inc.
    [email protected]

    Simplest way i can think of is a FlipFlop or a latchgate obect to ensure it did start first.  Reset the flipflop/latchgate when the email is sent.
    Mike
    Mike Crabtree - Lead Developer
    Destek of Nevada, Inc. / Digital Telemetry Systems, Inc.
    (866) 964-6948 / (760) 247-9512

  • How many sql server express instances i can install maximum in single system

    Hello Team,
    I want to install multiple sql express instances in single machine. My question is that how many instances of sql server express editions i can install in single machine ? 
    Thanks,
    Udaya Kumar
    udaya kumar

    For practical reasons as much as you like you probably would not exceed in any case 10 instances because after that resource crunch would start but any how you can read Max specification for SQL Server
    More accurate answer is "50 instances on a stand-alone server for all SQL Server editions."
    https://msdn.microsoft.com/en-us/library/ms143432.aspx
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Wiki Article
    MVP

  • Sending an email when passwords are expired?

    Hello,
    I am a novice in JSP area. What I am working on thesedays is to send an email when a password has been expired. The password will be expired after 60 days. Can I embed the codes in Servlet? Or should I use something else such as Oracle pl/sql?
    The thing is the web server is not in my company. I have to send a war file to the office which has the server. So I really want to embed every functions including sending an email into the war file.
    Thank you in advance!

    I am sorry. I put this on wrong forum. I didn't know how to delete it, though.

  • SQL Server Express Performance Limitations With OGC Methods on Geometry Instances

    I will front load my question.  Specifically, I am wondering if any of the feature restrictions with SQL Server Express cause performance limitations/reductions with OGC methods on geometry instances, e.g., STIntersects?  I have spent time reading
    various documents about the different editions of SQL Server, including the Features Supported by the Editions of SQL Server 2014, but nothing is jumping out at me.  The
    limited information on spatial features in the aforementioned document implies spatial is the same across all editions.  I am hoping this is wrong.
    The situation....  I have roughly 200,000 tax parcels within 175 taxing districts.  As part of a consistency check between what is stored in tax records for taxing district and what is identified spatially, I set up a basic point-in-polygon query
    to identify the taxing district spatially and then count the number of parcels within in taxing district.  Surprisingly, the query took 66 minutes to run.  As I pointed out, this is being run on a test machine with SQL Server Express.
    Some specifics....  I wrote the query a few different ways and compared the execution plans, and the optimizer always choose the same plan, which is good I guess since it means it is doing its job.  The execution plans show a 'Clustered Index Seek
    (Spatial)' being used and only costing 1%.  Coming in at 75% cost is a Filter, which appears to be connected to the STIntersects predicate.  I brute forced alternate execution plans using HINTS, but they only turned out worse, which I guess is also
    good since it means the optimizer did choose a good plan.  I experimented some with changing the spatial index parameters, but the impact of the options I tried was never that much.  I ended up going with "Geometry Auto Grid" with 16 cells
    per object.
    So, why do I think 66 minutes is excessive?  The reason is that I loaded the same data sets into PostgreSQL/PostGIS, used a default spatial index, and the same query ran in 5 minutes.  Same machine, same data, SQL Server Express is 13x slower than
    PostgreSQL.  That is why I think 66 minutes is excessive.
    Our organization is mostly an Oracle and SQL Server shop.  Since more of my background and experience are with MS databases, I prefer to work with SQL Server.  I really do want to understand what is happening here.  Is there something I can
    do different to get more performance out of SQL Server?  Does spatial run slower on Express versus Standard or Enterprise?  Given I did so little tuning in PostgreSQL, I still can't understand the results I am seeing.
    I may or may not be able to strip the data down enough to be able to send it to someone.

    Tessalating the polygons (tax districts) is the answer!
    Since my use of SQL Server Express was brought up as possibly contributing to the slow runtime, the first thing I did was download an evaluation version of Enterprise Edition.  The runtime on Enterprise Edition dropped from 66 minutes to 57.5 minutes.
     A reduction of 13% isn't anything to scoff at, but total runtime was still 11x longer than in PostgreSQL.  Although Enterprise Edition had 4 cores available to it, it never really spun up more than 1 when executing the query, so it doesn't seem
    to have been parallelizing the query much, if at all.
    You asked about polygon complexity.  Overall, a majority are fairly simple but there are some complex ones with one really complex polygon.  Using the complexity index discussed in the reference thread, the tax districts had an average complexity
    of 4.6 and a median of 2.7.  One polygon had a complexity index of 120, which was skewing the average, as well as increasing the runtime I suspect.  Below is a complexity index breakdown:
    Index
    NUM_TAX_DIST
    1
    6
    <2
    49
    <3
    44
    <4
    23
    <5
    11
    <6
    9
    <7
    9
    <8
    4
    <9
    1
    <10
    4
    >=10
    14
    Before trying tessellation, I tweaked the spatial indexes in several different ways, but the runtimes never changed by more than a minute or two.  I reset the spatial indexes to "geometry auto grid @ 32" and tried out your tessellation functions
    using the default of 5000 vertices.  Total runtime 2.3 minutes, a 96% reduction and twice as fast as PostgresSQL!  Now that is more what I was expecting before i started.
    I tried using different thresholds, 3,000 and 10,000 vertices but the runtimes were slightly slower, 3.5 and 3.3 minutes respectively.  A threshold of 5000 definitely seems to be a sweet spot for the dataset I am using.  As the thread you referenced
    discussed, SQL Server spatial functions like STIntersect appear to be sensitive to the number of vertices of polygons.
    After reading your comment, it reminded me of some discussions with Esri staff about ArcGIS doing the same thing in certain circumstances, but I didn't go as far as thinking to apply it here.  So, thanks for the suggestion and code from another post.
     Once I realized the SRID was hard coded to 0 in tvf_QuarterPolygon, I was able to update the code to set it to the same as the input shape, and then everything came together nicely.

Maybe you are looking for

  • Proxy error when downloading report (IR) in csv format

    I'm getting the error below when downloading IR report in csv format. I'm getting that whenever the records is more than 108,000. Is there a limit in records to download? Is there a resolution. I am using apex 4.1, EXCEL 2010. Thanks, Pinky

  • Re-invite Problem. Driving me Crazy. Please Help

    I changed phones from curve 8900 to 9300 3G I restored my contacts and 75% of the contacts keep asking me to re-invite. It seems I keep disappearing from my friends list. And no my contacts are not deleting me. Example: I send a test message to my w

  • Need to upgrade R12.AD.B.delta.2 to R12.AD.B.delta.3.

    Hi, Please tell me which patch or patches requried to upgrade the R12.AD.B.delta.2 to R12.AD.B.delta.3. and R12.AD.B.1 to R12.AD.B.2 and R12.AD.B.2 to R12.AD.B.3??? thanks

  • ABAP soft ware installation

    Hello Friends: I installed the SAP ABAP software in Harddrive in india.From this harddrive How to reinstall this software in to my computer in US?pls give me a step wise procedure? It has windows 2000 O/S.Have I any problem with this?

  • Can I get my songs from my windows formatted Ipod to my Itunes for mac??

    I just recently switched over to mac and I'm having a bit of trouble getting started. I have all my songs and pictures on my Ipod formatted to windows and I was wondering if it was possible to get those songs and pics on my new macbook??