Viewing 15 posts - 16 through 30 (of 461 total)
The situation is quite easy.
where Dogs='Y' AND Gardner='Y'
That kind of where clause will never use any index as the selectivity is very bad (there can be only Y and N...
December 19, 2006 at 3:47 am
Hey Steve,
That kind of situation is so typical for your country. And all this story is quite weel described in Ferenheit 9/11. Here the govenment's aim (and in this particular case use...
November 9, 2006 at 10:03 am
Could you give us the DDL (including all the indexes) as well as your query to see where your problem is located
October 30, 2006 at 5:41 am
Easy.
You have to install and configure the DB2 client on your SqlServer box. Then you can use it as an ODBC server. So you can use it as linked server...
October 26, 2006 at 3:36 am
Jules,
Merci. But I only have read only access to the database. So I ndd a select statement. CTE is OK as well
August 18, 2006 at 1:33 pm
Colin,
Thanks for reply. But my problem is that my DB is very large and the number of tables are very high. Therefore running a dbcc showcontig for that purpose is...
August 16, 2006 at 2:08 am
Deadlocks and such things are important at operating level, but not at executive level.
What execs want to see is how business is going on, do they need to plan an...
August 15, 2006 at 2:41 am
Himalay,
You don't need to have an identity column to be able to use my virtual Lastkex idea. In your case Lastkey is composed of several columns. So you just have...
August 11, 2006 at 9:31 am
You have to rewrite you query by memorizing the last retrieved key.
So you could write your proc like this:
create proc S_page @lastkey int
as
select top 10 a, b, c
from table
where a > @lastkey...
August 10, 2006 at 3:42 am
Joan,
You have 2 possibilities:
Either you drop your existing clustered index and recreate a new one on f3, f4
or you create a covering index on f3, f4, f1, f2. This covering...
August 10, 2006 at 3:32 am
You can check the sysindexes table for the rowmodctr columns. It holds the data of the total number of inserted, deleted, or updated rows since the last time statistics were...
August 3, 2006 at 12:19 pm
Basically if you are the administrator you can do what you want (this why the administrator id for )
Otherwise Andy's solution is a...
August 3, 2006 at 12:03 pm
that's why I'm just drinking tee.... (and some good red wine)
July 26, 2006 at 3:22 am
Jeff,
I think you are mixing up 2 things reindexing (removing the fragmentation) and file or db shrinking (remiving the unused space from the and of the files
According to the BOL...
July 25, 2006 at 7:39 am
The question is not about formating the data.
If you have a varchar column of format mm/dd/yyyy then you have to use convert(datetime, DateCol, 101) or if you have a format...
July 25, 2006 at 6:28 am
Viewing 15 posts - 16 through 30 (of 461 total)