Blue Theme Orange Theme Green Theme Red Theme
 
Skip Navigation Links
C# Corner Home
Forum Home
Latest 50
Unanswered
Win $500 Cash
All Time Leaders
Jump to CategoryExpand Jump to Category
Login 
    Welcome Guest!
 Search Forum For :  
X
 Login
Please login to submit a new post, reply and edit exiting posts, see user profiles, and access more features. If you are not a registered member, Register here.
User Id:
Password:  
Forgot Password | Forgot UserName
   Home » SQL » Simple Results Database and live Graphical Displaying
       
Author Reply
Peter D
posted 1 posts
since Nov 03, 2009 
from

 Simple Results Database and live Graphical Displaying
  Posted on: 11/3/2009 10:11:08 PM       
Hello all, I am a Visual Studio beginner and have kind of been thrown into the thick of a project, here is a quick summary of my question:

I am working with a Visual C# .NET application and I need to add the ability to record live, event based, results to some kind of database. At the same time, I need to be able to display, say, the last 20 archived results in some kind of line graph, perhaps updated at the end of the event that delivers the results to my application.

I have the following constraints:
- I need to use Visual Studio .NET Express for C# 2008
- I have no budget for fancy databases/graphing software, or access to any remote servers
- I have no budget for MS Access (which would have been my ideal database...)
- I need to be able to access the database via query tools (report generators) while the application feeding data into the database is running

Now, I have done a good deal of research to explore my database options, and it seems that my only option is something called SQLite, and I've been experimenting with it. My only fear is that it only allows for one simultaneous connection. I worry that if I try to update my graphs within my base application while an event is trying to update the database (or someone is polling the database with a report query) I'd be dead in the water.

On the graphing front, I am finding myself using something called ZedGraph. My only gripe is that I can't seem to find a good way to load rolling data sets (first in first out, with a set of 20) into it, everything gets very clumsy very fast, and I imagine there must be a better way that I have not stumbled upon yet. Perhaps something that can feed directly off of a database rather than doing a query, parsing the data, then feeding it into a ZedGraph module.

Can anyone recommend some free tools I can use to get me off on the right foot?
Perhaps a tutorial out there I can follow along with?
Is it likely that I will need to figure out how to utilize multiple threads in order to have this work properly?
(As events need to be recorded to the database as they come in, I can't be waiting for the database to free up access rights and risk missing an event.)

Regards;
Sam Hobbs
posted  154 posts
since  Sep 07, 2009 
from 

 Re: Simple Results Database and live Graphical Displaying
  Posted on: 11/5/2009 10:03:42 AM       
You can use SQL Express. I don't have a link for downloading it but if you can't find it then I will find it. And you probably don't need to create threads; SQL will create threads.
       
Developer-Ready ASP.NET 2.0 Web Hosting with 3 MONTHS FREE
Now supporting .NET 3.0 Framework with Windows Workflow Foundation, Windows Communication Foundation (WCF), Windows Presentation Foundation (WPF), windows CardSpace (WCS)! Providing more flexibility for Developers with Web Services Support and a User/Permission Manger. Also supporting MS SQL 2005/2000 with Real-Time Backups, FREE Automated Attach .MDF Tool, FREE SQL Restore and Shrink SQL DB Tools, and SQL
Dynamic PDF
ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications. Visit DynamicPDF here
Introducing MaxV - one click. infinite control. Hyper-V Hosting from MaximumASP.
Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
Clickatell's SMS Gateway
Clickatell's Developer Solutions allow you to SMS enable any website or application via a range of API's. Learn More about our API connections.
Free access to .NET Memory Management video
Everything you need to know about Garbage Collection, Temporary Objects, Fragmentation, Finalization and common causes of memory leaks in .NET. Watch the video here.
Microsoft Visual Studio 2010
Microsoft Visual Studio 2010 offers more to developers than any other Visual Studio release. Work more productively and collaboratively-with greater control over your work at every step. The Beta 2 can give you a head start on achieving efficiency.

 Hosted by MaximumASP  |  Found a broken link?  |  Contact Us  |  Terms & conditions  |  Privacy Policy  |  Site Map  |  Advertise with us
Current Version: 3.2009.8.27
 © 1999 - 2009  Mindcracker LLC. All Rights Reserved