Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

The Database Forum


You are currently viewing our The Database Forum as a guest. Please register to participate.
Login



Reply
Old 09-18-2007, 04:06 PM MySQL Datasets
Junior Talker

Posts: 3
Name: Andrew Schools
Trades: 0
Hi,

I was wondering if anyone knew of a way of creating datasets in MySQL? Or if not, is there a PHP class that would accomplish this?

Thanks,
Andrew
half life is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-18-2007, 04:08 PM Re: MySQL Datasets
Douglife's Avatar
Extreme Talker

Posts: 218
Name: Douglas Montgomery
Location: Florida
Trades: 0
this link might help. Give us some more detail on what you're trying to accomplish.

http://www.oreillynet.com/databases/...a_sets_in.html
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Douglife is offline
Reply With Quote
View Public Profile Visit Douglife's homepage!
 
Old 09-18-2007, 04:46 PM Re: MySQL Datasets
Junior Talker

Posts: 3
Name: Andrew Schools
Trades: 0
Hi DougLife – thanks for your reply. What I am trying to accomplish is the use of datasets in MySQL just like the ones found in .NET…

Thanks again,
Andrew
half life is offline
Reply With Quote
View Public Profile
 
Old 09-18-2007, 07:49 PM Re: MySQL Datasets
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
You can talk to a MySQL database using .NET code. Just install the MyODBC drivers. You can't use ADO.NET in PHP tho.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Old 09-19-2007, 05:31 AM Re: MySQL Datasets
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Explain what you mean by datasets, it could be a multitude of things.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 09-19-2007, 08:11 PM Re: MySQL Datasets
Junior Talker

Posts: 3
Name: Andrew Schools
Trades: 0
Hi,

What I mean by datasets is the ability to fetch data from the database, dis-connect from the database and then take that same data and query it using SQL. In short, a mini-in-memory database, just like with the .NET platform...

Thanks,
Andrew
half life is offline
Reply With Quote
View Public Profile
 
Old 09-19-2007, 08:21 PM Re: MySQL Datasets
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
a recordset then

http://www.phpclasses.org/browse/package/192.html
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 09-20-2007, 01:41 PM Re: MySQL Datasets
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
Quote:
Originally Posted by chrishirst View Post
a recordset then
No, a dataset.

http://msdn2.microsoft.com/en-us/lib...a.dataset.aspx

Quote:
The DataSet, which is an in-memory cache of data retrieved from a data source, is a major component of the ADO.NET architecture. The DataSet consists of a collection of DataTable objects that you can relate to each other with DataRelation objects. You can also enforce data integrity in the DataSet by using the UniqueConstraint and ForeignKeyConstraint objects. For further details about working with DataSet objects, see Using DataSets in ADO.NET.


Whereas DataTable objects contain the data, the DataRelationCollection allows you to navigate though the table hierarchy. The tables are contained in a DataTableCollection accessed through the Tables property. When accessing DataTable objects, note that they are conditionally case sensitive. For example, if one DataTable is named "mydatatable" and another is named "Mydatatable", a string used to search for one of the tables is regarded as case sensitive. However, if "mydatatable" exists and "Mydatatable" does not, the search string is regarded as case insensitive. For more information about working with DataTable objects, see Creating a DataTable.


A DataSet can read and write data and schema as XML documents. The data and schema can then be transported across HTTP and used by any application, on any platform that is XML-enabled. You can save the schema as an XML schema with the WriteXmlSchema method, and both schema and data can be saved using the WriteXml method. To read an XML document that includes both schema and data, use the ReadXml method.
In a typical multiple-tier implementation, the steps for creating and refreshing a DataSet, and in turn, updating the original data are to:
  1. Build and fill each DataTable in a DataSet with data from a data source using a DataAdapter.
  2. Change the data in individual DataTable objects by adding, updating, or deleting DataRow objects.
  3. Invoke the GetChanges method to create a second DataSet that features only the changes to the data.
  4. Call the Update method of the DataAdapter, passing the second DataSet as an argument.
  5. Invoke the Merge method to merge the changes from the second DataSet into the first.
  6. Invoke the AcceptChanges on the DataSet. Alternatively, invoke RejectChanges to cancel the changes.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to MySQL Datasets
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.28892 seconds with 12 queries