Viewing 15 posts - 1,291 through 1,305 (of 2,038 total)
Hi
Sorry but I don't understand your request. The "match" column contains only zeros. Why does 1 match with 2 but not with 6 and why does 7 match with 8...
April 22, 2009 at 1:11 pm
Vandana.verma (4/22/2009)
The system should check if any of the rows of a table that satisfy some condition ONLY...
April 22, 2009 at 1:04 pm
Hi
I can can reproduce this. It seems that the CATCH block ends with the SELECT. Just try to add two PRINT lines above and below the "SELECT 0". The first...
April 22, 2009 at 1:01 pm
Paul White (4/21/2009)
Jeff Moden (4/21/2009)
April 22, 2009 at 12:11 pm
Hi Code
Sorry, didn't notice the variable declarations...
If the value of the variables is same for all databases, as in your sample, you can use sp_executesql and transfer the values from...
April 22, 2009 at 11:59 am
Bob Hovious (4/21/2009)
This beast features double-barelled carburetors.... errrr tally tables.... one with two columns, and nested CROSS APPLYs.
Can you...
April 22, 2009 at 11:48 am
Chris Morris (4/22/2009)
Nah, it's a small error in Flo's code - there's a first time for everything!
Heh... Thanks Chris 🙂 but not first time. I should stop tryin' to write...
April 22, 2009 at 5:46 am
Paul White (4/21/2009)
Morning Flo!
As usual Paul is up - shift changeover - time for bed (12:42 AM)...
This stays a great pity!
On first look, the performance improvement is down to the...
April 21, 2009 at 5:02 pm
Just mask your apostrophes with double apostrophes and replace the "PRINT ''Hello from: '' + DB_NAME()" of my example. I don't know a better way for this:
DECLARE @sql NVARCHAR(MAX)
SELECT...
April 21, 2009 at 4:06 pm
Hi
You can use a dynamic SQL statement:
DECLARE @sql NVARCHAR(MAX)
SELECT @sql = ISNULL(@sql, '') + 'USE ' + name + ' PRINT ''Hello from: '' + DB_NAME()' + CHAR(10)
...
April 21, 2009 at 3:38 pm
Hi
I confirm Jeffrey. As your sample data are shown the usual answer MUST be a scalar function. Could you please explain what you want to do?
Greets
Flo
April 21, 2009 at 3:16 pm
Jeff Moden (4/19/2009)
April 21, 2009 at 3:04 pm
Bob Hovious (4/21/2009)
I'm about to test my only thought on the matter. If it seems to perform well, I'll send it to you.
Sure, I would be happy about!...
April 21, 2009 at 3:01 pm
Bob Hovious (4/21/2009)
After following the Tally thread, there is no way I can claim to be your mentor. However you are welcome to any little tips or...
April 21, 2009 at 2:37 pm
Viewing 15 posts - 1,291 through 1,305 (of 2,038 total)