dataset

.NET DataSet filtering

We are using the .NET DataSet and DataTable classes to filter data. But we have two tables with almost 596,814 records in one table and around 10,000 records in the other. DataSet filtering using DataTable.Select is massively slow. Are there any faster approaches? ...

removing null valued columns from dataset in asp .net

I have a table which stores data with null valued columns for some entries .I want to retrieve only Not null data to the detail view. I tried the following foreach(string strTableField in (objDataSet.Tables[0].Columns[i])) { if(objDataSet.Tables[0].Columns[i].Equals(null)) { objDataSet.Tables[0].Columns.Remove(strTable...

SQLCE qand C#; Populate a DataSet with ALL the Tables from a SQLCE DB

How would I Populate a DataSet with ALL the Tables from a SQLCE DB. Is this possible in ONE SQL select statement? I know that I can call seperate select statements with the names of the table I need data from but I need a generic solution that just dumps all the tables from the SQLCE DB into a Dataset. Thanks ...

Has anyone got experience with Riak with a large dataset?

I am planning on using Riak for a project I am working on and want to hear from anyone who is using for development / production systems. In particular I am interested in: 1) insert speed 2) maximum cluster sizes 3) select / search performance Thanks Zubair ...

How to convert IEnumerable<table> to xml or dataset

Hello. This is the code: IEnumerable<table> results = db_dane.ExecuteQuery<table>(query); table - is a database table, query - sql query (example: select * from table), db_dane - linq datacontext. How to convert results of this query to xml or dataset? ...

Obtain DataTable names from Flex

I have a C# web service that returns a DataSet with multiple DataTables. It's easy enough to get at the data using this web service event handler in Flex: static public function getData_Handler(event:ResultEvent):void { for each(var table:Object in event.result.Tables) { // ... } } How can I access the name of ea...

Dynamic Connection String for a Strongly Typed Dataset

I have an asp.net nTier application. The data access layer is a strongly typed DataSet consisting of multiple DataTables with DataAdapters. When the user logs in, they choose which database to connect to (from a table in the membership database). I need to pass the selected connection string into the DataSet object which will remain the ...

Counting Distinct Values in large dataset (40M rows): SELECT count(*) as count, name FROM names GROUP BY name ORDER BY name;

CREATE TABLE `names` ( `name` varchar(20) ); Assume the "names" table contains all 40 million first names of everyone living in California (for example). SELECT count(*) as count, name FROM names GROUP BY name ORDER BY name; How can I optimize this query? Expected Result: count | name 9999 | joe 9995 | mike 9990 | kate ... 2 | kal...

How To Speed Up Loading DataSets

When Using SQL Server Reporting Services (client Reports), whenever a Client (rdlc) report Opens Visual Studio Loads entire application datasets, how to speedup loading this all datasets or how to change the process to only load specific Dataset to use in Report ? ...

Problem to Update Qury query in typed dataset with C#

here is my table in the dataset: SELECT tag_work_field.* FROM tag_work_field I created this query in typed dataset: UPDATE contacts.tag_work_field SET work_Field_name = @work_Field_name WHERE ((work_Field_name = @Original_work_Field_name)) and I called it: UpdateWorkField Now I Created my data adepter and update th...

problem with update strong typed dataset turn to database in C# .net framework 3.5

Hi all, I want to remove some special characters in a table of database. I've used strong typed table to do it. When i got all data into dataset from database and modified it then i called method update() of data adapter to turn dataset to database but it doesn't work. Below is my code DsTel tel = new DsTel(); DsTelTable...

IQueryable to DataSet

I have seen numerous methods and tricks around the net today. What i need is convert my Linq to SQL queries (IQueryable results) into a DataSet for reporting purposes. Reporting tool is XtraReports from DevExpress. A promising solution i found in another post is modelshredder. I am still concern though about the whole object graph, what...

C# dataset insert query problem from access database .... valeu

Hello, I'm using Visual Studio 2008 and an Access 2007 database. While I'm trying to create a new insert query in my DataSet, the insert stored procedure mixes up the database field values. I have a print screen of the problem here: http://netplague.eu/Capture.PNG As you can see in the attached print screen the table clients is displa...

Dataset validation for type ( C# .NET )

Hello. Im working with dataSets validation in my project. I'm doing validation when DataTable_ColumnChanged event fires in partial class of dataTable, and its doing its job, but i would like to also validate datatype mismach on dataSet level, not UI, to provide custom error message. If [someID] expects number, but someone enters string i...

Why would I want to stay away from DataSets, and what are the alternatives?

I found an interesting discussion here: http://www.linkedin.com/groupAnswers?viewQuestionAndAnswers=&amp;gid=43315&amp;discussionID=12708606&amp;goback=.anh_43315 Quote: DataSets are sub-par amateur solutions to code your Data layer...Stop Using Them and learn to CODE! :) What is your opinion of DataSets vs. just stubbing out cus...

querying a whole dataset at once, with joins?

I am working in C# and Visual Studio 2005. I have a typed DataSet that the wizard created. I see that I can run MyGeneratedDataSet.tblFoo.Select() and get data from each table, but is there a way to do a query of the whole thing, like the little in memory database that it is, or do I need to do it piecemeal table by table? Thank you! ...

Resources for programs teaching natural languages

What API's and data sets are available for use in programs to teach natural languages e.g. to aid in learning to read/write/listen/speak a 2nd language? These could be web or traditional API's to dictionaries, translation services, associations of words / concepts to images, sounds e.g. spoken words or phrases, movies, or sets of flashca...

C# Dataset usage necessary before passing to GridView datasource?

Scenario Lets say for example I have a series of events that fire continually every half second presenting me with an object containing some bits of information. There are always between 10 and 15 objects that are being updated constantly. Since these bits of information are changing continually I want to display them in a GridView. Whe...

How to generate typed datasets for multiple database platforms ?

Hello, I want to generate a typed DataSet for both Oracle and DB2 databases from a single XSD file. Background: When I drag a table onto the Visual Studio Dataset Designer, it generates a XSD file (e.g. DataSet1.xsd) with all appropriate information. Then VS invokes the built-in Tool (MSDataSetGenerator) to generate the Dataset classes...

VB 2008 or VB 2010 Dataset help

I have three forms similar to the one in the link. I want add a Total textbox to every form. The total will add the values that will be entered in the montant textbox. So the total will take the specific value of that texbox for all the entries that the user will have and add them. How I can do so???? Thanks http://i1006.photobucket.co...