DataSource Controls :: Will Multiple Tables In A DataSet Affect Performance

Apr 29, 2010

I have a dataset that comprises of multiple tables (about 20) linked together with constraints to reflect the relational database. My question(s):

1) Will having multiple tables affect performance? I'm asking this as there are often times I would not need to get data for all the tables, but only for specific tables.

2) If it does affect performance, would breaking up the tables into their own datasets be the best solution. It seems to me that by doing that, you would lose the ability to apply constraints among tables and tables that might exist in multiple datasets will be subjected to replication.

I would like to have everything in one dataset as I get a view of the related tables and their relationships and also because the Fill method allow me to fill tables, maintaining the hierarchy of the data, but performance is still a key factor.

View 5 Replies


Similar Messages:

DataSource Controls :: Creating A Dataset With Multiple Tables

Jan 29, 2010

I have a dataset with 3 tables that are inner joined. Thsi dataset is connected to an object datasource which is connected to a gridview. So at runtime it displays data from the database. The problem is when I click on a save button to add information to the database it throughs me an error saying Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints. But if i have two tables in my dataset it works 100%. But the problem i need that 3 tables in order to pull the required information. And if i populate the gridview using code to select the information from the database and insert information it also works 100%.

View 3 Replies

DataSource Controls :: Returning Multiple Tables Into A DataSet

Apr 10, 2010

How to return multiple tables to dataset. My code is

string q = "select job_title,primary_skill,description from T12_Company_AddRequirement where job_code='JB1';select count(p_status) from T12_SentDetails where job_code='JB1'and p_status='Technical 1';select count(p_status) from T12_SentDetails where job_code='JB1'and
p_status='Technical 2';select count(p_status) from T12_SentDetails where job_code='JB1'and p_status='Technical 3';select count(p_status) from T12_SentDetails where job_code='JB1'and p_status='HR'";
SqlConnection con=new SqlConnection(s);
SqlDataAdapter da = new SqlDataAdapter(q, con);
DataSet ds = new DataSet();
da.Fill(ds);
Grid_description.DataSource = ds.Tables[0];
Grid_description.DataSource = ds.Tables[1];
Grid_description.DataSource = ds.Tables[2];
Grid_description.DataSource = ds.Tables[3];
Grid_description.DataSource = ds.Tables[4];
Grid_description.DataBind();

This code is returning error.

View 9 Replies

Forms Data Controls :: Dataset With Multiple Tables Bind To Grid

Jul 7, 2010

i m trying to bind my both grid with two tables which are in dataset i m trying but when i m binding my gridview it's always binding the second table see code

[Code]....

i already tried to bind both the gv1 and gv2 they both are displaying same table i.e department

View 3 Replies

Data Controls :: Crystal Reports Using DataSet - Use Fields From Multiple Tables

Apr 23, 2014

VS2010/sqlserver/crystalreport13

I have a report which is runnin fine as it is using singe table Dataset(.xsd) .  I want to expand the report and use more tables in it to show more information .  

How can I do so.  I am attaching my present code with this. 

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim stdate, enddate As Date
Dim sql As String
start_date.Text = Session("startdate")
end_date.Text = Session("endate")
Dim dt As DateTime = DateTime.Parse(start_date.Text, System.Globalization.CultureInfo.GetCultureInfo("en-gb"))

[CODE]...

View 1 Replies

Exporting Multiple Tables In A DataSet To An Excel File With Multiple Sheets?

Jul 8, 2010

I was in need of exporting multiple tables in a DataSet to an Excel file with multiple sheets. I found a very good article in [URL].[URL] was able to successfully export each of my datatables in the dataset to excel worksheets. This solution worked for small number of rows. But when the data got larger I am consistently getting the system.outofmemoryexception. THis is because the code is using up the memory when creating excel.

Does anyone have another option to do the above?

View 2 Replies

DataSource Controls :: How To Create Multiple Records In A Dataset From Multiple Databases

Mar 7, 2011

I am trying to design my logic to do this but I want to create a dataSet which will have records from several databases, The records all have the same layout.

I am reagin the connection string paths from a table in a database.

I am asking for your help in trying figure out my logic.

Should I use the connectionString builder in conjunction with a loop to Connect, read a record into a dataset Until therer are no more records to be read from my databse table with the database name/paths tables ?

Here is my beginning code which deals with one database:

[Code]....

View 2 Replies

ADO.NET :: Dataset Using Multiple Tables

Mar 16, 2011

I have 5 tables of which one has a primary key called "pid" as follows in patientdetails table the pid of a patient is used to compare the pid in remaining tables so the data in matching pid records can be stored in dataset. I tried using stored procedure to get them together in one dataset but it just doesent happen. This is my stored procedure,

[Code]....

I think the execution doesent proceed after the first if exists statements, because only the data in patientdetails is stored in dataset. and one more thing. all test tables need not contain a data against every pid in patientdetails table.

View 4 Replies

DataSource Controls :: Batch Update A Dataset Table Which Data Are From Related Tables?

Jun 8, 2010

My dataset table data is from multiple tables (showing on a gridview),How to update the database tables using batch udpate on clicking submit, if the data is from a signle table, no problem, but I am not sure how to handle if the datais from mulitiple tables? If I have related tables, do I need put them in differet tables in the dataset?

View 6 Replies

C# - Converting Multiple Tables To Dataset?

Mar 9, 2011

In my project, i have a DBML file which is acting as a Data Access Layer. There one more utility method that is converting the existing result into dataset. Below is my method:

[code]....

View 1 Replies

AJAX :: How Event That Occurs Every One Second Affect The Web Page Performance

Jun 23, 2010

I am using the timer inside UpdatePanel to check the time every second and enter it to a label control.

But I must ask, How this is going to effect performance? Bandwidth of the site?

View 6 Replies

Web Forms :: Size Of Folder Affect The Performance Of Application?

Mar 17, 2010

I am developing a site similar to forums. I allow users to Post articles and upload files regarding the articles. I am not storing the Attachments contents in DB instead i store only the path of the attachment file and store the actual file in physical folder in the Project directory. WHat i want to knw is if the size of the physical folder increase will it affect the performance of my application.

View 6 Replies

ADO.NET :: Linq Examples With Multiple Tables - Using PK And FK In A Dataset?

Aug 19, 2010

Does anyone have some really great tutorials on how to use link with datasets that contain multiple tables that utilise primary key and foreign key relations? For eample

Table1
- id (PK)
- language
Table2
-id (PK)
-programmingword
Table3
-id (PK)
-languages_ID (FK)
-pgrammingword_ID (FK)
-translatedword

Linq search for: Table3.translatedword where Table1.Language ='french' and Table2.programmingword = "yes" does this make sense? im looking for exampes/ tutorials for how to do this? or can anyone recommend any good books on linq?

View 3 Replies

Configuration :: Folder Size On Hosting Server Affect Performance?

Dec 14, 2010

we host the web application on a server and the structure is..

Root
Module1
page1.aspx
Module2
page4.aspx
Temp
archivedImages
image1 image2

The temp folder size is increased every month as we manually add images.

Except the Temp folder every page is requested from the browser...

We dont use the Temp folder for any other purpose other than archive.

Does this affect the performance of the web application i.e. constant size increase?

how different would it be if we moved the temp to some other location out of the Root?

View 1 Replies

Returning Multiple Tables To Dataset / How To Join/add Two Datatable

Jan 21, 2011

I need to return datatable to dataset in asp.net application. I have a method which has a return value as datatable.


However I need to send 2-3 datatable instead of one. I dont know how to join/add two datatable and what could be the return type?

View 2 Replies

Forms Data Controls :: Using Multiple Tables Within A Single DataSet And Single SqlDataSource?

May 19, 2010

I have a stored procedure that returns 3 tables within the single recordset it returns. If I set a SqlDataSource to get data from this procedure, it works, but it only returns the first table. I want to have a GridView display the data from the 2nd or 3rd table using a SqlDataSource, but I can't figure out how to specify a particular table.

While there are some posts discussing this out there, I can't get a definitive answer about whether or not this is even possible (?). In a worst-case scenario, I can create another SP that only returns the 3rd table - but that creates a little maintenance headache that I would prefer to avoid.

View 4 Replies

ADO.NET :: Looking For Best Practices For Doing Inserts Into Multiple Tables / Based On A Single Dataset?

Nov 3, 2010

Environment: C#, ASP.NET 4.0, SQL Server 2008.

Here's the scenario: Buyers and Sellers (where all of the sellers have a unique D&B number).

I'm catering to the buyers, and I want them to be able to import a list of sellers based on the D&B number.

Here are the tables:

BuyersSellers - unique list of sellers - one record, no matter how many buyers work with them.BuyerSellers - lookup table - buyer_id, seller_id sets which buyers work with which sellers
ImportedSellers - temp table that holds sellers the buyer wants to add.AllSellers - master table that has all known sellers with D&B numbers (remote database).

Here's the process:

Buyer uploads list of new sellers, they get added to ImportSellers tableMatch ImportedSellers against AllSellers (valid), ignore unmatched (invalid).Add valid ImportedSellers to the Sellers table if they don't exist.Create BuyerSeller records for all valid ImportedSellers - using data from AllSellers.Delete all valid ImportedSellers, leave the unmatched behind so they know what they need to fix.

I've got the upload and import working, but now I'm a little stuck on how to do all of the matching and inserting, and do it as quickly as possible.

View 1 Replies

Configuration :: Trigger IE9 To Render In Compatibility Mode Negatively Affect Performance On The Server?

Mar 17, 2011

Would adding "X-UA-Compatible: IE=EmulateIE7" as an http header to trigger IE9 to render in compatibility mode negatively affect performance on the server? I made the change today, adding it, but now some areas of our site are behaving sluggishly, though we did have a large number of changes come in overnight. I know that we can't single out this as the problem, but my boss seems to think it is.

View 3 Replies

DataSource Controls :: Sproc Insert Into Multiple Tables

Jan 11, 2010

I have a sproc that will insert a new record into Table1. Next I need to Insert into another table the scope_identity of the inserted record. How do I incorporate the scope_identity value as the insert parameter in the second insert statement?

View 3 Replies

DataSource Controls :: Retrieving Data From Multiple Tables?

Aug 17, 2010

I have hard time trying to find the solution to retrieve data from multiple tables in one database.

table Kategorije has fields: idKategorija, naziv, opis table Clanak has fields: idClanak, idKategorija, naslov, autor,...

Kategorije.idKategorijais joined with Clanak.idKategorija, but that isn't the solution because I want my web site to show the Kategorije.naziv instead of Kategorije.idKategorija. This is the code I'm currently using to get idKategorije shown on my web site:

[Code]....

[Code]....

View 3 Replies

DataSource Controls :: Insert Statement For Multiple Tables?

Jul 12, 2010

I've got 3 tables.

Table A: UID, Name
Table B: CID, Category
Table C: ID, UID, CID

I've got a TextBox to capture the value of "Name" in Table A.

Ive got a CheckBoxList that displays all the pre-determined values of Table B.

When the user selects an item from the CheckBoxList i want to populate Table C with the value of the selected item from the CheckBoxList and the cooresponding ID associated with the user name for that person's entry.

How do I write the INSERT statement?

View 2 Replies

DataSource Controls :: Drop Multiple Tables Through An SQL Statement?

Apr 27, 2010

How can i Drop Multiple table through an SQL Statement rather than using a procedure or a function.

View 7 Replies

DataSource Controls :: How To Select Multiple Tables By Using LinQ In MVC

May 19, 2010

I'm using ASP.NET MVC to create a small web apllication.

Here is my database And here is my class

[Code]....

View 2 Replies

DataSource Controls :: Adding Multiple Tables To The Array?

Feb 4, 2010

I am using ASP.NET 2.0, C# and Sql Server 2005.I have 2 tables retruned by the stored procedure to the application. I am returning an Array from my datalayer to my bussiness layer and then to my UI layer.I have added the first table into the array and passing it to the UI layer. This is my current code:

[Code]....

How to pass the second table details to the same array, NameArrayKeyEntity .

View 3 Replies

DataSource Controls :: Write Data To Multiple (two) Tables?

May 6, 2010

I have to write data to multiple (two) tables.

tbl1 has a column "ORDERID" with auto increment. I have to get this "ORDERID" whenever I write to tbl1 (Insert new record)

tbl2 has a coumn "ORDERID" as foreign key, I have to write "ORDERID" in tbl2 received from the tbl1.

How to do it using SQL ( I am not using StoredProcedure)

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved