Pass data from vb to sql server per time interval

Is it possible to pass data from vb 2010 express to an sql server 2008 database in time intervals, say every 10s?

Thanks for the help
SweetingAAsked:
Who is Participating?
 
x-menConnect With a Mentor IT super heroCommented:
yes, create connection to the SQL Database on your project.
0
 
Big MontySenior Web Developer / CEO of ExchangeTree.org Commented:
what data are you looking to pass? is the "vb2010 express" some kind of web app, desktop app, or script? are you looking to have some kind of input form and save it to the database?

more details please
0
 
SweetingAAuthor Commented:
yes it will be in script

i will pass data from a form into an sql table

thanks
0
What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

 
SweetingAAuthor Commented:
i know how to send data, i just don;t know how to do it every 10 seconds
0
 
SweetingAAuthor Commented:
oh forgot to mention i need to send the date/time stamp with it
0
 
Big MontySenior Web Developer / CEO of ExchangeTree.org Commented:
without seeing what you have already, it's difficult to figure out what you're doing. is this an ajax request being sent to the server every 10 seconds? please explain a bit more what you're attempting to do
0
 
SweetingAAuthor Commented:
I have managed to do it using a timer but i have to use the varchar format to get it to work, is there a way to pass it as a datetime format....

Label9.Text = DateTime.Now.ToString("dd/MM/yyyy hh:mm:ss")

I simply set the timer click to 10000 and use the on click event of the timer
0
 
SweetingAAuthor Commented:
It was correct but no detail how to achieve
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.