Viewing 15 posts - 2,026 through 2,040 (of 3,957 total)
Another way:
INSERT INTO TableB
SELECT * FROM TableB
EXCEPT
SELECT * FROM TableA
February 5, 2013 at 6:09 pm
If your tables have many rows, performance is likely to be an issue so I'd recommend that you create a temp table to store the row vs. row time differences...
February 5, 2013 at 6:06 pm
Using Alan.B's set up data, here's another way (except using DATE data type):
-- Setup
IF OBJECT_ID('tempdb..#x') IS NOT NULL
DROP TABLE #x;
CREATE TABLE #x
( Studentid int, DateID DATE unique, attendaceind bit)
INSERT...
February 5, 2013 at 5:49 pm
Sounds like you got it working! That's great!
I thought of a simplification right after I posted the original, so here it is based on the latest query you just...
February 5, 2013 at 5:45 am
Abu Dina (2/5/2013)
Because I'm a stupid little boy!Such an easy solution. Thanks mate.
BWAAAHAHAHAHA!
Actually, I thought maybe you couldn't use it because you had multiple rows like this to process.
February 5, 2013 at 4:29 am
It is difficult to interpret your Excel results because you don't have any identifying keys saying what ship type it is.
Can you align the results from Excel with the results...
February 5, 2013 at 4:25 am
greg.bull (2/5/2013)
February 5, 2013 at 4:13 am
I get these errors when I run your SQL.
(780 row(s) affected)
Msg 207, Level 16, State 1, Line 792
Invalid column name 'questionnbr'.
Msg 207, Level 16, State 1, Line 792
Invalid column name...
February 4, 2013 at 6:06 pm
Not sure exactly if this is what you're after but maybe it'll help:
DECLARE @XmlData XML = '
<Root>
<Person>
<Name>Simon</Name>
<Age>20</Age>
<Skills>
<Skill>Cooking</Skill>
<Skill>Cleaning</Skill>
</Skills>
</Person>
<Person>
<Name>Peter</Name>
<Age>21</Age>
<Skills>
<Skill>Ironing</Skill>
...
February 4, 2013 at 6:01 pm
greg.bull (2/4/2013)
February 4, 2013 at 5:34 pm
Curious why you wouldn't want to use a string splitter (like Jeff Moden's) for this:
DECLARE @Word1 VARCHAR(8000), @Word2 VARCHAR(8000), @Word3 VARCHAR(8000)
SELECT @Word1 = CASE ItemNumber WHEN 1 THEN Item ELSE...
February 3, 2013 at 6:58 pm
Koen Verbeeck (1/31/2013)
Creating Excel Worksheets Dynamically in SSIS
@dwain: you can use a script task to get the metadata from an...
February 3, 2013 at 5:29 pm
tota00 (2/1/2013)
I´m dynamicly building my statement and adding and removing countrys from the sql-question on the fly depending on what filteroptions the user has choosen.
I´m for the moment generating...
February 3, 2013 at 5:25 pm
Jeff Moden (2/2/2013)
One of my principles of the help I get on this forum is to never put a line of code in production I don't completely understand.
That's absolutely the...
February 3, 2013 at 5:23 pm
Viewing 15 posts - 2,026 through 2,040 (of 3,957 total)