473,403 Members | 2,366 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

I want to automate running an SQL query and export to a file every 15 minutes

1
Hi all,

I have an SQL query that bring back data for customer contacts (name, telephone number, time of call, agent ID e.t.c) which is run manually every day.
The business now requires me to extract this data every 15 mintues, and i don't want to have to do it manually as i wont have time to anything else with my day!

I would like to find a way of running the SQL query once every 15 minutes and have it export the data to a text file, is this possible?

Cheers

Dai
Jan 27 '15 #1
2 1833
ck9663
2,878 Expert 2GB
Yes, it's possible.

Create a job that runs every 15 minutes. Be aware that if your process runs more than 15 minutes and you create only one job, it will not run while the first instance is still running. Check first how long your process runs. Then create one or more jobs as needed.

Good Luck!!!


~~ CK
Jan 27 '15 #2
Rabbit
12,516 Expert Mod 8TB
If you have SQL Server Agent, you can create an SSIS package that exports your query to a text file and schedule it to run every 15 minutes.
Jan 27 '15 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Brooks Clayton | last post by:
I have an A97 db on Win2k machine. I have a make table query to update a small db wich we then FTP to our website for customer order status. What is the best way to automate the query to run...
3
by: Chris Arenburg via AccessMonster.com | last post by:
The code here creates a table for every instance in the combo box on my form. what I would like to do is have it run automatically without selecting each row/record/instance and pressing the button....
4
by: Kory | last post by:
How do you stop a long running query with a SQLConnection or SQLCommand? Calling Close on either just waits until the query is done. Is there a way to stop it? The following on a long query ...
1
by: VB Programmer | last post by:
I have a comma delimited export file with 10 columns. I want to display the first 5 and the last 2 columns in a datagrid or table. Is there any way to do this automatically? If not, does anyone...
3
by: Steve Jacobs | last post by:
Hi, I need to run a vb.net or aspx.net file every 10 seconds. The Task Scheduler in Windows 2003 Server can only do it every 1 minute at the minimum, but I need it every 10 seconds. Is it...
1
by: dmeiser | last post by:
I need to write a query that returns the names of all queries in a library that start with the letters SC. I have not a clue how to even start something like this. If possible, the boss would...
1
by: new | last post by:
I have data for each week in a single table. I need to export this data to a separate flat file for each week. Any ideas? DB2 SQL Query export to flat files as a function of data on each record
4
by: HoganGroup | last post by:
I need to create an export file for the following brutal query to upload into a state database (go figure it's a government report!) All was good in my world until I tried to export. Manually or...
6
by: Andy B | last post by:
What would i use to look for changes in a file every minute?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.