sql server - Is it possible to execute a SQL dbo automatically? -


sorry if sound ignorant i'm new sql. i'm using sql server 2008. have dbo object displays list of items, , when hit "execute" list refreshes current data.

my question this: there way set execute automatically every minute or while table display open? plan on sharing out view of database people can see how far along db before attempting query it.

hopefully makes sense. tried google'ing seems rather vague topic or i'm confused understand of these sites saying. @ appreciated.

clarification: "dbo object" meant table (i think?). example it's named dbo.bridge, , when right click click "edit top 200 rows" see data, , click red exclamation mark @ top of sql server 2008 "execute", causes table update

if you're in sql server management studio or visual studio sql server explorer won't able it. can set delays execute, however:

while (1 = 1) begin     set nocount on;     select * [test_p]     waitfor delay '00:00:02' end 

this keep appending onto existing results, however, limitation of software. isn't meant things this. you're better off writing simple script or view execute every , display data in other way.


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -