Viewing 15 posts - 1 through 15 (of 30 total)
Martin, your solution worked.
Thanks,
August 24, 2022 at 10:07 pm
Jeff, format date is not the issue.
If you are willing to waste your time, do it on the real problem, the variable is the issue.
DECLARE @todays AS VARCHAR(20) SELECT @todays...
August 24, 2022 at 12:33 am
Hi, this is what I am trying to do,
DECLARE @todays AS VARCHAR(20)
SELECT @todays = format(cast(getdate() as date),'yyyyMMdd')
EXEC xp_cmdshell
'copy C:\Test\@todays\ *.* C:\Newtest\';
But, I can figure out the syntax to pass the...
August 23, 2022 at 3:57 pm
Jeff, thank you.
I ran the query you provided and it does delete the intended rows.
I will run it against a test table with a lot more data to select the...
May 28, 2020 at 12:19 am
I am sorry, what I mean by "delete or update" is I can use any of the options. But, to be more specific, I need to update Removed = 2...
May 3, 2019 at 3:16 pm
I want to share what worked for me.
This command, will copy the ssis package to the E drive.
exec xp_cmdshell 'dtutil /SQL PackageName /decrypt password /COPY FILE;E:\Foldername\PackageName.dtsx'
December 13, 2018 at 9:36 am
Thank you, I will take a look at it.
December 12, 2018 at 1:21 pm
Thank you, it worked!!
November 25, 2018 at 12:03 pm
Thank you all, I will try pietlinden 's code.
November 24, 2018 at 3:32 pm
Hi, the data involved in this task is fairly small. So, I think the cursor would not be very costly.
I have this other query,
SELECT DISTINCT
[EmployeeID]
November 24, 2018 at 12:33 pm
Thank you, I think I just got it...
May 28, 2014 at 2:50 pm
I agree with your suggestions. I will re-consider my approach.
Thanks,
February 11, 2014 at 12:04 pm
Thank you, this works.
October 29, 2013 at 4:37 pm
Viewing 15 posts - 1 through 15 (of 30 total)