I'm writing a simple program that will run entirely client-side. (Desktop programming? do people still do that?) and I need a simple way to store trivial amounts of data in a structured form, but really don't see any need to use a database system. What's more, some of the data needs to be serialized and passed around to different users,...
How to fill multiple tables in a dataset.
I m using a query that returns me four tables.
At the frontend I am trying to fill all the four resultant table into dataset.
Here is my Query. Query is not complete. But it is just a refrence for my Ques
Select * from tblxyz compute sum(col1)
suppose this query returns more than one table...
Hi All,
I am creating a C# winform in DOt Net 3.5,
I have a datagridview control & a few Other Controls (2 Textbox).
In my DataSet there are two tables MasterParent(Code) ,MasterDetail(ParentCode).
Both are related by a FkRelation. Code is an AutoIncrementing Column.
I Create a binding source (b1) & set Mastertable as a DataSource to i...
This is the object class I'm trying to turn into a dataset:
public class BookStore
{
private List<Book> booksList;
}
public class Book
{
private string name;
private string imageurl;
private string subject;
private string author;
private int level;
private int year;
private int rating;
private List<s...
I want to return the top 5 records of a table in a dataset for datagrid view. The following does not work.
DataGridView.DataSource = DS.Tables("TABLENAME").Select("SELECT TOP 5")
Any suggestions?
Using Visual Studio 2008 - VB.Net
...
im populating the data in the combo box using dataset tables...with some table name..now i want to clear those entries or data populated in the combobox every time when the button is clicked...so that new entries can be done.... is there any way to clear the comobo box values??
...
I have a set of key/values (all text) that is too large to load in memory at once. I would like to interact with this data via a Python dictionary-like interface.
Does such a module already exist?
Reading key values should be efficient and values compressed on disk to save space.
Edit:
Ideally cross platform, but only using Linux ...
I want to do a bit of lightweight testing and bench-marking for full-text search, so the dataset should have the qualities:
10,000 - 100,000 records.
good dispersion of English words.
In CSV or Excel format--i.e. I don't want to access it via API.
Something like books or movies with title and description fields would be perfect. I b...
Hello,
I have a Table Machines that made of:
ID = Identity , Primary , AutoIncrement,NOT NULL
SN = Unique , String , NOT NULL
Name =String
now I am using a form to insert data into this table,
and I am using BindingSource and ErrorProvider,
I am handling Null and Empty string in the DataSet layer (partial class in the dataset.xsd),
no...
Hello, I am sure this has to a comon thing I just can't find it. I am making a combobox from my data source.
Basically, This is a projects form and the user needs to select the the primary contact which is contrained by the customer id (GETbyCustomerID) set in another field. I have it working... mostly except the combobox only displays...
How can I retrie infromation from delete rows. I delete some rows from table in dataset, then I use method GetChanges(DataRowState.Deleted) to get deleted rows.
I try delete rows in original table on server side, but it finished with this errors.
System.Data.DeletedRowInaccessibleException: Deleted row information cannot be accessed thr...
I have a strongly typed Dataset with a single table with three columns. These columns all contain custom types.
DataColumn1 is of type Parent
DataColumn2 is of type Child1
DataColumn3 is of type Child2
Here is what these classes look like:
[Serializable]
[XmlInclude(typeof(Child1)), XmlInclude(typeof(Child2))]
public abstract c...
I am coding a simple space empire management game in Visual C# 2008, which relies on connecting to a remote SQL server database to get/store data.
I would like the user to be able to connect to a user-specified SQL server from the login screen(he specifies IP address, port, database name, ID, password and presses "connect" button). How...
Is it possible to populate a listview with a dataset? I have a function that returns a dataset. Why im asking this is because my SQL is quite complicated and i can't convert it to a SQLDataSource...
Public Function getMessages() As DataSet
Dim dSet As DataSet = New DataSet
Dim da As SqlDataAdapter
Dim cmd As SqlCommand
D...
Hi,
I am trying to follow 'n tier app design' tutorials and they tell me to set the DataSet Project property from the Data Set Designer in VS, to split table adaptors and entities into seprate projects. I can't see that property! (I'm looking in the same place shown on the videos... all other properties match)
Does anybody know why?
...
I've been handed a C# codebase that uses a SQL Server 2005 database. I would like to have an overview which database tables and procedures are accessed by which method bodies in the code; in the case of tables, I would also like to know the type of access (CREATE, DROP, SELECT, INSERT, UPDATE or DELETE). String searching for these keyw...
I am using a function that collects data from a SQL server:
function Invoke-SQLCommand {
param(
[string] $dataSource = "myserver",
[string] $dbName = "mydatabase",
[string] $sqlCommand = $(throw "Please specify a query.")
)
$SqlConnection = New-Object System.Data.SqlClient.SqlConnection
$SqlConnection.ConnectionString = "Server=...
I have a web service that I want to access when it is added as a web reference to my C# project. A particular method in the web service takes a SQL query string and returns the results of the query as a custom type. When I add the web service reference, the method shows up as returning DataSet[] instead of the custom type. This is fin...
Hi, I have an xml file like this:
<result>
<customer>
<id>1</id>
<name>A</name>
</customer>
<customer>
<id>2</id>
<name>B</name>
</customer>
</result>
So I need that data filled on a DataSet, here is my code:
var reader = new StringReader(xmldoc.InnerXml);
dsDatos.ReadXml(reader);
The problem is that i...
Is it fine to have the DAL return a DTO type from the Domain model vs just returning a DataTable? Isn't is looser to have your DAL functions return DataTables/DataSets and have your BLL map the data to business objects?
...