![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Not a SQL guy ..... Want to schedule the query to run automatically -> import data to a file and email me. Using SQL 2005 Express Edition with SQL Management Studio Express. Advise Please. Thank you |
#3
| |||
| |||
|
|
To run that query automatically entirely from within SQL Server you need the SQL Server Agent. But SQL Server Agent is not included in SQL Server Express Edition. So you will have to create a Windows job that will connect to SQL Server and execute the statement. There are a variety of tools you can use. See How To Schedule Tasks in Windows XP http://support.microsoft.com/kb/308569 I think PowerShell also has a scheduling system as well. And the task will probably use sqlcmd or osql to connect to SQL Server and execute some set of statements. I hope this gets you started. -- Rick Byham, MSFT (Implies no warranty or rights) "WildPacket" <WildPacket (AT) discussions (DOT) microsoft.com> wrote in message news D1F08E8-3AA6-403A-A4E1-0AE8654D84EC (AT) microsoft (DOT) com...Not a SQL guy ..... Want to schedule the query to run automatically -> import data to a file and email me. Using SQL 2005 Express Edition with SQL Management Studio Express. Advise Please. Thank you . |
![]() |
| Thread Tools | |
| Display Modes | |
| |