Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
alistair4267
Starting Member
10 Posts |
Posted - 2007-10-24 : 18:01:23
|
Hello everyoneI am working on a little project for work which get the relvant data every 2mins and puts the data into a Data Grid in ASP.net 2.0 Now my SQL scipt runs every 2min and i need to know if at a certain time i could tell the SQL script to run the report and email me the results???any help would be great thanks alistair  |
|
|
dataguru1971
Master Smack Fu Yak Hacker
1464 Posts |
Posted - 2007-10-24 : 19:36:21
|
| If email notification is enabled on the server, you can schedule this in SQL Server Agent. |
 |
|
|
rmiao
Master Smack Fu Yak Hacker
7266 Posts |
Posted - 2007-10-24 : 21:45:54
|
| You can use sp_send_dbmail or xp_sendmail to mail you result. |
 |
|
|
alistair4267
Starting Member
10 Posts |
Posted - 2007-10-25 : 13:43:18
|
Thanks for your help.i will look into this and see what i can come up with. regardsalistair |
 |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2007-10-25 : 13:54:29
|
| If the results are to go into a DataGrid in ASP.NET 2.0 every 2 minutes, then you should be doing this inside a web service and not via email in SQL Server.Tara KizerMicrosoft MVP for Windows Server System - SQL Serverhttp://weblogs.sqlteam.com/tarad/ |
 |
|
|
|
|
|