Viewing 15 posts - 8,836 through 8,850 (of 26,490 total)
Sean Lange (2/7/2013)
Lynn Pettis (2/7/2013)
February 7, 2013 at 10:07 am
Try this, it is an inline table valued function instead of a multi-statement table valued function:
IF EXISTS(SELECT 1 FROM sys.objects WHERE object_id = object_id('dbo.ufnCHFPatients'))
DROP FUNCTION dbo.ufnCHFPatients;
GO
CREATE...
February 7, 2013 at 10:03 am
wafw1971 (2/7/2013)
Hi SeanWould it be possible to add a 0 in front of the first 9 numbers, would this make it easier?
Thanks
Wayne
Simple change, look at my code below:
CREATE TABLE dbo.Time2(
...
February 7, 2013 at 9:49 am
Everything looks orderd to me. I wouldn't use a while loop to populate the table dbo.Time2 and you really should not use Date as a name for a column.
See...
February 7, 2013 at 9:43 am
Heap tables don't reclaim space when records are deleted. To reclaim space you can add a clustered index to the table. Your table really should have one any...
February 7, 2013 at 9:18 am
ORDER BY MONTH(Dateadd(MONTH, -3,@StartDate))
Without your query really can't tell you much more than that.
February 7, 2013 at 9:13 am
Please do not cross post. This is basically asking the same thing as here: http://www.sqlservercentral.com/Forums/Topic1416459-1292-1.aspx#bm1416511.
Please post further replies at the above link.
February 6, 2013 at 8:27 am
k.srikalyan (2/6/2013)
February 6, 2013 at 8:24 am
Here is a good reference on how DATEDIFF works: http://www.sqlteam.com/article/datediff-function-demystified.
February 6, 2013 at 7:56 am
One, the ability to do point in time recovery of the database if it is needed. Having a mirror database is good for high availability but it doesn't replace...
February 5, 2013 at 11:30 pm
SQL_Surfer (2/5/2013)
So, the login should be granted sysadmin role?
No. Doing that will give them sysadmin rights to the entire SQL Server instance.
February 5, 2013 at 9:09 pm
Mac1986 (2/5/2013)
I have a table in which one of the column is UniqueIdentifier. I have NULLS from records 1 through 91...
February 5, 2013 at 9:00 pm
dwain.c (2/5/2013)
Lynn Pettis (2/5/2013)
Biggest unanswered question asked so far is why is this needed? Maybe I missed it but I haven't seen a real viable answer.
masoudk1990 (2/5/2013)
February 5, 2013 at 8:56 pm
One thing that your plan indicates is that there are no statistics on the the columns _col_1 or _col_2 on your indexed view. You might start there.
February 5, 2013 at 8:55 pm
saxena200 (2/5/2013)
well, inner query is not helping at all, Not getting any concrete solution for tuning this....
execution plan is not showing anything...
February 5, 2013 at 8:46 pm
Viewing 15 posts - 8,836 through 8,850 (of 26,490 total)