Viewing 15 posts - 301 through 315 (of 608 total)
ahhh...so if it has to go the row specified in the where..then it's able to count along the way?
whereas if there is no where clause it has to...
July 19, 2011 at 8:34 am
my dev just emailed me back and said that if I look at this query it uses 'SEEK' not scan and he;s right!!
what the hell?
SELECT Count('x') FROM PayeeMaster PM
INNER JOIN...
July 19, 2011 at 8:20 am
yeah I know...I've talked to the devs about no lock...
they stopped using it, and I remove it where/when I see it...
July 19, 2011 at 7:51 am
okay thanks everyone
good karma to you all thanks for taking the time top answer..
July 19, 2011 at 7:49 am
I'm having trouble with the syntax when I try to add this to my query:
SELECT Count('x') FROM PayeeMaster PM
INNER JOIN PayeeLink PL ON...
July 19, 2011 at 7:39 am
anway to get the count in the above query without using 'count'?
July 19, 2011 at 7:17 am
That worked as far as accepting the altered proc...but when I go to run I get an error-
Msg 102, Level 15, State 1, Line 47
Incorrect syntax near ')'.
this is what...
July 14, 2011 at 11:24 am
We are having trouble with the syntax -
When I change it to what you suggested I get an error:
Msg 102, Level 15, State 1, Procedure spPaymentViewGetPagedByUserId, Line 79
Incorrect syntax near...
July 14, 2011 at 10:32 am
sure..
exec spPaymentViewGetPagedByUserId @PageIndex=0, @PageSize=25, @PaymentStatus='P, VR, AM'
USE [dbVBank]
GO
/****** Object: StoredProcedure [dbo].[spPaymentViewGetPagedByUserId] Script Date: 07/14/2011 10:55:23 ******/
SET ANSI_NULLS OFF
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[spPaymentViewGetPagedByUserId]
@PageIndex int,
@PageSize int,
@PaymentStatus varchar(100),
@UserId varchar(25)...
July 14, 2011 at 8:55 am
So I'm guessing that this is a dynamic parameter and not static value
yep I talked to the dev again and he said it was a dynamic parameter..so they have...
July 14, 2011 at 6:42 am
lutz - it is a table valued function
here's the function - -- ==========================================================================================
-- Author: Jeremy Truitt (as taken from Erland Sommarskog, SQL Server MVP. Located at:
-- http://www.sommarskog.se/arrays-in-sql-2000.html#iterative
--
-- Create...
July 13, 2011 at 3:22 pm
it does run faster (3 sec) if I take out the last join
I talked to the dev and he says he must use that function -
July 13, 2011 at 3:05 pm
Viewing 15 posts - 301 through 315 (of 608 total)