Viewing 15 posts - 556 through 570 (of 3,232 total)
Well, this works to catch the moving target. You may stick with what you have, but this would still work inside of an OLE DB Source provided the source...
April 1, 2010 at 11:33 am
Dan.Humphries (4/1/2010)
Thanks for the script. Unfortunatley it will not work for what I need since the bucket starting position is determined by the month of the last reading. So...
April 1, 2010 at 10:19 am
Can you just swap the ordering around, this seems much simpler?
DECLARE @Table TABLE (Account varchar(25) , Meter varchar(25), ReadDate datetime, Usage int)
INSERT INTO @Table
SELECT '010012080', '00068276', '2010-02-26 00:00:00.000', 440.00000...
April 1, 2010 at 10:00 am
First off, I appologize for letting this one get away from me.
Secondly, adjust the column properties as da-zero suggests. Your column needs to match the destination...
April 1, 2010 at 9:49 am
Well, I won't get into a normalization bashing here, but In my opinion, you should store the data in some sort of 'Readings' table and create a view to pivot...
March 31, 2010 at 4:06 pm
Your example data shows 1 entry per month. Can you give me an example of what your data would look like when there are multiple entries in a given...
March 31, 2010 at 3:28 pm
What you are seeing with the table variables is expected. Table variables are scoped to the SQL batch.
Why not eliminate the temp tables completely and insert into your destination...
March 31, 2010 at 3:21 pm
It is because of your WHERE condition with the OR statement. Group the OR condition together like this:
WHERE(CardORKey='Key' or CardORKey='Both')
AND (LastName = @LastName OR @LastName IS NULL)
AND (Date >=...
March 31, 2010 at 2:56 pm
crookj (3/31/2010)
Komodo Dragon(Extremely interesting documentary last night)
Joe
Bearded Dragon
March 31, 2010 at 8:21 am
You belong here in Nebraska with me Jason. One of the small towns outside of Omaha has a Testical Festival every year. It's a big attraction.
Personally,...
March 30, 2010 at 3:07 pm
DECLARE @Date datetime
SET @Date = '2008-01-10 00:00:00.000'
SELECT DATEDIFF(dd, @Date, GETDATE())
March 30, 2010 at 1:58 pm
Can you give an example of the result set you are looking for? Also, how are these 2 tables related?
March 30, 2010 at 1:19 pm
DECLARE @Table TABLE (RowID int IDENTITY(1,1), Col1 varchar(10))
INSERT INTO @Table(Col1)
SELECT 'test' UNION ALL
SELECT 'T_est'
SELECT *
FROM@Table
WHERECHARINDEX('_',Col1) > 0
March 30, 2010 at 12:58 pm
Viewing 15 posts - 556 through 570 (of 3,232 total)