asp.net - TSQL query to result in a very time-consuming, it automatically work every morning, I want the results to be stored -


I have a TSQL query for a very long time consumer. I execute it every morning. I want the results to be stored But it is very time consuming. I just need a query result. It can be 100 rows. I think SSRS grains for me are new about SSRs. I have MS vs2013 and sqlserver 2012, MS winnserver 2012 environment.

What is the best way or the effective way to do this?

Ta guys but it does not cure my job. I do not want to send mail, I just set the query for the result which takes a lot of time. I'll use the result set on my ASP.NET pages as a report. Many different report styles but the results always make the same set. When the button 1_ click, then set the stored procedure to fire, it will take about 50 minutes. I just need a table generated with automatic query or I do not know anything. Click in the press button 1_ aspxgridview1 reslut set. 100 rows have got the highest result set. But the owner and managers would have clicked this button on an average 50 times per day. How can I solve it effectively? I do not have all the software express versions. I have a SQL Agent or Scheduler I have a Reporting Server but it has not used it yet

And responsible friends Thank you very much for not waiting for the money

Post-text "Madprop =" text ">

The easiest way to get this job (Only available in Express, if you want more information about this)

Use this proc: sp_send_dbmail This (among many other things) Mail system or CCV as attachment

The first step is to do your sendmail query and do a little test. Once you have this set, you worry about scheduling it. If you have Standard or above, you can use the SSMI GUI to click your way through a new job. It should be very self-sufficient if you use Express then there is a hillbill hack that you still do Can use to

It has to create a batch file that executes a sqlcmd command (your sendmail). It can be determined from windows with fixed tasks. Please advise that this is not very safe!

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -