Viewing 15 posts - 10,171 through 10,185 (of 13,879 total)
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
opc.three (2/5/2013)
ngreene (2/4/2013)
What is stupid is I am running Interop 2010 on a Server 2008 box and this change still fixed my problem. What the heck!
The issue is that...
February 5, 2013 at 10:21 am
aaron.reese (2/4/2013)
Unfortunately I can't see how to assign the value to a variable without using a script. I have tried sending the...
February 4, 2013 at 11:47 am
Read the file in a dataflow.
Add a conditional split which redirects processing according to what has been read - two outputs: Build Success and the rest.
Each different path sets a...
February 4, 2013 at 9:01 am
Viewing 15 posts - 10,171 through 10,185 (of 13,879 total)