Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DataSet/TableAdapter - any way to speed up?
Message
 
 
À
12/05/2009 02:45:59
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01399267
Message ID:
01399377
Vues:
45
>>Hi everybody,
>>
>>I type the ItemNo and using BL/DS I select info and then populate the textboxes on the form with the Information. This is very slow - looks like almost a minute before the info appears on the screen.
>
>Are all SQL accesses that slow? I'd bet the problem is likely to be, for whatever reason, a slow SQL connect. Are you using Windows or SQL authentication?
>
I believe it's Windows, I only specify DataSource
 //this._connection.ConnectionString = ("Data Source =" 
            //            + (System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase) + "\\SDCBarcodeData.sdf;"));

            this._connection.ConnectionString = Settings.Default.LocalConnectionString;
I have to change the designer code every time back to the second setting after I make any changes in DS.

With the Index on ItemNo it's quicker now, but not as quick as I want.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform