private databaseDataSet.testTable redTable { get; set; }
private databaseDataSet.testTable blueTable { get; set; }
private databaseDataSet.testTable purpleTable { get; set; }
private databaseDataSet.testTable greenTable { get; set; }
private databaseDataSet.testTable yellowTable { get; set; }
private databaseDataSet.testTable brownTable { get; set; }
///
/// Initializes the data.
///
public void InitializeData()
{
this.TableAdapter1.Fill(databaseDataSet.red);
redTable = databaseDataSet.red;
this.TableAdapter2.Fill(databaseDataSet.blue);
blueTable = databaseDataSet.blue;
this.TableAdapter3.Fill(databaseDataSet.green);
greenTable = databaseDataSet.green;
this.TableAdapter4.Fill(databaseDataSet.yellow);
yellowTable = databaseDataSet.yellow;
this.TableAdapter5.Fill(databaseDataSet.purple);
purpleTable = databaseDataSet.purple;
this.TableAdapter6.Fill(databaseDataSet.brown);
brownTable = databaseDataSet.brown;
}

VulpesRank #55 · 29.2K reputationPosted Feb 12, 2012, 12:41 AM EST
David SmithRank #999 · 2K reputationPosted Feb 12, 2012, 12:06 PM EST
What would you do, and how to speed performance.
David SmithRank #999 · 2K reputationPosted Feb 12, 2012, 12:13 PM EST
what do you mean by multiple processors or cores vuples, i just want to make sure i am on the right page.
"This won't actually speed up the loading of the data unless you have multiple processors or cores but it will prevent the UI from freezing in the meantime."
VulpesRank #55 · 29.2K reputationPosted Feb 13, 2012, 5:32 AM EST
Sam HobbsRank #107 · 20.5K reputationPosted Feb 13, 2012, 12:15 PM EST
If the database is the one I am familiar with, then we have known for a long time that it needs to be redesigned. Database design is something that a professional DBA must be tough about; it can be a difficult job just because it is tough to tell people that the database must be designed in a manner that the experts know is best. You are probably in the position where you are told you must design the database a certain way but it is not the way that database experts would design it so that might be the cause of the current problem.
David SmithRank #999 · 2K reputationPosted Feb 13, 2012, 1:50 PM EST
David SmithRank #999 · 2K reputationPosted Feb 13, 2012, 1:58 PM EST
Vuples all along the reason why the database was taking long was because of a network issue, I was also on vpn. As soon as I connected to the iternet using an ethernet cable, the database was working as fast as ever. So yea when working wireless, you will not get your best performance. At least in my case, I don't. I get alot of timeout errors when working wireless.
Sam HobbsRank #107 · 20.5K reputationPosted Feb 13, 2012, 4:01 PM EST
It is good to hear that you are finally using SQL Server instead of Access.
I don't know about the technical details of views. There are at least two reasons I can think of that a view would provide better performance. I think that a view is executed in the server before sending data to the workstation, which would require less data across the network. I know that stored procedures work like that so I might have views confused with stored procedures. Another possible explanation is when you create a view the database system can analyze the requirements and decide what is the best way to do it. Of course I am not sure of any of that.