Viewing 15 posts - 9,481 through 9,495 (of 10,144 total)
bharathi (10/9/2008)
I found it myself...Thankss a lot anywayz...
Hi bharathi
Please would you post your solution? It would finish this thread nicely and also, possibly, provide useful learning material for others.
Cheers
ChrisM
October 9, 2008 at 6:29 am
Hi Joey
It's good practice to print the string you're going to execute. Try this, there are a couple of minor changes:
[font="Courier New"]DECLARE @LinkedNameServer VARCHAR(500)
DECLARE @Schema VARCHAR(100)
SET @Schema = 'Schema'
DECLARE @TableName...
October 9, 2008 at 4:15 am
Hi David
With six node levels and a remote possibility that it could increase, your best bet is almost certainly a recursive CTE as described in the following article:
October 9, 2008 at 3:08 am
Hi David, many thanks for posting this. The next question would be...how many levels deep can this hierarchy go? If it's fixed at say 2 or 3, then the solution...
October 9, 2008 at 2:23 am
Hi David, there are established methods for achieving this. Some sample data would help tremendously. Here's a start though I'm guessing somewhat, please can you correct the data to fit...
October 9, 2008 at 12:57 am
Hello
This is also untested but should be pretty close to what you're looking for - if it isn't, please post DDL of your table and some sample data.
[font="Courier New"]SELECT d1.RIV_RCN_ID,...
October 9, 2008 at 12:36 am
rbarryyoung (10/7/2008)
Jeff Moden (10/7/2008)
BWAA-HAA! Did you leave any redmarks on your cheeks from the slingshot kickback? :hehe:Is that the tough chewy part?
Nah that's the target 😛
October 8, 2008 at 8:08 am
Interesting point. I'd guess that most of us use a tally table with a million numbers in it. Having found that reducing the rowcount (or maximum number, in other words)...
October 8, 2008 at 8:07 am
dr_csharp (10/8/2008)
whats wrong with this :
Select * from Callrecorder where RecId between (select RecId from Table2 ) tempTable
Firstly, as mentioned earlier, a table alias ('tempTable') is only required if the...
October 8, 2008 at 5:13 am
October 7, 2008 at 8:12 am
Hi Mr Baseball
If I'm teaching you to sucks eggs then I humbly apologise now...best practice in this scenario is to use a "staging table" as the target for your import,...
October 6, 2008 at 10:30 am
Here's another way - I'm sure it won't be the last.
DROP table #test
create table #test (
[Date] int,
[Time] int)
INSERT INTO #test
SELECT 20081003,70004
UNION
SELECT 20080326,210053
UNION
SELECT 20081003,20003
UNION
SELECT 20081002,200002
SELECT CONVERT(DATETIME, STUFF(STUFF(CAST([Date] AS...
October 3, 2008 at 10:32 am
Yeah I see your point now. It's easy enough to create a short numbers table on the fly
SELECT CAST(CAST(d1.Number AS VARCHAR(2)) + CAST(d2.Number AS VARCHAR(2)) AS INT) AS number
FROM...
October 3, 2008 at 9:41 am
Had to try it, guys...
[font="Courier New"]DECLARE @StringIn VARCHAR(200), @StringOut VARCHAR(200)
SET @StringIn = 'The Quick Brown Fox Jumps Over The Lazy Dog.'
SET @StringOut = ''
SELECT @StringOut = @StringOut + CHAR(CASE WHEN...
October 3, 2008 at 7:54 am
Viewing 15 posts - 9,481 through 9,495 (of 10,144 total)