Viewing 15 posts - 271 through 285 (of 441 total)
Pieter (5/20/2009)
CLR is an option and I tried to convert that phone function. However, as unexpected...
May 20, 2009 at 8:01 am
Can you post the function, maybe making it Inline might help performance, if it's not already an Inline function. At least, it will get inserted in the execution plan, and...
May 19, 2009 at 2:18 pm
Damn jack, you beat me to it, 😉 Good job!
May 15, 2009 at 9:50 am
Here, I built it for you, I hope that helps, tell me if I understood your problem correctly.
USE tempdb
DROP TABLE #Product
CREATE TABLE #Product (
ProductID INT ...
May 15, 2009 at 9:47 am
Sounds fun, can you post the DDL of the table and some sample data, I'm up for it, and I bet a lot of people will post back if you...
May 15, 2009 at 9:35 am
Really interesting Chris! I also read Gail's article, and it explain perfectly the how and why of the count, and I was mistaking to think counting a column would help!...
May 15, 2009 at 6:51 am
SQL_Monster (5/11/2009)
Actually we are facing the issues like : TECH_MESSAGES like,
1. Object reference not set to an instance of an object.
2. ...
May 13, 2009 at 1:16 pm
Christopher Stobbs (5/13/2009)
I've created a table on my test system with two columsn
VARCHAR(900) --Max size for a clustered index
VARCHAR(32)
even when I create...
May 13, 2009 at 10:59 am
this is the non clustered index i added
CREATE NONCLUSTERED INDEX [idx_entity_identifier] ON [dbo].[EntityCollection]
(
[EntityIdentifier] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING...
May 13, 2009 at 8:28 am
sql_prodigy (5/13/2009)
i added a non-clustered index on a smaller column and voila... i now have great performance
thanks for all the...
May 13, 2009 at 7:56 am
Can't you find a better primary key to suit your needs? Can you explain your situation with DDL and sample data?
May 12, 2009 at 9:46 am
You need to assign the returning value from the select to the variable you declared.
Like that :
DECLARE @var nvarchar(200)
select @var = top 1 field1 from table1
return @Var.
That will fix your...
May 12, 2009 at 9:20 am
If your count needs to be accurate, then you will either need to run the DBCC UpdateUsage ('DatabaseName','TableName') before you query the sys.partitions view, or run the Select * against...
May 12, 2009 at 8:57 am
sql_prodigy (5/12/2009)
anyone? 🙁does the DBCC UPDATEUSAGE have to run everytime i do a count from my table using sys.indexes
Depends if your count needs to be 100% accurate, or if you...
May 12, 2009 at 8:31 am
Hi, do not forget a trigger can be sent many rows at once, so your select with variables will not work.
Use this kind of approach to solve your problem, only...
May 11, 2009 at 9:57 am
Viewing 15 posts - 271 through 285 (of 441 total)