0

I need a field (column) of my database to update automatically. For example, the field NUMBER for each record incrementing every minute. How can I do it? I am using SQL Server.

0

3 Answers 3

2

You're probably looking for something called SQL Server Agent jobs

here is a good starting point reference:

http://technet.microsoft.com/en-us/library/ms181153(v=sql.105).aspx

This allows you to run some sql code on a schedule of your choosing.

P.S.

If you have access to sql server management studio, the GUI is much nicer.

Sign up to request clarification or add additional context in comments.

Comments

2

You can set up a SQL Agent job to run an update statement once a minute:

UPDATE tablename
SET NUMBER = NUMBER + 1

Comments

2

Job Agent is only for full SQL Server. Then best choise. If you using SQL express then can't. You can solve with update

UPDATE TABLE-NAME SET
VALUE = VALUE + 1

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.