dataset

Typed Dataset - DateTime column value null in database

This is the code generated by the designer: [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public System.DateTime dcDateOfPayment { get { try { return ((global::System.DateTime)(this[this.tabledtAllInvoices.dcDateOfPaymentColumn])); ...

strongly typed dataset and custom executescalr queries returning values

Hello I have a strongly typed dataset, i must return some scalar values : the sum of values of column, the count of records with a specified column value and so on. I' have added some custom queries to the dataset of the kind : select sum(mycolumn) as itsname from thetable [where anothercolumn = :myparameter] (last part is optional and...

Dataset update issue

Hi! I load a table from the db in a datatable belonging to a dataset. This db table has some constaints, so not any data can be inserted in it. but if i add some invalid data within the datatable, when i do the "dataset.update()" operation an exception will be thrown, and any valid data inserted after in invalid rows will be lost. Is t...

c# DataSet with 2 tables, how to delete a row from one it will delete a row from the other?

Hello, I use Visual Studio 2010 I have a DataSet with 2 tables one (MainList) has type, name, path, parameter the other (UpadteList) has path, hash, date I added files to this list and it work with out problem, now I have the following when I add file type "update" it will be "Update","My Program", "PATH-TO-/my.setup.exe","/minimize...

Changing data in datatable and it does not show in Grid

Hi I have a table adapter on a dataset which is linked to a datagrid with a binding source. Now i have a column in my grid that is a checkbox which if clicked i change a value of another column in the grid. So i do it on the cellvaluechanging event of the gridview and then I get the focused datarow in the datatable and change the oth...

Creating DataBase (mdf) from DataSet

I have a DataSet consistint of a big number of tables of information. Is it possible automaticly create SQL Server DataBase (mdf-file) from description of my DataSet? Of course, I can do it manually, but may be there is a better way? ...

Improving DataTable performance

I have a DataTable populated with 250,000 records with 5 columns, I am iterating over this at least 500,000 times. The difference in performance between a table with 1000 records is massive and I can understand and appreciate why - however is there is a way to improve the performance? ...

Importing SPSS dataset into Python

Hi, Is there any way to import SPSS dataset into Python, preferably NumPy recarray format? I have looked around but could not find any answer. Joon ...

need sample data for e-commerce class project

In my CS course project this fall, we have to build a little eCommerce app (like Amazon, eBay, etc). We are free to build any type of eCommerce/store app. Since I don't have a preference for what app to build, perhaps it may be easier to decide based on freely available sample data for the store. So is there some freely available data...

Problems removing rows from dataset in C#

I have this situation: I have to create a dataset that takes all data from another dataset. In some cases I have to remove some rows from each of the new dataset. When both foreach cycles are finished, both datasets are empty, even when finish only the first, the first dataset has some rows. Any idea why, ... or tell where I have code w...

SqlDataSource / LINQ to SQL to DataSet

Hi Everyone, I have looked at a number of threads from various sites with similar problems. However, any code posted as a solution I have not been able to get working in the context of my Web App. I'm having trouble taking a query, whether it be via LINQ to SQL or SqlDataSource and then passing/converting it to a DataSet. The reason i...

Create entire DataSet from existing stored procedure

Hi, I have stored procedures (they accept parameters) that return multiple result sets and I'd like to have this saved in a typed dataSet. The question is: can I have Visual studio 2010 generate the typed dataset based on stored procedure? I know I can have this for a single table, but I need the whole dataSet (multiple tables, one for...

In Memory Caching of Dataset

I am planning to do some in memory caching of my data for operations in my web service. This data would be basically lookup values which do not change frequently. I was planning to get all that data in datasets (multiple tables) and store them till the data does not change on DB side. This is so because some of my data never changes, whe...

DataSet and Insert statements

Hi there, I'm having some trouble with Visual Studio and the creation of DataSets from a database. Whenever I create a new TableAdapter, the Insert-Methods parameters are, lets just say, fucked up. The database is a MS Access 2000 Database file. If I create a new TabelAdapter, everything works just fine. I select to create DatabaseDir...

column 'pkJudge' does not belong to table Table

Private Sub S_GetJudges(ByVal courtID As Integer) ' Load the list of judges Dim DAl As New DataAccessLayer Dim JudgeSet As New DataSet Dim pfkCourt As Integer = CourtDDL.SelectedValue If ClientKey > 0 And pfkCourt > 0 Then JudgeSet = DAl.GetJudgespkJudgesJudgeNam...

How do I cache a dataset to stop round trips to db?

I am creating a search results page in C# in an ASP.NET 1.1 page. In my data layer I have a DataSet that stores the result of a plain old ADO.NET stored procedure call. The DataSet has two DataTables and I'm using a DataVIew to filter and sort the columns. I only want to fill the dataset once, and then work on the DataTables and derived ...

Column and Row grouping in SQL Server Reporting Services 2008

this is the desired result in need to populate as a report. where xx is no of people. i have a table which has fields like : ---------- table1 ---------- id state year(as Quarter) gender so i need to determine the count from id and populate as a report. the year is like 20081,20082..20084(in quarter). i have created a dataset usin...

Dataset.ReadXML returns invalid characters in path. Why?

I'm reading a string into a dataset using the ReadXML method. When I try that it returns an Invalid Characters in the path error. if I save and open the string in IE as an xml file it erros on the encoding="UTF-16" line so I assume that is the cause of the problem. Is there a simple way to fix this? Shouldn't it be able to handle unico...

Posting Large Dataset causes 404 Error from WebService

I've noticed plenty of posts on Http errors related to upload size but none of the solutions seem to work for me. I've got a web service that accepts a dataset over http, and if the data being uploaded is small like just a couple of rows, it works just fine, but when the amount of data is quite a lot (a couple of MB), I get a strange 404...

column does not belong to table Table

I don't know exactly where I have to look for. Error is: Column 'pkJudge' does not belong to table Table. ' at System.Data.DataRow.GetDataColumn(String columnName) at System.Data.DataRow.set_Item(String columnName, Object value) at ReadyCollect.CaseEntry.S_GetJudges(Int32 courtID) at ReadyCollect.CaseEntry.S_GetExistCaseInfo...