I'm modifying someone else's code where a query is performed using the following:
DataSet ds = new DataSet();
SqlDataAdapter da = new SqlDataAdapter(sqlString, sqlConn);
da.Fill(ds);
How can I tell if the DataSet is empty (i.e. no results were returned)?
...
The MovieLens data set provides a table with columns:
userid | movieid | tag | timestamp
I have trouble reproducing the way they pruned the MovieLens data set used in:
Tag Informed Collaborative Filtering, by Zhen, Li and Young
In 4.1 Data Set of the above paper, it writes
"For the tagging information, we only keep those tags which ...
This is probably a dumb question, but I've hit a wall with this one at this current time.
I have some data which is hierarchial in nature which is in an ADO.NEt dataset. The first field is the ID, the second is the Name, the third is the Parent ID.
ID NAME Parent ID
1 Air Handling NULL
2 Compressor ...
Working with rdlc report for oracle procedures, the table adapter wizard will not work.How can populate a typed dataset with the result of Objectdatasource so that the fields from dataset can be droped into the rdlc report
...
Here is a part of my xml file
<teams>
<team-profile>
<name>Australia</name>
<id>1</id>
<stats type="Test">
<span>1877-2010</span>
<matches>721</matches>
<won>339</won>
<lost>186</lost>
<tied>2</tied>
<draw>194</draw>
<percentage>47.01</percentage>
</stats>
<squad>
<pl...
While designing applications it is a very good practice to have all the business logic in one place. So why then we sometimes have the business logic in stored procs? Can we fetch all data from the DB and store it in a DataSet and then process it? What would be the performance of the app in this scenario?
...
Hi!
D6 prof.
Formerly we used DBISAM and DBISAMTable. That handle the RecNo, and it is working good with modifications (Delete, edit, etc).
Now we replaced with ElevateDB, that don't handle RecNo, and many times we use Queries, not Tables.
Query must reopen to see the modifications.
But if we Reopen the Query, we need to repositioni...
The problem:
100,000+ name & address records in an access table (2003). Need to iterate through the table & update detail with the output from a 3rd party dll.
I currently use ado, and it works at an acceptable speed (less than 5 minutes on a network share).
We will soon need to update to access 2007 and its 'non jet' accdb format to ...
I have a C# function that flips the orientation of a DataSet:
static DataSet FlipDataSet(DataSet my_DataSet)
{
using (DataSet ds = new DataSet())
{
foreach (DataTable dt in my_DataSet.Tables)
{
DataTable table = new DataTable();
for (int i = 0; i <= dt.Rows.Coun...
I am trying to use an existing dataset as the datasource for a rdlc report inside of an ASP.NET web application in Visual Studio 2010. However, when I go to choose the dataset in for the report, the existing dataset is not available unless it exists in the root directory of the application. This was not the case in the 2008 version o...
I'd like to have a dataset or datatables, and be able to run SQL statements on them, without using any external RDBMS.
For Example, to take take 2 datatables in a dataset and just join them outright with a SQL statement and Where clause, the result being a new datatable? For example if I have 2 datatables, named People and Addresses in...
Hello
I've a grid in my winforms application and i bind a huge dataset to the grid. Will the dataset be stored in the memory by the grid after calling DataBind(). How does it operate on the data binded to the grid?
Update
I wrote the following code
DataTable dt = new DataTable();
using (SqlConnection con = new SqlConnection("...
ok, I have an issue with my checkboxes, here's the code:
if me.BLD_RElectricalPermitBindingSource.Count = 0 then
Dim NewRow as DataRow = dsBuildingPermits.BLD_RElectricalPermit.NewRow
newRow("MasterPermitKey") = ugProjectNumbers.ActiveRow.Cells("MasterPermitKey").Value
//After this line hits it should add the new row to the BLD...
When filling a DataSet, I am using the "AddWithKey" value for the DataAdapter's MissingSchemaAction. According to MSDN:
Adding schema information to a DataSet
before filling it with data ensures
that primary key constraints are
included with the DataTable objects in
the DataSet.
But, when I do the following:
DataColumn[] ...
Tableau is extremely flexible when it comes to visualizing and playing around with datasets, but it is extremely slow when you go into "production mode" and publish a particular view that you've created onto your server. Does anyone know of any tools that can be used to connect to a database, present interactive (or somewhat interactive)...
Hi,
I've been using C# for a while and began a program now to learn WPF-which means I know almost nothing of it.
I used this tutorial as a guide to do what I wanted to do (which is binding a database to a datagrid), after a hard struggle to add the adapter as the source of the datagrid I now want to enable editing with validation on som...
I have a typed dataset in my project. I would like to populate a datatable with only one row instead of all rows. The selected row must be based on the primary key column. I know I could modify the designer code to achive this functionality however if I change the code in the designer I risk that this code will be deleted when I update m...
I am currently having a problem since the DB has been changed.
I am using Datasets for a c# application, and there is a user management system.
For the security issues, our current DB design is like
user log into app.
DB returns a session ID
On use of any other stored procedures, a session ID must be specified.
BUT, the DB did...
i am doing a project in weighted association rule mining by using a parallel algorithm. i have a confusion regarding the dataset. which type of dataset can be used to perform better? whther real or synthetic dataset? do we have any other different types of dataset?
...
I have a question about the following architecture.
I am importing my business objects into my client using WCF.
Due to the complexity of the business objects ( nested hierarchies ) I want to flatten out my business objects into a dataset/datatable.
There are many more tutorials and how-to on successfully using datatables in a report t...