Click here to Skip to main content
15,889,335 members
Home / Discussions / Database
   

Database

 
GeneralRe: Security Model Recommendations for ASP.NET Client Pin
Mark J. Miller28-Mar-08 9:10
Mark J. Miller28-Mar-08 9:10 
QuestionIdentity reseed in trigger Pin
User 274316228-Mar-08 2:07
User 274316228-Mar-08 2:07 
GeneralRe: Identity reseed in trigger Pin
Mark J. Miller28-Mar-08 9:19
Mark J. Miller28-Mar-08 9:19 
GeneralRe: Identity reseed in trigger Pin
User 274316228-Mar-08 21:43
User 274316228-Mar-08 21:43 
GeneralRe: Identity reseed in trigger Pin
Mark J. Miller31-Mar-08 5:33
Mark J. Miller31-Mar-08 5:33 
GeneralRe: Identity reseed in trigger Pin
User 274316231-Mar-08 21:25
User 274316231-Mar-08 21:25 
GeneralSQL query optimization i sql server 2005 [modified] Pin
ashok@techxygen27-Mar-08 19:27
ashok@techxygen27-Mar-08 19:27 
GeneralRe: SQL query optimization i sql server 2005 Pin
John_Adams27-Mar-08 21:39
John_Adams27-Mar-08 21:39 
Hi Ash,

Here are some of the methods that most of the DBA's use to optimise the speed of MS SWL Server queries:

-Display the minimum number of fields in a query. Set criteria dependant fields that are not required in the dynaset to "not shown".

-Index all restriction based fields, all fields included in expressions, all sorted fields and all join fields.
-Use primary keys or unique indexes wherever possible.
-Use numeric rather than text primary keys.
-Use non blank unique fields.

-Avoid the use of IIf() function in queries.
-Avoid domain aggregate functions such as Dlookup().
-Make careful use of Between and Equal to, rather than > or < speeds up queries.
-Use fixed column headings in Crosstab queries.
-For reports based on queries use Portrait view in preference to Landscape and select Fast Laser
Printing to Yes (View,Options,Other Properties).

-Use Make table queries for running reports on static data. These are called snapshot reports.
-Use Count (*) rather than Count(Column).
-When creating restrictions on a joined column in one-to-many relationships, test out the comparative performance when placing the restriction on the "one" side or the "many" side. The "one" side is not always the fastest - the "many" may have markedly fewer records.

-Short table and field names run faster than long names.
-Normalise tables - join strategies execute more quickly on smaller tables.
-Denormalise tables - reduce the number of joins. Get the balance right between normalisation and denormalisation by experiment.

-Avoid the use of Distinct Row queries - Union queries do not need the distinct row feature as they are automatically return unique fields unless set to Union All.

You may visit the following link for more details about queyr optimization techniques.

http://blogs.msdn.com/QueryOptTeam/[^]

Hope this helps Smile | :) .

Regards,
John Adams
ComponentOne LLC

GeneralRe: SQL query optimization i sql server 2005 Pin
Gandalf_TheWhite30-Dec-09 4:35
professionalGandalf_TheWhite30-Dec-09 4:35 
GeneralI dont get it :-) Get Discounted price by porcentage Pin
AlexeiXX327-Mar-08 18:32
AlexeiXX327-Mar-08 18:32 
GeneralRe: I dont get it :-) Get Discounted price by porcentage Pin
Ashfield28-Mar-08 0:50
Ashfield28-Mar-08 0:50 
GeneralRe: I dont get it :-) Get Discounted price by porcentage Pin
Sgg24528-Mar-08 2:21
Sgg24528-Mar-08 2:21 
GeneralRe: I dont get it :-) Get Discounted price by porcentage Pin
AlexeiXX328-Mar-08 9:11
AlexeiXX328-Mar-08 9:11 
GeneralWeird Error Message in MS Access...Please help Pin
new_phoenix27-Mar-08 7:37
new_phoenix27-Mar-08 7:37 
AnswerRe: Weird Error Message in MS Access...Please help Pin
Justin Porteous27-Mar-08 8:54
Justin Porteous27-Mar-08 8:54 
GeneralDatabinding for SSRS CustomReportItem Pin
Mark J. Miller27-Mar-08 7:13
Mark J. Miller27-Mar-08 7:13 
GeneralRe: Databinding for SSRS CustomReportItem Pin
Mark J. Miller27-Mar-08 10:42
Mark J. Miller27-Mar-08 10:42 
GeneralDYNAMICALLY Generating Reports in SSRS-2005 Pin
Aswanth26-Mar-08 23:12
Aswanth26-Mar-08 23:12 
GeneralPrefix 'sp' for stored procs Pin
Brady Kelly26-Mar-08 22:47
Brady Kelly26-Mar-08 22:47 
GeneralRe: Prefix 'sp' for stored procs Pin
Jammer27-Mar-08 0:02
Jammer27-Mar-08 0:02 
GeneralRe: Prefix 'sp' for stored procs Pin
Brady Kelly27-Mar-08 0:08
Brady Kelly27-Mar-08 0:08 
GeneralRe: Prefix 'sp' for stored procs Pin
pmarfleet27-Mar-08 0:10
pmarfleet27-Mar-08 0:10 
GeneralRe: Prefix 'sp' for stored procs Pin
Rob Philpott27-Mar-08 3:09
Rob Philpott27-Mar-08 3:09 
GeneralRe: Prefix 'sp' for stored procs Pin
Pete O'Hanlon27-Mar-08 3:16
mvePete O'Hanlon27-Mar-08 3:16 
GeneralRe: Prefix 'sp' for stored procs Pin
pmarfleet27-Mar-08 3:36
pmarfleet27-Mar-08 3:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.