Viewing 15 posts - 1,396 through 1,410 (of 2,647 total)
MyDoggieJessie (3/15/2012)
Righto....busted again not reading things carefully enough :ermm:
Seems to be common today as I have had to edit quite a few of my posts :hehe:
March 15, 2012 at 11:53 am
I'm not sure what OP wants for "UNION ALL SELECT 400 ,10 ,10 " data sample, I've read his requirements as: he only want to see the record when there...
March 15, 2012 at 11:52 am
MyDoggieJessie (3/15/2012)
Careful with using tinyint here in this case...it doesn't go up to 3000! ::-D
🙂 but this is indicating hw long the decNumber is. The requirement says that it...
March 15, 2012 at 11:43 am
EDIT: Misread requirements...
March 15, 2012 at 11:41 am
sunnyepgc (3/15/2012)
I have a table with the following data.
Table A:
ID AMT_DIFF...
March 15, 2012 at 11:38 am
Something similar to this:
CREATE TABLE decNumber (decNumberCount tinyint, decNumber VARCHAR(3))
INSERT INTO decNumber
SELECT 2, '99'
UNION ALL
SELECT 2, 'A0'
UNION ALL
SELECT 2, 'A1'
UNION ALL
SELECT 3, '001'
UNION ALL
SELECT 3, '999'
UNION ALL
SELECT 3, 'A00'
UNION ALL
SELECT...
March 15, 2012 at 11:11 am
MyDoggieJessie (3/15/2012)
March 15, 2012 at 11:05 am
Can you create a tally table with these values (if maximum is 2000, I would create 3000 just in case)?
March 15, 2012 at 11:02 am
You have to set a notification on the job, not an alert. It will not do any emails by default.
March 15, 2012 at 10:55 am
The first problem is that @DecNumber is a BIGINT. You cannot store characters in BIGINT. First you need to change this to CHAR(2) or something that applies. Does...
March 15, 2012 at 10:51 am
Kenneth.Fisher (3/15/2012)
SQLKnowItAll (3/6/2012)
So, this is 2008, not 2008 R2?Yes 2008.
And what SP is the operating system? Windows Server SP2 is required for this.
March 15, 2012 at 9:16 am
You can use replace function to replace spaces with %:
CREATE PROCEDURE [CategoryName]
@VALUES varchar(1000)
AS
SET @VALUES = REPLACE(RTRIM(LTRIM(@VALUES)), ' ', '%' );
SELECT c.CategoryName
, CategoryId
, SB.SubCategoryName
, SB.SubCategoryId
FROM...
March 14, 2012 at 3:26 pm
Taking a stab... I think the OP is asking if there is a way NOT to use a linked server to gather data from another server for the view. ...
March 14, 2012 at 2:57 pm
CREATE PROCEDURE [CategoryName]
@VALUES varchar(1000)
AS
SET @VALUES = RTRIM(LTRIM(@VALUES));
SELECT c.CategoryName
, CategoryId
, SB.SubCategoryName
, SB.SubCategoryId
FROM tblAdCategory c
JOIN tblAdSubCategory SB
ON SB.CategoryId =c.CategoryId
WHERE c.CategoryName LIKE '%' + @VALUES...
March 14, 2012 at 2:47 pm
IgorMi (3/14/2012)
I tried and succeed. I admit that my administration skills are not as good as my developing. However I'm working on it.
Actually, I can now conclude that...
March 14, 2012 at 2:12 pm
Viewing 15 posts - 1,396 through 1,410 (of 2,647 total)