Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 30th, 2007, 08:19 AM
Registered User
 
Join Date: Dec 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Database and c#

Hi,

I am new on this but I am trying to do the following:

I have a movie player that I can use to record some coordinates from some selected points (mouse click) for each frame.

I want to store this points (they are different for each movie) so every time I open a movie I need to select points. Till know this is done but I want to put this data in a database.


For this I need to create a database at run time something like this:

Frame Number (column1)
Time (column2)
Point1 (column3)
Point2 (column4)
Point3 (column4)
and so one.

I need a primary key, but I want the Frame Number in column 1 to do this.

Every time I open a movie I want to remove the database created early and create a new one with different number and name of points.

I am newbie on databases so I hope that some one can help me on this.

thanks
Redcat

 
Old December 30th, 2007, 01:44 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Unless you really need to use a database, this would probably work better using an XML file. Creating databases on the fly isn't going to be the most efficient way of doing this. Alternatively, you could use a single database and key the data off of the movie file as well so you don't need multiple databases for multiple movies.

-Peter
 
Old January 3rd, 2008, 08:23 AM
Authorized User
 
Join Date: Jul 2007
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to mujahidkhaleel
Default

You can add movie name too to the database, every time you open the movie delete the records from the database.

For database programming and code samples the best place to start with is http://www.dotnetjunkies.com/quickst...ataaccess.aspx

Mujahid Khaleel
Web designing, development, E-commerce applications.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem to restore database in C#2005 database acmuralee MySQL 0 March 25th, 2008 04:42 AM
Microsoft JET Database Database Engine (0x80040E09 cannielynn0312 Classic ASP Professional 2 December 17th, 2007 02:50 AM
Copying Table From one Database To Anoter Database jayanth_nadig VB Databases Basics 1 June 19th, 2006 02:39 PM
Upload image to database or not to database? thachnn SQL Server ASP 0 October 11th, 2004 03:00 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.