Viewing 15 posts - 1 through 15 (of 17 total)
it would be but since we are inserting from local to remote it has to be either openquery or execute command. i tried both but always returns an error.
July 7, 2015 at 5:06 am
Hi Ed, yes! oh yes! its working exactly what i was looking for. Thank you guys for your time and effort and ed, i a m reading the article you...
July 6, 2015 at 9:19 am
You got it right, i want to break down each row for everyone day, its a client request. The query and table is much bigger than this, i have...
July 6, 2015 at 7:35 am
My bad guys , I have now rectified the mistake and edited the post. T´thanks chris for pointing and ed, i will follow your lead. thanks guys, will get...
July 6, 2015 at 7:20 am
The table below is the result of the modifed script. This works fine for one a row with one or more subid.
subID prodgdate salesdate prodendDate RowNum Subrowlog Subrowdate
2000 2006-02-09 2006-02-09...
July 3, 2015 at 4:55 pm
The table below is the result of the modifed script. This works fine for one a row with one or more subid.
subID prodgdate ...
July 3, 2015 at 4:49 pm
they are both date type
July 3, 2015 at 6:35 am
I got it working!
DATEADD(mm, RowNum, convert(VARCHAR(10),salesdate,112))
July 3, 2015 at 3:44 am
sorry my mistake, not looping. i have explained in a new post what i am trying to achieve.
July 3, 2015 at 1:43 am
I get this error.Operand type clash: int is incompatible with date.
My subscription table has around more that 20,000 subscriptionids. I have rownum so that i can concatenate this rownumber to...
July 3, 2015 at 1:43 am
This is what i am looking for, to come out of the loop once the datediff days are zero. RowNum is a counter that i am using to concatenate to...
July 2, 2015 at 8:26 am
stage_viasatsubscription is a base table.
July 2, 2015 at 8:03 am
I also think that rownum is high. No, salesdate is not devideby datetime. I should doing something like this
rownumber <= datediff (day,salesdate,baseenddate) but i dont know how to...
June 30, 2015 at 2:54 pm
I have solved the issue. My gratitude to Lowell for his time and patience.
June 30, 2015 at 6:22 am
Thanks mate, it worked!!
The next thing i want to do is an insert these select into a table
This is what i tried to do
INSERT INTO subs (
...
June 30, 2015 at 5:25 am
Viewing 15 posts - 1 through 15 (of 17 total)