Viewing 7 posts - 1 through 7 (of 7 total)
For each file
Extract the patient Id from the file name
Check whether the extracted patient Id matches a row in the SQL Server lookup table
If a match is found
move the file...
July 11, 2019 at 7:50 pm
I want to move those matched PDF files with Patient ID from Folder A to Folder B and Folder C.
July 11, 2019 at 6:55 pm
Declared variables only once, it worked. Thanks
declare @begindate datetime,
@enddate datetime
SET @begindate =Dateadd(month,datediff(month,0,getdate())-3,0)
SET @enddate=EOMONTH(Dateadd(month,datediff(month,0,getdate())-3,0))
Exec rpt_MonthlyApprovalsProductivity @begindate, @enddate
SET @begindate =Dateadd(month,datediff(month,0,getdate())-2,0)
SET @enddate=EOMONTH(Dateadd(month,datediff(month,0,getdate())-2,0))
Exec rpt_MonthlyApprovalsProductivity @begindate, @enddate
SET @begindate =Dateadd(month,datediff(month,0,getdate())-1,0)
SET @enddate=EOMONTH(Dateadd(month,datediff(month,0,getdate())-1,0))
Exec rpt_MonthlyApprovalsProductivity @begindate, @enddate
April 12, 2019 at 8:53 pm
I have to declare the variable only once then it will work.
April 12, 2019 at 4:04 pm
declare @begindate datetime,
@enddate datetime
SET @begindate =Dateadd(month,datediff(month,0,getdate())-3,0)
SET @enddate=EOMONTH(Dateadd(month,datediff(month,0,getdate())-3,0))
Exec rpt_MonthlyApprovalsProductivity @begindate, @enddate
...
April 12, 2019 at 3:50 pm
It gives me this error now If I declare and set values like above
Msg 134, Level 15, State 1, Line 582
The variable name '@begindate' has already been declared. Variable names...
April 12, 2019 at 3:44 pm
@BeginDate DATETIME
,@EndDate DATETIME
April 12, 2019 at 3:33 pm
Viewing 7 posts - 1 through 7 (of 7 total)