Click here to Skip to main content
15,891,253 members
Home / Discussions / Database
   

Database

 
QuestionXP x64 database access... Pin
dandy727-Jun-06 4:09
dandy727-Jun-06 4:09 
AnswerRe: XP x64 database access... Pin
dandy729-Jun-06 4:18
dandy729-Jun-06 4:18 
QuestionORA 0001 unique constraint voilation Pin
neha30137-Jun-06 2:33
neha30137-Jun-06 2:33 
AnswerRe: ORA 0001 unique constraint voilation Pin
Chris Meech8-Jun-06 6:15
Chris Meech8-Jun-06 6:15 
GeneralRe: ORA 0001 unique constraint voilation Pin
neha30138-Jun-06 19:12
neha30138-Jun-06 19:12 
GeneralRe: ORA 0001 unique constraint voilation Pin
Chris Meech9-Jun-06 7:05
Chris Meech9-Jun-06 7:05 
QuestionStored procedures in SQL Pin
deeksha6-Jun-06 22:59
deeksha6-Jun-06 22:59 
AnswerRe: Stored procedures in SQL Pin
Ricardo Casquete6-Jun-06 23:48
Ricardo Casquete6-Jun-06 23:48 
Try to restrict the queries result set by using the WHERE clause.

Try to restrict the queries result set by returning only the particular columns from the table, not all table's columns.

Use views and stored procedures instead of heavy-duty queries.

Try to avoid using SQL Server cursors, whenever possible.

If you need to return the total table's row count, you can use alternative way instead of SELECT COUNT(*) statement.

Try to use constraints instead of triggers, whenever possible.

Use table variables instead of temporary tables.

Try to avoid the HAVING clause, whenever possible.

Try to avoid using the DISTINCT clause, whenever possible.

Include SET NOCOUNT ON statement into your stored procedures to stop the message

Use the select statements with TOP keyword or the SET ROWCOUNT statement, if you need to return only the first n rows.

Use the FAST number_rows table hint if you need to quickly return 'number_rows' rows.

UNION ALL statement instead of UNION, whenever possible.

Ricardo Casquete
AnswerRe: Stored procedures in SQL Pin
Kodanda Pani8-Jun-06 23:04
Kodanda Pani8-Jun-06 23:04 
QuestionSQL Server timestamp Pin
miceisland6-Jun-06 22:28
miceisland6-Jun-06 22:28 
AnswerRe: SQL Server timestamp Pin
sathish s6-Jun-06 22:53
sathish s6-Jun-06 22:53 
GeneralRe: SQL Server timestamp Pin
miceisland6-Jun-06 22:57
miceisland6-Jun-06 22:57 
GeneralRe: SQL Server timestamp Pin
sathish s7-Jun-06 0:24
sathish s7-Jun-06 0:24 
GeneralRe: SQL Server timestamp Pin
Felipe Dalorzo7-Jun-06 10:41
Felipe Dalorzo7-Jun-06 10:41 
GeneralRe: SQL Server timestamp Pin
miceisland7-Jun-06 14:49
miceisland7-Jun-06 14:49 
Questionconstraints Pin
kjosh6-Jun-06 10:24
kjosh6-Jun-06 10:24 
AnswerRe: constraints Pin
Kschuler6-Jun-06 10:59
Kschuler6-Jun-06 10:59 
QuestionT-SQL + crystal reprot Pin
Naveed Kamboh6-Jun-06 6:37
Naveed Kamboh6-Jun-06 6:37 
QuestionAccess TSQL Output in Code Pin
andrewbaker6-Jun-06 5:51
andrewbaker6-Jun-06 5:51 
QuestionHow do I assign NULL values to a DATE variable in SQL SERVER 2005? Pin
Slow Learner6-Jun-06 5:04
Slow Learner6-Jun-06 5:04 
AnswerRe: How do I assign NULL values to a DATE variable in SQL SERVER 2005? Pin
Daniel Santillanes6-Jun-06 7:20
professionalDaniel Santillanes6-Jun-06 7:20 
GeneralRe: How do I assign NULL values to a DATE variable in SQL SERVER 2005? Pin
Eric Dahlvang6-Jun-06 8:50
Eric Dahlvang6-Jun-06 8:50 
AnswerRe: How do I assign NULL values to a DATE variable in SQL SERVER 2005? Pin
Eric Dahlvang6-Jun-06 9:05
Eric Dahlvang6-Jun-06 9:05 
GeneralRe: How do I assign NULL values to a DATE variable in SQL SERVER 2005? Pin
Daniel Santillanes9-Jun-06 10:08
professionalDaniel Santillanes9-Jun-06 10:08 
Questiondbdataadapter.update Pin
NICE TO MEET6-Jun-06 1:12
NICE TO MEET6-Jun-06 1:12 

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.