Viewing 15 posts - 47,806 through 47,820 (of 49,571 total)
Use query analyser. While they run the same code, if the operation takes too long, enterprise manager may timeout and undo the operation. Query analyser doesn't timeout.
January 4, 2008 at 8:14 am
It's not the concat that's the problem, it's the variable usage.
If a query uses either parameters or hard coded values, the optimiser knows, at the point that it's compiling and...
January 4, 2008 at 8:12 am
In that case, since you're not building up a string, you don't want the quotes. In the first case, you were building up a string to be executed, so the...
January 4, 2008 at 7:15 am
If you have queries of the form
WHERE EmpID = @Emp AND DeptID = @Dept, then only one of the indexes will be used. Which one depends on the selectivity...
January 4, 2008 at 7:02 am
karthikeyan (1/4/2008)
Actually, i want to know where exactly we need to use this BTW.
You've probably seen it in my posts. It's just the way I tend to write. You don't...
January 4, 2008 at 6:52 am
I'm sorry, I don't understand what you want.
Please read through this and give me some info so that I can help you.
http://www.sqlservercentral.com/articles/Best+Practices/61537/
January 4, 2008 at 5:21 am
If you have log backups occuring you don't need or want to truncate the log. An explicit truncate will break the log chain and prevent restores to a point in...
January 4, 2008 at 4:51 am
If you include it in the from and don't do a join, you get what's called a cross join. Each row of the one table is matched to each row...
January 4, 2008 at 4:36 am
I'll go stronger than that.
Don't use dumps at all. It's cheating, it reduces the value of the certifications, and if you get caught, your certifications will all be revoked, permanently.
January 4, 2008 at 4:01 am
dedezana (1/4/2008)
FROM #TranID tId Join eft.[Tran] t on tId.id = eft.[Tran].TranID, dbo.StateJOIN Partner p ON t.partnerID = p.partnerID
Is the cross join to the State table intentional? If...
January 4, 2008 at 3:58 am
Can you post the function, the definition of the tables and the indexes on those tables please.
http://www.sqlservercentral.com/articles/Best+Practices/61537/
January 4, 2008 at 3:15 am
In that case, inx1 is unnecessary, since it is a left-based subset of another index.
I do recommend that every table gets a clustered index so maybe thins (NB, without any...
January 4, 2008 at 3:12 am
Could you post the query that you'e having problems with please?
January 4, 2008 at 3:03 am
Indexes on a table should be based on the queies that will be run against the table. There's no point in having an index on a column if there are...
January 4, 2008 at 2:42 am
Triggers are used when you want something to happen when rows are inserted, updated or deleted, regardless of where the data change came from (app, management studio, job,...)
Auditing data...
January 4, 2008 at 2:30 am
Viewing 15 posts - 47,806 through 47,820 (of 49,571 total)