Viewing 15 posts - 376 through 390 (of 660 total)
Wildcat (6/24/2008)
Besides the INDEX part,
(convert(VARCHAR(6), CombinedTT.StartTime, 112)= '{?Period}')
---- this one takes longer in WHERE clause.....
Better move the CONVERT into your SELECT...UNION ALL....part
Hey I tried this but didnt help me...
June 24, 2008 at 12:41 pm
pls find the attachement for execution plan.
thanks for the concern.
June 24, 2008 at 12:27 pm
please check the atttachments for table structures.
Right now its taking more than 20min . each table has 3574385 records approx.
June 24, 2008 at 11:54 am
Hey I got a new error from your proc.
Msg 209, Level 16, State 1, Procedure xSynPortalToSolomon_ProgTEST, Line 117
Ambiguous column name 'programid'.
I checked at that column everything looks fina in my...
June 20, 2008 at 12:29 pm
Thank you very much, you did most my work.
when i exec the proc i get this error.
OLE DB provider "SQLNCLI" for linked server "LS_PORTAL" returned message "The partner transaction manager...
June 19, 2008 at 2:15 pm
Exactly.
Can you pls update my proc with your best performance ideas.
June 18, 2008 at 2:20 pm
CREATE TABLE #tempdays (
PK INT IDENTITY(1,1) PRIMARY KEY CLUSTERED,
days VARCHAR(255)
)
INSERT INTO #tempdays select SelectedDays from FAS_LaborCalendar
--select * from #tempdays
select pk,count(*) from (
SELECT lc_id pk,SUBSTRING(';'+SelectedDays+';',pk+1, CHARINDEX(';',';'+SelectedDays+';',pk+1)-pk-1) AS Value ...
June 16, 2008 at 4:47 pm
I have a function where if i pass parameters (string,delimiter) it gives each row. something like
If Run this
select * from dbo.myfunction('1;2;3;4;11;10;9;8;7;14;15;16;17;18;25;24;23;22;21;28;30;29',';')
I get result as
1
2
3
4
11
10
9
8
7
14
15
16
17
18
25
24
23
22
21
28
30
29.
How Can i...
June 16, 2008 at 4:18 pm
this is my table structure
CREATE TABLE [dbo].[FAS_LaborCalendar](
[LC_Id] [int] IDENTITY(1,1) NOT NULL,
[ProgramInstanceId] [int] NOT NULL,
[FiscalPeriod] [varchar](6) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[HoursPerDay] [float] NOT NULL CONSTRAINT [DF_FAS_LaborCalendar_HoursPerDay] DEFAULT ((8)),
[NumberOfDays] [int] NOT NULL...
June 16, 2008 at 1:53 pm
Viewing 15 posts - 376 through 390 (of 660 total)