Viewing 15 posts - 1,441 through 1,455 (of 2,007 total)
Looks much better Gianluca, will do some testing later on to see how it scales but I suspect that it's going into my "toolbox" 🙂
October 26, 2011 at 7:06 am
derekr 43208 (10/26/2011)
Unfortuanately I need to be able to put it into a Temp table
I tried but it said that I cannot insert from a select statement that has a...
October 26, 2011 at 7:04 am
How's this?
DECLARE @sql AS VARCHAR(MAX)
SELECT @sql = COALESCE(@SQL + '; ', '') + sql_command
FROM (SELECT 'USE ' + QUOTENAME(name) +
...
October 26, 2011 at 5:43 am
strawb2 (10/26/2011)
October 26, 2011 at 5:30 am
COALESCE.
e.g.
DECLARE @Param1 VARCHAR(10) = NULL, @Param2 VARCHAR(10) = 'Value1', @Param3 VARCHAR(10) = NULL,
@Param4 VARCHAR(10) = NULL, @Param5 VARCHAR(10) = 'Value2', @Param6 VARCHAR(10) = NULL,
@Param7 VARCHAR(10) = NULL, @Param8 VARCHAR(10) =...
October 26, 2011 at 5:27 am
Teee (10/26/2011)
Select intRequisitionId,
SUM(CASE WHEN ISNULL(dteFirstApproverDateNotified,0) <> 0 THEN 1 ELSE 0 END ) AS column1,
SUM(CASE WHEN...
October 26, 2011 at 3:38 am
How about this?
DECLARE @sql AS VARCHAR(MAX)
SELECT @sql = COALESCE(@SQL + '; ', '') + sql_command
FROM (SELECT 'USE ' + QUOTENAME(name) +
...
October 26, 2011 at 2:49 am
CELKO (10/25/2011)
October 26, 2011 at 2:29 am
farooq.hbs (10/25/2011)
I need a help from u guys for date diffenreces
Using 10-Sep-2011
...
October 25, 2011 at 2:30 am
damirmi (10/24/2011)
I need to create sql script which will go through all records and find smallest unused number in list of unsorted numbers.
I have table with ID(primary key), UserNumber(int),...
October 24, 2011 at 6:30 am
No promises that this would be any better, but could you try something like this?
SELECT C.DrugName, DrugGroup = Isnull(R.DrugGroup, 'UNK')
FROM DrugClaims C
LEFT JOIN (SELECT Substring(DrugName, start, length - start -...
October 20, 2011 at 2:58 am
SQLRNNR (10/18/2011)
Jeff Moden (10/17/2011)
WayneS (10/17/2011)
Anyone have an idea if this post http://www.sqlservercentral.com/Forums/FindPost1191243.aspx is spam? (Afraid to click the link that is in that linked post...)
It's ok... he's been here before...
October 18, 2011 at 4:23 am
Here's a version without a LOOP.
ALTER FUNCTION dbo.RemoveNonNumericCharacters (@Temp VARCHAR(1000))
RETURNS VARCHAR(1000)
AS
BEGIN
--Use a real tally table for performance, here's one on the fly for testing
;WITH t1 AS (SELECT 1 N UNION...
October 18, 2011 at 3:14 am
Jnrstevej (10/17/2011)
Thanks @Cadavre for your time and effort I'm currently working through this now once I'm done I'll post my results
No problem. As I said, if you have more...
October 17, 2011 at 9:57 am
Steve Jones - SSC Editor (10/17/2011)
Dev @ +91 973 913 6683 (10/17/2011)
Your boss shouldn't really run your schedule, but tracking down the things you spend time on and examining...
October 17, 2011 at 8:50 am
Viewing 15 posts - 1,441 through 1,455 (of 2,007 total)