Viewing 15 posts - 4,036 through 4,050 (of 13,462 total)
that syntax error:
Msg 102, Level 15, State 1, Line 13
Incorrect syntax near '.'.
shows that your database is currently at Compatibility 80,and needs to be 90 or above, i think:
ALTER DATABASE...
February 7, 2013 at 6:16 am
ok, still sticking with a scalar function, here's a parsename enhancement I slapped together a year and a half ago; it takes an unlimited number of elements:
the original PARSENAME thinks...
February 7, 2013 at 5:43 am
right click on the email message in gmail and view source;
gmail has a lot of anti spam stuff amd mail filtering going on, so i would not be surprised...
February 6, 2013 at 3:19 pm
roughly, the trigger is going to look something like this, but the DDL asked for in the post above would make it definitive:
we don't know what columns you want...
February 6, 2013 at 2:59 pm
excellent job providing the sample DDL and data;
it made it very easy to change.
check out the changes i made to your trigger, i think it does exactly what you wanted:
CREATE...
February 6, 2013 at 2:22 pm
there's a GUI setting for when you Design a table that needs to be changed in this case:
the GUI would drop and recreate, whereas a script might just ADD or...
February 6, 2013 at 1:55 pm
here's just one of many ways to do it: in this case with a scalar function:
SELECT dbo.StripNonNumeric(@NUMERO)
CREATE FUNCTION StripNonNumeric(@OriginalText VARCHAR(8000))
RETURNS VARCHAR(8000)
BEGIN
DECLARE @CleanedText VARCHAR(8000)
;WITH tally (N) as
(SELECT...
February 6, 2013 at 12:28 pm
what is the name of the identity column in the table [tb_lkp_material_prod_version]?
February 6, 2013 at 12:13 pm
njfuller (2/6/2013)
1 or more tb2 records could be inserted.
I would like the identity value from the...
February 6, 2013 at 11:32 am
Scott i suspect you posted some code for MYSQL and not SQL Server.
In SQLServer, the best solution is to enable Full Text Indexing, and use that;
for exact word match, but...
February 6, 2013 at 9:58 am
you want COUNT(ID) not COUNT(DISTINCR ID)
WITH AddPr(ID,NOTES)
AS
(
SELECT 'ID','NOTES' UNION ALL
SELECT '1',' ADD PR' UNION ALL
SELECT '2',' DELETE PR' UNION ALL
SELECT '1',' ADD PR' UNION ALL
SELECT '3',' ABC' UNION ALL
SELECT '1','...
February 6, 2013 at 9:45 am
i see two issues:
first, teh data is so simple, i don't see any need to use a format file; i only use format files if it's delimited with quotes or...
February 6, 2013 at 9:40 am
are there deeper than 4 levels in the "real" data? are there always exactly four levels?
the right solution depends a lot on some assumptions we can make with the data
here's...
February 6, 2013 at 9:17 am
looks like a copy/paste error:
ROW_NUMBER needs parenthesis:
change that query to ROW_NUMBER() and it should work fine.
February 5, 2013 at 1:54 pm
momba (2/5/2013)
February 5, 2013 at 12:04 pm
Viewing 15 posts - 4,036 through 4,050 (of 13,462 total)