Viewing 15 posts - 601 through 615 (of 1,231 total)
GilaMonster (1/29/2016)
That will match precisely 0 rows, as type cannot be both less than 2 and greater than 2 at the same time. It's not equivalent to (table2.type...
January 29, 2016 at 10:56 am
Table2.Type!=2
Also know that if that column contains nulls, those will be missed by the select. Something along the lines of
(table2.[type]<2 and table2.[type]>2) Or table2.[type] IS NULL /*...
January 28, 2016 at 7:23 pm
titsiros (1/26/2016)
January 26, 2016 at 12:48 pm
titsiros (1/26/2016)
insert into destinationDB.destinationTable (ID, s...)
select destinationParentTable.ID, s...
from...
January 26, 2016 at 10:46 am
Sergiy (1/25/2016)
MMartin1 (1/25/2016)
January 25, 2016 at 12:23 pm
SumonB (1/25/2016)
I am creating a DBA Report where I need to show the backup details for last 15 days including today's date.
I have 2 variables...
January 25, 2016 at 11:13 am
Sergiy (1/23/2016)
I think he was not totally understanding date math in sql server. Once he defined the problem better Scott was able to give him a solution. I was...
January 25, 2016 at 10:55 am
Sergiy (1/20/2016)
SumonB (1/20/2016)
This is used because if Current Date is less than 7th of the month, it should go to previous month to set the start date
OK, this is opposite...
January 22, 2016 at 7:35 pm
Since this is a SS2K8 T-SQL forum,
A cleaner approach:
Declare @StartDate Date;
Declare @EndDate Date='2016-01-05';--getdate();
Set@StartDate = dateadd(d,-15, @EndDate);
Select@startDate, @endDate;
Just changing variable types from datetime to Date declaration
January 22, 2016 at 7:33 pm
Sometimes it's better to say so than to offer any code help.
He may be after picking some random rows on the intermediate result of a union alls for whatever reason....
January 21, 2016 at 9:30 pm
Sergiy (1/21/2016)
MMartin1 (1/21/2016)
January 21, 2016 at 1:26 pm
Phil Parkin (1/21/2016)
MMartin1 (1/21/2016)
January 21, 2016 at 11:41 am
Chris Wooding (1/21/2016)
To answer the original question; thishttp://www.sqlservercentral.com/Forums/Topic1752249-1292-1.aspx
is recursion.
I would also call that an infinite loop. A Recursive function should have a cut off point. 😛
January 21, 2016 at 11:29 am
Brilliant work Orlando. It makes sense that the execute sql task is returning the results of a SELECT. That will be in the form of a result set, even...
January 21, 2016 at 11:19 am
That would make sense since this table is a heap. The ID column is not really an identifyer in this situation. We are not recommending a practice of not maintaining...
January 21, 2016 at 11:10 am
Viewing 15 posts - 601 through 615 (of 1,231 total)