Viewing 15 posts - 46 through 60 (of 109 total)
Going back to the original problem and considering how fast the solution turned out to be to do that, I don't believe that I go through setting up FTS for...
October 13, 2013 at 4:22 pm
You could be right but the FTI wouldn't be on Table 2 according to the OPs latest post. It would only be needed on Table 1. Fortunately, I don't see...
October 13, 2013 at 1:00 pm
At this point, you're better off just creating a full text index on table2 and searching it. You can join it to table2 and perform LIKE '%a%' on the result...
October 13, 2013 at 7:45 am
This makes use of Moden's DelimitedSplit8k which you can download in the scripts section.
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE FUNCTION tvf_ChildRowNames
(
@rowName varchar(250)
)
RETURNS TABLE
AS
RETURN
(
SELECT name from table2 where exists...
October 3, 2013 at 6:08 pm
Can you try this and see what takes the longest?
I'm guessing it's the FT search. Maybe if it gets narrowed down before doing that it will help somehow.
declare @tbl1 table...
July 24, 2013 at 2:11 pm
Personally I prefer an inline TVF for my 'parameterized views', like so
CREATE FUNCTION tvf_report
(
-- Add the parameters for the function here
@ShiftDepartment varchar(100),
@Date1 datetime,
@Date2 datetime
)
RETURNS TABLE
AS
RETURN
(
select VwQPPMaterialRptPart1.Material,...
July 2, 2013 at 3:08 am
Not to be rude, but do you suppose there might be a reason I suggested you create that particular index? And that creating it, testing and perhaps dropping it might...
July 2, 2013 at 2:45 am
Did you create the covering index I suggested?
July 1, 2013 at 6:18 pm
CREATE NONCLUSTERED INDEX [ix_new] ON [dbo].[SVSales]
(
[INum] ASC,
[ProdNum] ASC
)
INCLUDE ( [FullAccNum])
You might have to also include the OpenDate column if it's in SVSales.
June 28, 2013 at 8:17 pm
Effective and high performance running totals in a pre-2012 environment, for one. Update a table for another. Use NEWID() directly. The list goes on. 😀
The gauntlet, she has been thrown...
May 24, 2013 at 10:36 pm
Would a shrink maybe put more of the database into the cache?
May 22, 2013 at 2:57 pm
Have any of the queries changed? Is there maybe an unindexed column in a where clause now? Maybe one index needs a covering column added?
May 22, 2013 at 10:43 am
'datetime' probably needs a bit of work!
datetime in v1 was definitely crap. v2 should be better though. That wasn't really my point though - my point is that all the...
May 22, 2013 at 10:31 am
declare @i int,@done bit
select @i = 0, @done = false
while i<10
begin
try something
observe effects
modify approach
if...
May 22, 2013 at 6:33 am
Which is to say, what CAN'T you do in an inline tvf if you really really want to?
May 21, 2013 at 5:46 pm
Viewing 15 posts - 46 through 60 (of 109 total)