Viewing 15 posts - 10,171 through 10,185 (of 13,879 total)
opc.three (2/6/2013)
J M-314995 (2/6/2013)
February 7, 2013 at 1:36 am
Methew (2/7/2013)
Perfect...Sir you did exactly what i want.DONE...thanks
Thanks for posting back - glad to help.
February 7, 2013 at 1:08 am
OK, I fixed up your sample data to use a proper IDENTITY PK and not to try and insert varchars into the INT bank_id column. Solution below:
IF OBJECT_ID('TempDB..#mytable1','U') IS NOT...
February 7, 2013 at 12:57 am
Methew (2/7/2013)
id,bank_id,amount
it has alot of data....how i can select last entry for all distinct banks ?
lets say(Below code has not tested)
IF OBJECT_ID('TempDB..#mytable1','U') IS NOT...
February 7, 2013 at 12:41 am
You could add another level of nesting:
Expression < 0 ? 0 : Expression
where expression is the entire statement you currently have.
Or - slightly unorthodox - add another derived column transformation...
February 6, 2013 at 1:32 pm
Here's one way, I think
update it
set Add1 = s.Add1
,Add2 = s.Add2
from dbo.items_test it
join dbo.Staging1 s on it.Location = s.Location
and it.ProdCode = s.ProdCode
and it.Customer = s.Customer
where it.Date_Effective =...
February 6, 2013 at 8:19 am
Jason-299789 (2/6/2013)
It was aimed as more of an example of how to generate the basic data (ie a Sequential date), so that you can then start adding on the...
February 6, 2013 at 8:00 am
wafw1971 (2/6/2013)
February 6, 2013 at 7:39 am
Jason-299789 (2/6/2013)
Your best bet is to use a TALLY table, a CTE, or at worst a Recursive CTE.
using an crude tally table
With Cte_n
AS
(
Select 1 a Union...
February 6, 2013 at 7:09 am
aaron.reese (2/6/2013)
from the command line I have to use the /conf[iguration] switch to specify the location of the config file which will then override the location specified...
February 6, 2013 at 4:06 am
fecker (2/6/2013)
I did some screenshots (attached) - for this dummy - maybe this will explain more. I run
this...
February 6, 2013 at 2:15 am
iamsql1 (2/5/2013)
i have a qs: if i have a data flow task inside for loop container. and DFT contains five static connections of FLAt file as Source...
February 6, 2013 at 12:32 am
The SQL Agent job runs asynchronously - so it's not going to return 'finished' info to your application.
You could, perhaps, implement an MSMQ solution, though that may be a sledgehammer...
February 6, 2013 at 12:21 am
I tried understanding what you are trying to do, but it confused me as it's not written very clearly.
But then you have said that your script task to update a...
February 5, 2013 at 10:26 am
Viewing 15 posts - 10,171 through 10,185 (of 13,879 total)