Viewing 15 posts - 46 through 60 (of 615 total)
ChrisM@Work (1/16/2014)
Personally I use SELECT 1, but I might change it to the above.
So do I actually. I've always used SELECT 1 because ultimately what the sub query returns is...
January 16, 2014 at 3:41 am
No. It knows exactly which ones to delete.
Does it?
CREATE TABLE SSC1 (ID INT, Name VARCHAR(50))
INSERT INTO SSC1 SELECT 1, 'Abu Dina' UNION ALL SELECT 2, 'Howard Zinn' UNION ALL SELECT...
January 16, 2014 at 2:52 am
Lowell (1/14/2014)
...
January 15, 2014 at 9:02 am
kapil_kk (1/15/2014)Can you please tell me one thing that what is the use of the variable type Object?
Think of it as a place holder for your query so it holds...
January 15, 2014 at 8:24 am
Yes you will need to configure the Parameter Mapping section of the Execute SQL Task. You will need two entries in there so something like this:
Variable Name = User::str1
Direction =...
January 15, 2014 at 8:19 am
kapil_kk (1/15/2014)
Abu Dina (1/15/2014)
Abu Dina (1/15/2014)
kapil_kk (1/15/2014)
January 15, 2014 at 7:58 am
Difficult to answer your question but from what I understand, your derived table will return results if any of these are empty:
t1.Diag_Code1
t1.ClosureStatus
t1.DISCHARGE_DISP
Is that what you want?!
January 15, 2014 at 7:56 am
Nice 1 David:
This is my attempt lol:
declare @test-2 float = '1.21793287400577E+15'
select left(cast(CAST(@test as bigint) as varchar(20)), LEN(cast(CAST(@test as bigint) as varchar(20)))-6)
select DATEADD(SS, CAST(left(cast(CAST(@test as bigint) as varchar(20)), LEN(cast(CAST(@test...
January 15, 2014 at 7:40 am
Abu Dina (1/15/2014)
kapil_kk (1/15/2014)
January 15, 2014 at 7:23 am
kapil_kk (1/15/2014)
January 15, 2014 at 6:04 am
Afraid not... you have to use dynamic SQL for this kind of thing.
January 15, 2014 at 5:42 am
EXEC ('select Number, Name As ' + @STR + ' from #Temp')
January 15, 2014 at 5:37 am
Your first query is returning two columns: a.AccountId, b.StockId
Then your delete is using the EXISTS operator which is fair enough but the inner query returns multiple rows so how...
January 15, 2014 at 5:28 am
So what is @tabname? The variable is declared in your code but is not being assigned anything?
With dynamic SQL it's a good idea to PRINT the content first to...
January 15, 2014 at 2:54 am
quackhandle1975 (1/9/2014)
I have also become addicted to Chess in the past 18 months for some reason having no interest before this. How odd. :crazy:qh
Not odd at all. I fell...
January 9, 2014 at 4:44 am
Viewing 15 posts - 46 through 60 (of 615 total)