dataset

Visual Studio Dataset Designer Null

Visual Studio 2008 has a bug in that you cannot use the dataset designer to set an int type field to be nullable. (There are error reports going back to Visual Studio 2005 but it seems this has never been addressed.) The only selectable behaviour is to emit code that raises an exception if an null value is passed back from the database...

Assigning multiple tables to one DataView

hello im using asp.net with vb and sql server 2005. i have DataSet with 3 tables in it and i want to asign all 3 tables into one DataView i know its possible to assign each table seperatly by doing this: Dim dv as New DataView(ds.Tables(i)).DefaultView but i need all the tables in the dataset and not only the i based index table i ...

How do you make a new dataset given a set of vectors?

Is there a way in R to build a new dataset consisting of a given set of vectors -- median1, median2, median3, median4 -- which are median vectors from a previous dataset s? median1 = apply(s[,c("A1","B1","C1","D1","E1","F1","G1","H1","I1")],1,median) median2 = apply(s[,c("A2","B2","C2","D2","E2","F2","G2","H2","I2")],1,median) median3 ...

To return a dataset in a web service or not?

Is there a best practice in regards to returning (or NOT returning datasets) from .NET web services? One camp says that we should promote interoperability and use XML schemas to define the web service payload, the other camp says we should return datasets because it's straightforward in Visual Studio and get's the job done more quickly....

How to Persist a DataSet to The Database when the Server is Rebooted

I have a dataset in cache and I don't want to lose the information in the cache even if the server is rebooted. Is there a way to do this? ...

How do I get all rows from ITEM table, which are children of a parent ITEM table row, where relationship is stored separately?

Hi, How do I get all rows from ITEM table, which are children of a parent ITEM table row, where relationship is stored separately? How can I do a join to do this? "get all rows from ITEM table, which are children of this specific ITEM table row, all child items from this parent item, where relationship is stored in separate RELATIONSH...

Using DataGridView to Update Multiple Tables

On a VB.NET 2008 form I have a DataGridView, BindingSource and TableAdapter. The BindingSource DataSource is a dataset. In the dataset I have a Fill command that joins three tables and this is displayed without a problem in the DataGridView. However, I am unable to Update the dataGridView because it has multiple tables from a single T...

How can I force my Dataset using application to reconnect and prevent timeout error?

Brief question What command can I use to make my DataSet refresh it's connection to the SQL Server before I go on to work with the DataSet object? I'm working with C# in .Net 2.0 Much longer version of the same question with specifics I have a database application that is often left running for several hours between manually instigat...

how to bind database to crystal report ?

hi i have C# program, i have DataSet that i want to bind to crystal report. how to do it ? thank's in advance ...

Backup and Restore a SQLCE .sdf database

My application needs to backup and restore .sdf files. There is a single dataSet the the whole application and some bindngSource and table adapters on forms using this same dataset. Just for a sake of test I tryied to copy the .sdf in runtime for a backup folder and back to restore it and I got my application not finding the file like i...

Should I Use Entity Framework, DataSet or Custom classes?

Hi Guys, I am really having a hard time here. I need to design a "Desktop app" that will use WCF as the communications channel. Its a multi-tiered application (DB and application server are the same, the client goes through the internet cloud). The application is a little complex (in terms of SQL and code logics) then the usual LOB appl...

dataset datetime format problem

I am having a problem with datetime format in a dataset. In the database date format is:10/5/2009 10:10:10 but i get an error:FormatException, when attempting to fill the DataSet: string query = "SELECT * FROM teklif"; c.db = new SQLiteDataAdapter(query, c.con); c.db.Fill(ds); // Error Here... dt = ds.Tables[0]; How do I resolve...

C# DataSet - Retrieving Unique Value based on column

Hello there, I'm having some issues trying to retrieve unique values from a DataSet in csharp, is that possible? Actually I'm doing something like this that gets a dataset from a webservice: webService.getInstructions(Username, Password, AppKey).Tables[0].Select(null, "account name asc"); So in this case I get a alphabetical list f...

Data Manipulation (INSERT,UPDATE) using DataSet Object with VB.NET

I am newbie at using DataSet. I am writing a program with VB.NET, there I have to select data from one table. Then I have to update about 4 tables and insert to 2 Tables. Which approach will be ok for me? I'm thinking to use DataSet. If anyone can point out that problem , please show me with Sample code to update DataSet. Thanks you all ...

VB.NET DataSet Update

Why my set of codes didn't update in DataSet? Then it goes to Error. Please anyone check this code and point me out where I am missing. Thanks in advance! Private Sub btnUpdate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnUpdate.Click Dim conxMain As New SqlConnection("Data Source=SERVER;Initial Cata...

Right way to load and save a dataset

Hi I am using the following code to load a dataset from an xml file: public static DataSet _Data; public static DataSet Data { get { string encFileName = @"\\Pc\D$\temp\DS.xml"; try { if (_Data == null) { _Data = new DataSet1(...

Dataset size limit as an xml file.

Hi We are currently using DataSet for loading and saving our data to an xml file using Dataset and there is a good possibility that the size of the xml file could get very huge. Either way we are wondering if there is any limit on the size for an xml file so the Dataset would not run into any issues in the future due to the size of it. P...

how to iterative thorugh an table using foreach condition

Blockquote Hi, I have an table. I need to iterate, for each(datarow r in datatable.rows){ foreach(datacolumns c in datatable.columns){ if() // need to write an condition { // apply css } else { //no need to apply css } } } I have an column as Menu_ID if MEnu_ID as a...

C# OLE DB: How can I reorder columns of database table by using a dataset?

I know this might be a bit awkward but I am trying to modify the order of certain columns in a MS Access database in C# with OLE DB. How can I commit a certain change in the order of the columns of a datatable in a dataset? If that is not possible, how can I reorder columns of database table by using a dataset? Here is a sample of what ...

Is List<> better than DataSet for UI Layer in ASP.Net ?

I want to get data from my data access layer into my business layer, then prepare it for use in my UI. So i wonder: is it better to read my data by DataReader and use it to fill a List<BLClasses> or to fill a DataSet and send the DataSet to UI Layer ??. I'm interested in good performance and scalability. ...