Viewing 15 posts - 31 through 45 (of 58 total)
Hi Yin,
Start a new trace for SP:Completed. Select ApplicationName, HostName, LoginName, ObjectName, StartTime, and TextData. Filter based on your criteria, i.e. stored procedures, database name, and/or login names....
December 17, 2008 at 3:52 pm
I think the obvious question here is: why are you selecting the same column more than one time?
That aside, you're getting the error because you're ordering by the duplicate column....
December 1, 2008 at 3:45 pm
Thank you for sharing the results! I think it'd be great if more people did that... it would make the forum a better resource for people who may have...
December 1, 2008 at 3:26 pm
I'd probably start with CPU and duration. Happy profiling! 🙂
December 1, 2008 at 1:03 pm
Silly question, but does your variable data type match col2? Are you using CHECK constraints?
It'd be helpful if you could post a code sample of your table and view.
December 1, 2008 at 12:31 pm
Is it possible to just add another column to the table with the value you want displayed? Or perhaps create another table and perform a join in your view?
December 1, 2008 at 12:19 pm
Maybe this can help you, too...
Select p.name As 'publication'
, p.description
, s.srvname As 'subscriber'
, s.dest_db As 'suscriber_db'
...
November 20, 2008 at 3:41 pm
Hi there! I have a script that will answer your latency question. You can find that here:
http://sqlfool.com/2008/11/checking-replication-latency-with-t-sql/[/url]
HTH!
November 20, 2008 at 3:15 pm
Hi there! In general, the answer is "yes," but it really depends on what options you specified during your index rebuild. Can you post a sample of your...
November 19, 2008 at 2:51 pm
Christopher is correct. Add your partitioning key, always. Without the partitioning key, the query will basically end up scanning all partitions (unless you have a non-partitioned index).
If you're...
November 19, 2008 at 2:39 pm
To the best of my knowledge, no, the query optimizer does not take into account index fragmentation when determining the best query plan available.
Good question. 🙂
Here's a...
November 18, 2008 at 2:33 pm
The partitioning key must be included in the primary key on a partitioned table. Try using something like this:
Alter Table dbo.yourTableName
Add Constraint PK_yourTableName
...
November 17, 2008 at 7:25 am
Without understanding your database, I can only give you generalities.
- Take the process one step at a time. Filter your data as much as possible, and eliminate...
November 14, 2008 at 12:52 pm
Okay, I understand what you're trying to do... what's your question?
November 14, 2008 at 12:19 pm
There's a couple of different ways you can handle this. Here's one way:
WITH myCTE
AS
(
SELECT empid
...
November 13, 2008 at 9:07 am
Viewing 15 posts - 31 through 45 (of 58 total)