This should return just the numeric:
SELECT SUBSTRING('Filler Order ID: <10190968MMDSCR> Filler Facility ID: <RAD>',CHARINDEX('<','Filler Order ID: <10190968MMDSCR> Filler Facility ID: <RAD>')+1,CHARINDEX('>','Filler Order ID: <10190968MMDSCR> Filler Facility ID: <RAD>')-CHARINDEX('<','Filler...
Hi,
I am looking for a solution to this problem:
I would like to create a stored proc that will accept certain criteria parameters (E.g. Letter from... Where LastName >=@LetterFrom or similar).
I also need to be able to specify the TOP 'x' number of rows depending on a user entered...
Thanks bborisov,
That was because i cut out some of the fields in the select statement to keep it smaller on the post.
The select works fine, it is only when i come to use similar syntax and use:
SET AssignedTo=@AssignedTo (Passed to the stored proc)
that SQL says there is a problem with the...
Hi,
i have an ASP.net page that has a gridview where the source is:
set rowcount @Top
SELECT
ID,
Title,
FirstName,
Surname,
FROM Leads_Source
WHERE
(ISNULL(Surname, '') LIKE @Surname + '%') AND
(ISNULL(County, '') LIKE @County + '%') AND
(ISNULL(Postcode, '') LIKE...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.