?????: ????? ?????? ?? ???? ????? ?? SQL Server 2008 R2 ?????????? ? SharePoint ??? ?? ????? ????? ????? ?????? ?? ????? ??????

?????? ????????? ?????? ?????????
???? ???????: 2490555 - ??? ???????? ???? ????? ????? ??? ???????.
???? Microsoft ????????? Microsoft SQL Server 2008 R2 ???? ??????? ??????? ???????. ????? ??? ????????? ????????? ?? ????? ???? ????? ??? ???? ????????? ??????? ?????? ????? ???? ??????? ?????? ???? ?? ??????? ?? ?????? SQL Server 2008 R2.
????? ???? | ?? ????

?? ??? ??????

???????

???? ??? ????????? ??????:
  • ????? ?????? Microsoft SQL Server 2008 R2 ?????????? ? SharePoint ??? ???????.
  • ??? ?? ????? ???? Excel ?????????? ??? ???? ??????????.
  • ????? ??????? ??????? ???? ?????????? ?????? ????? ????? ???? ???? ???? ?? ?????. ??? ???? ??????? ??? ??? ??? ????? ????? ???6: 00 ?????.???? ???????2: 00 ?????.????? ??????.
  • ????? ????? ?????? ?????.
  • ????? ????? ???????? ????? ???????? ????? ???????? ??? ??????? ?????.
?? ??? ?????????? ????? ???????? ?? ????? ????? ?? ?? ???.

?????

???? ??? ??????? ???? ?????? Microsoft SQL Server ?????????? ? SharePoint ??? ??? ??? ???? ?? ?????? ??????.

????

??????? ??????? ????????

SQL Server 2008 R2

?? ????? ??????? ???? ??????? ????? ?? 6 ??????? ????????. ?????? ??? ???? ?? ????????? ??? ????? ?????? ??? ???? ??????? ???????? ??? ? SQL Server 2008 R2? ???? ??? ??? ??????? ?????? ???? ??????? ?? ????? ????? Microsoft:
2489376???? ??????? ???????? 6 ????? ??????? SQL Server 2008 R2
??????????? ???? ??????? ???????? ????? ?? ????? ????? ???? ??? ???? ????????? ??????? ?????? ????? ???? ??????? ?????? ???? ?? ??????? ?? ?????? SQL Server 2008 R2. ???? ??????? ????? ???? ????? ????? ???? ????? ??? ??? ??????? ??????. ????? ?? ?????????? ???? ??? ??? ??????? ?????? ???? ??????? ?? ????? ????? Microsoft:
981356???? SQL Server 2008 R2 ???? ?? ??????? ??? ????? SQL Server 2008 R2

???? ??????

??? ??? ???????? ????? ??????? ???????? ??? ???? ??? ?????? ???????:

  • ??? ???? ????? ???? ??????????.
  • ????? ????? ??????? ???? ?????????? ???????? ??? ?? ????? ????? ????? ?????.

??? ??? ???? ?????? ????? ???? ??????????? ???? ???? ????? ?? ?? ?????? ????? ?????? ?? ?????? ?????? ??? SQL ???????? ??????? ?????? ??? ??? ???????. ????? ??? ???????? ?????[??????????].[?????????????????????]??????? ?????? ????? ????? ?????? ??????? ???? ??????????.
IF OBJECT_ID ( '[DataRefresh].[ProcessNextScheduledRun]', 'P' ) IS NOT NULL 
    DROP PROCEDURE [DataRefresh].[ProcessNextScheduledRun];
GO

-- The caller should update the [NextProcessDate] and set the status to 'P'.
CREATE PROCEDURE [DataRefresh].[ProcessNextScheduledRun]
@AllotedServerName [nvarchar] (256)
AS
	DECLARE @CurrentTime datetime;
	DECLARE @CurrentDate datetime;
	SET @CurrentTime = GETDATE();
	SET @CurrentDate = [DataRefresh].[DateOnly](@CurrentTime);
	SET @CurrentTime = [DataRefresh].[TimeOnly](@CurrentTime);
	-- Caller will calculate virtual run window and cancel the run that missed it.
	UPDATE [DataRefresh].[Runs] SET [RunStartTime]=GETDATE(), ResultKey='Q', ServerName=@AllotedServerName
		OUTPUT inserted.*
		WHERE [RunID] 
			in (SELECT TOP 1 [RunID]
					FROM [DataRefresh].[Runs] 
					WHERE ResultKey='W'
						AND 
						(
							(
				-- AfterBusinessHour cases that haven't been loaded to verify IT overridden business hours.
				-- To handle IT overridden business hours, we will process after business hours schedules immediately 
				-- and set [ProcessStartTime] and [ProcessEndTime] for the schedule and create other schedules if it is necessary.
								[ProcessStartTime] IS NULL 
							) 
							OR
							(	-- None AfterBusinessHour cases
								ProcessEndTime IS NULL 
								AND ( @CurrentTime>=[DataRefresh].[TimeOnly]([ProcessStartTime]) OR DATEDIFF(Day, ProcessDate, @CurrentDate)>=1)
							)
							OR 
							(
								-- BusinessHours setting crosses the day boundary.
								[DataRefresh].[TimeOnly]([ProcessStartTime])<[DataRefresh].[TimeOnly]([ProcessEndTime])
								AND (
										DATEDIFF(Day, ProcessDate, @CurrentDate)>1 
										OR
										(DATEDIFF(Day, ProcessDate, @CurrentDate)>=0 AND @CurrentTime>=[DataRefresh].[TimeOnly]([ProcessStartTime]))
									)
							)
							OR
							(
								-- BusinessHours setting within the day boundary.
								[DataRefresh].[TimeOnly]([ProcessStartTime])>[DataRefresh].[TimeOnly]([ProcessEndTime])
								AND ( @CurrentTime>=[DataRefresh].[TimeOnly]([ProcessStartTime]) OR DATEDIFF(Day, ProcessDate, @CurrentDate)>=1)
							)
							-- The following case has been coverred.
							--OR
							--(
							--	-- Very old runs that haven't been picked up.
							--	DATEDIFF(Day, ProcessDate, @CurrentDate)>1
							--)
						)
					ORDER BY [ProcessDate] ASC
				)
GO

GRANT EXECUTE ON [DataRefresh].[ProcessNextScheduledRun] TO [GeminiService_DataRefresh]
GO

?????

???? Microsoft ?? ??? ????? ?? ?????? Microsoft ??????? ?? ??? "????? ???".

?????

????? ?? ????????? ??? ????? ????? ?????? ????? ???? ??????????? ?? ?????? ???? ???? ????? Microsoft "(MSDN) ??????:
????? ????? ?????? ????? ???? ??????????

????? ?? ????????? ??? ????? ????? ?????? ?????????? ???????? ?? ?????? ???? ???? ????? Microsoft "(MSDN) ??????:
????? ????? ????? ????? ?????? ??????????

?????? ??? ???? ?? ????????? ??? "????? ????? ??????" ? SQL Server? ???? ??? ??? ??????? ?????? ???? ??????? ?? ????? ????? Microsoft:
935897????? "????? ????? ??????" ?? ???? SQL Server ?????? ????????? ??????? ???????? ???? ?? ??????? ????
?????? ??? ???? ?? ????????? ??? ???? ??????? ???????? SQL Server? ???? ??? ??? ??????? ?????? ???? ??????? ?? ????? ????? Microsoft:
822499???? ????? ????? ???? ??????? ????? Microsoft SQL Server
?????? ??? ???? ?? ????????? ??? ??????? ????? ???????? ???? ??? ??? ??????? ?????? ???? ??????? ?? ????? ????? Microsoft:
824684??? ????????? ???????? ????????? ?? ??? ??????? ????? Microsoft

???????

???? ???????: 2490555 - ????? ??? ??????: 18/???? ?????/1432 - ??????: 1.0
????? ???
  • Microsoft SQL Server 2008 R2 PowerPivot for Microsoft Excel 2010
  • Excel Services in Microsoft SharePoint Server 2010
????? ??????: 
kbqfe kbfix kbsurveynew kbexpertiseadvanced kbmt KB2490555 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????2490555

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com