Viewing 9 posts - 1 through 9 (of 9 total)
ALTER FUNCTION [dbo].[StrBetween] (@InputStr varchar(MAX), @StrStart Varchar(255), @StrStop Varchar(255))
RETURNS VARCHAR(MAX)
AS
BEGIN
DECLARE @STR VARCHAR(MAX),
@START...
June 17, 2010 at 5:45 am
Chris, I see what you mean.
I'm not sure it works because the key word in my last post was usually. 🙂
There can always be more than 4 pairs for the...
June 17, 2010 at 4:18 am
Yes, for the same ID there can be multiple pairs of old value/new value.
As for the maximum number of pairs, ... usually there are 3 or 4 pairs.
June 17, 2010 at 2:40 am
My first choice would be to create an UDF (I use S2K5) which returns a string with the first n group names, given an ID
CREATE FUNCTION dbo.FirstNGroups (@ID INT, @N...
March 6, 2008 at 11:45 am
Throwing myself in the lions pit :), I would write something like this
ALTER PROCEDURE [dbo].[Search]
@user-id nvarchar(10),
@TicketID int,
@Type nvarchar(80),
@Priority nvarchar(20),
@FromDate datetime,
@ToDate datetime
AS
BEGIN
SELECT TicketID, UserID, Title, Status, Type, Priority, CreationDate
FROM...
March 6, 2008 at 10:32 am
I'm guessing that your query is wrong. This is the first assignment to SQLUpdateQuery
SQLUpdateQuery = "UPDATE CALENDAR SET CalendarDate = '"...
March 6, 2008 at 8:23 am
As I said in P.S., not all tables have an IDENTITY column.
And I don't have an Insert Procedure.
September 27, 2007 at 4:54 am
I think that you can limit the initial rows you get in the CTE if you order the query and use the TOP clause
;WITH emp AS (SELECT TOP (@PageNumber *...
August 29, 2007 at 4:46 am
Actually, LEN excludes the 14 trailing blanks in the word.
August 31, 2005 at 5:14 am
Viewing 9 posts - 1 through 9 (of 9 total)