Viewing 15 posts - 3,391 through 3,405 (of 5,504 total)
I'd like to see an analysis regarding the offshore projects (in relative number and relative volume) distributed over the various types of companies (e.g. family-owned enterprize, a stockholder company or...
June 1, 2010 at 2:56 pm
Unfortunately, your sample data and expected output doesn't really match and there was some fine tuning required to get your sample data inserted (wrong column order).
But here's what I came...
June 1, 2010 at 1:54 pm
Now, all that's still missing are some sample data (in an INSERT INTO SELECT format) to play with that would match your expected result so we have something to test...
June 1, 2010 at 1:20 pm
No problem.
The reason why some of us tend to add the "duplicate post" information ist to make sure the answers are all within one thread. That makes it easier for...
June 1, 2010 at 1:17 pm
If you would provide table definition, sample data and expected result in a ready to use format as decribed in the first link in my signature I'm sure there will...
June 1, 2010 at 12:53 pm
Lowell (6/1/2010)
DECLARE @endDate datetime
SET @endDate = DATEADD(hh,8,GETDATE()) -- 8 hours from now
WHILE GETDATE() < @endDate
BEGIN
INSERT INTO [Test]...
June 1, 2010 at 12:10 pm
Ok, here's what I came up with: It's a "double self referencing" table.
The first one (sub) is used to eliminate consecutive rows and the second one (final select) gets the...
May 31, 2010 at 4:45 pm
I've been trying to come up with a self referencing solution, but I'll give up now since I won't be able to come even close to your solution. :crying:
May 31, 2010 at 4:19 pm
Jeff Moden (5/31/2010)
lmu92 (5/31/2010)
I'm not sure if this is the fastest way, but at least it's an option... 😉
That seems to loose the bubble when the ranges on the same...
May 31, 2010 at 3:39 pm
I'm not sure if this is the fastest way, but at least it's an option... 😉
;
-- unpivot and group the values
WITH upvt AS
(
SELECT Val
FROM
(SELECT START,[END]
FROM @rangeTable)...
May 31, 2010 at 12:11 pm
Please be a little more specific regarding the table/data structure you want to insert.
Otherwise, you might see a script like the following to enter a few thousand rows into a...
May 30, 2010 at 4:45 pm
daniarchitect (5/30/2010)
but they have sql server on side which is version 2000.
I ask apology for posting it here,but that was the only...
May 30, 2010 at 7:36 am
You need to use the real file names instead of @txtFile and @xmlFile.
The following should work:
SET @SQLString = 'INSERT INTO competition (Competition_ID,Competition,Title,Parent_ID) '
+ 'SELECT Competition_ID,Competition,Title,Parent_ID '
+ 'FROM OPENROWSET(BULK '...
May 30, 2010 at 7:27 am
Viewing 15 posts - 3,391 through 3,405 (of 5,504 total)