Viewing 15 posts - 601 through 615 (of 1,229 total)
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
rakesh.naik (12/31/2015)
The mail could not be sent to the recipients because of the mail server...
January 20, 2016 at 3:29 pm
Another thing to consider is avoiding the chaining of views if possible. You keep the compiler from getting a good query plan. Things are not as re-usable in the SQL...
January 20, 2016 at 2:35 pm
Viewing 15 posts - 601 through 615 (of 1,229 total)