I want to get real-time data from SQLSERVER database every 3 seconds and show in web page's texts.

for examle: the table1 is refreshed every 3 seconds.

Table1

id values1 values2
1 30 40
2 50 60
...........................

and there are two text-contrls in webpage. I want to let
text1.value=30 text2.value=50, the data is changing every 3 seconds.

thank you for your any help. I'd like to get your sourse codes , examples or suggestions.