Click here to Skip to main content
15,902,840 members
Home / Discussions / Database
   

Database

 
GeneralRe: DbCommand execute and sql script with "GO" Pin
devvvy28-Mar-08 23:33
devvvy28-Mar-08 23:33 
GeneralDECLARE CURSOR must be the only statement in a query batch. -- Re: DbCommand execute and sql script with "GO" Pin
devvvy30-Mar-08 16:52
devvvy30-Mar-08 16:52 
QuestionHow to reorder uniqueIdentifier field? Pin
maryam.saboor28-Mar-08 19:19
professionalmaryam.saboor28-Mar-08 19:19 
AnswerRe: How to reorder uniqueIdentifier field? Pin
pmarfleet28-Mar-08 23:33
pmarfleet28-Mar-08 23:33 
GeneralRe: How to reorder uniqueIdentifier field? Pin
maryam.saboor29-Mar-08 0:35
professionalmaryam.saboor29-Mar-08 0:35 
GeneralRe: How to reorder uniqueIdentifier field? Pin
pmarfleet29-Mar-08 1:47
pmarfleet29-Mar-08 1:47 
Questionstored procedure problem Pin
md_azy28-Mar-08 18:40
md_azy28-Mar-08 18:40 
GeneralRe: stored procedure problem Pin
pmarfleet28-Mar-08 23:34
pmarfleet28-Mar-08 23:34 
GeneralRe: stored procedure problem Pin
Mike Dimmick28-Mar-08 23:38
Mike Dimmick28-Mar-08 23:38 
QuestionHow to recover sql server corrupted paged database? Pin
AhmetGULBAY28-Mar-08 7:09
AhmetGULBAY28-Mar-08 7:09 
GeneralDifference between INNER JOIN and WHERE Clause Pin
soso_online28-Mar-08 3:39
soso_online28-Mar-08 3:39 
GeneralRe: Difference between INNER JOIN and WHERE Clause Pin
GuyThiebaut28-Mar-08 4:57
professionalGuyThiebaut28-Mar-08 4:57 
GeneralRe: Difference between INNER JOIN and WHERE Clause Pin
Joe DiNatale28-Mar-08 5:55
Joe DiNatale28-Mar-08 5:55 
GeneralSecurity Model Recommendations for ASP.NET Client Pin
Brady Kelly28-Mar-08 2:59
Brady Kelly28-Mar-08 2:59 
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 

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.