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;
}
Sam HobbsPosted Feb 13, 2012, 9:01 PM
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.
David SmithPosted Feb 13, 2012, 6:58 PM
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.
David SmithPosted Feb 13, 2012, 6:50 PM
Sam HobbsPosted Feb 13, 2012, 5:15 PM
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.
VulpesPosted Feb 13, 2012, 10:32 AM
David SmithPosted Feb 12, 2012, 5:13 PM
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."
David SmithPosted Feb 12, 2012, 5:06 PM
What would you do, and how to speed performance.
VulpesPosted Feb 12, 2012, 5:41 AM