Viewing 15 posts - 31 through 45 (of 219 total)
It just run fine on my machione I have 2008R2 as well.
Try to search all the '.' and check if there is any issue specially while copying and pasting.It is...
July 6, 2012 at 10:43 am
do not use sp_ as prefix for your procedures. SQL server considers these as special procedures
and search for these in all databases and then executes it.That is why it is...
July 6, 2012 at 5:19 am
Did you use the set options properly while creating the table,as well as indexed view and whiel querying the data?
Read in the end of the below whitepaper.
July 6, 2012 at 4:51 am
May be the login default database is the same in which the proc is defined.
Is the name start with sp_ something like ssytem procs?
July 6, 2012 at 4:03 am
Just awesome.. The cost of the query is 1.8 billion and the estimated rows at one point are 417 trillion.
How do you expect this query to run fast?
You...
July 5, 2012 at 10:08 pm
I copied the script and paste in my ssms and it worked fine. I am putting it back here..It should not cause any issues. I took out the comments and...
July 5, 2012 at 9:37 pm
drop table tbl_intrate
go
create table tbl_intrate(schm_id int,instno int,roi float)
go
insert into tbl_intrate
values
(1, 1, 20),
(1, 4, 22),
(1, 8, 25),
(1, 10, 26),
(1, 12, 28 )
go
select * from tbl_intrate
go
drop proc myproc
go
create proc myproc
(
@instno...
July 5, 2012 at 12:01 pm
I think before dropping the indexes it is better to diable index first. It is equivalent to drop index in the terms that index is not maintained ,it is not...
July 5, 2012 at 10:58 am
As you mentioned already distinct will sort your output(in case it doesnt use the hash distinct) and then will remove duplicates.To sort the data you need memory and how costly...
July 5, 2012 at 7:34 am
Gullimeel (7/5/2012)
--------------------------------------------------------------------------------
-- ntext does not support CHARINDEX
But it could very well use the patindex
The third parameter of CHARINDEX makes it very useful for trivial string splitting. How would you...
July 5, 2012 at 3:38 am
-- ntext does not support CHARINDEX
But it could very well use the patindex 🙂
July 5, 2012 at 3:21 am
There is no hard and fast rule of 30% cost of the sort. It can be anything. It is relative to the overall batch and thus doesnt signify anything apart...
July 5, 2012 at 3:14 am
It is a kind of bug as reported here. Even if you have created the index and index is not selected then it will show missing index stats.
Now the issue...
July 5, 2012 at 3:03 am
Viewing 15 posts - 31 through 45 (of 219 total)