Viewing 15 posts - 8,506 through 8,520 (of 9,643 total)
Michael,
I don't know why SQL Server treats them differently, but changing my code to use a specifically named primary key constraint does cause the error, but using the Create Unique...
June 2, 2008 at 7:12 am
Check to see if the Databases have the autoclose option is on.
Select DATABASEPROPERTYEX('model', 'IsAutoClose')
May 30, 2008 at 7:31 pm
Jeff solution will work if you do not have any duplicates in the column where you want the unique index. I have never seen the issue you are describing....
May 30, 2008 at 3:12 pm
I don't know why the cache would clear other than either a small cache size or activity. You could check the buffer cache hit ratio counter.
Did you try the...
May 30, 2008 at 2:54 pm
I think Matt covered it very well. Another way to explain it that the included columns should be columns that you don't search on, but will return. I...
May 30, 2008 at 1:06 pm
You can see that in the slower queries you had more physical reads on the ENQUIRY table which means something else happened that caused it to be flushed from the...
May 30, 2008 at 12:58 pm
You are getting Clustered Index Scans (basically table scans) on your CaseEvents tables which will cause the query to be slower. Depending on the use of the tables and...
May 30, 2008 at 9:02 am
I'm not sure what you mean by excessive joins. If you are working from an OLTP database proper normalization is going to create the need for many joins, so...
May 30, 2008 at 8:52 am
JumpStartTV has a decent one here, http://www.jumpstarttv.com/Media.aspx?vid=76
May 30, 2008 at 8:46 am
Duplicate post also at http://www.sqlservercentral.com/Forums/Topic509060-323-1.aspx
May 30, 2008 at 8:44 am
Is the structure of the temporary table the same in each case? If it is explicitly define the temp table and then do Insert Into instead of select into.
May 30, 2008 at 7:45 am
The first thing I would recommend is checking to see if your statistics are being updated. Check the DB to see if autoupdate stats is on.
Second in...
May 30, 2008 at 7:26 am
Yes you can use case in the join. A simpler solution would be to use a data out in the future for an end date instead of an...
May 30, 2008 at 7:02 am
I agree with Matt that there is not a lot of advice that can be given with the generality of the question. Steve also makes an accurate point, that...
May 29, 2008 at 8:18 am
I have only been in one position where I was able to specialize other than specializing in MS development (Windows, SQL Server, VB, .NET). The one position where I...
May 29, 2008 at 7:55 am
Viewing 15 posts - 8,506 through 8,520 (of 9,643 total)