54 questions
-1
votes
0
answers
39
views
I can run an RPA exe by going to the server directory and double clicking it, but get an error using a command line [duplicate]
I've built an RPA that runs fine as a .py. I turned it into an .exe and it ran fine that way as well. Next I moved it to the production server that it will run from and using File Explorer, double ...
0
votes
0
answers
104
views
SQL Server Log shipping do not work for multiple databases inside T-SQL loop
I want to set SQL Server log shipping for all databases on a server. When I configure database (on master side) one by one, there is no problem.
Problem occurs when put configuration ( for master side ...
0
votes
0
answers
107
views
Powershell script does not execute on SQL Server job
I get a zip file that includes a database backup from our customer that needs to be restored on our server on a regular basis. The restore is done on an staging server, the data is than processed ...
0
votes
0
answers
52
views
SSIS Package Generates Correct File Name in SSDT, but SQL Server Agent Job Uses Default Name
I have an SSIS package that generates a CSV output file with a dynamically generated name based on the current date and time. The expression for the file name is set in the FilePath variable within ...
0
votes
0
answers
68
views
What happens if a SQL server update job is still running at the end of the scheduled time? [duplicate]
I have an update statement I need to run on a table, however due to the size of this table the update takes an incredibly long time to run.
I want to create a SQL server job to run this update script ...
0
votes
1
answer
536
views
Get error trying to create SQL Server Agent Job with XMLA command
I am trying to run an XMLA command that kicks off an Xevent trace as a SQL Agent Job. (below)
The command works fine in SSMS as an XMLA query.
When I try to save this step as an SSAS Command in an ...
0
votes
1
answer
689
views
SQL Server Integration Package Conversion Error only when calling from job, not when executing in SQL Server Data Tools
Maybe somebody can provide assistance for the following question:
I have a SSIS package with Target SQL Server Version 2014. I am not 100% sure which version my target server is running, but it is at ...
0
votes
0
answers
56
views
Common property file for multiple SQL Server Jobs
In our project, we have a lot of SQL Server Jobs (Local SSIS package) and in all of them, we have some common properties.
We don't find a way to "place" these properties somewhere to be used ...
1
vote
1
answer
4k
views
Can I run SQL Server Job through Linked Server?
I have two SQL Server machines:
SqlServer-1
SqlServer-2
I have a job created on SqlServer-1 named RunExeFile.
SqlServer-2 can access SqlServer-1 through a linked server.
Can I start the job ...
0
votes
1
answer
977
views
Can't open properly a SSIS package based job from SSMS in Visual Studio
I need to understand what a certain job in SQL Server 2012 does. It's a job someone created and left the company before I started to work here, and nobody on my team knows what this job does also.
The ...
1
vote
1
answer
3k
views
ISServerExec.exe crash when executing from SQL schedule job
I have ETL packages that works fine in Visual Studio 2019
When we deploy and run it from SQL Server Agent, it gives the error below
Additional info: the package is set to "Encrypt sensitive with ...
0
votes
0
answers
899
views
A successfully failed SQL Server Agent job? - The statement has been terminated. Message 3621. The step succeeded
I have a SQL Server Job which has some steps include execution of store procedures. The job ran successfully. However, some steps which executes store procedure did not run fully as per my ...
0
votes
0
answers
950
views
Which "Run As" to choose in SQL Server Agent T-SQL job step
I have a SSIS package that I want to run in SQL Server Agent T-SQL job using Stored Procedure since I have a permission issue described in my other post:
Using Proxy to give SQL Server Agent windows ...
1
vote
1
answer
524
views
Running batch file which runs 2 other batch files from SQL Server job
I have this step in sql server job
AAA.bat content is this
call BBB.bat
call CCC.bat
BBB.bat and CCC.bat each run ETL packages.
When I run above step it throws error
BBB.bat is not recognized as an ...
1
vote
0
answers
432
views
SQL Server Agent Job executed but the log date show future time
I have a SQL Server(2014) Job scheduled run at "AM 11:00" on everyday.
I saw the job's log at "2020/01/08 AM 11:40", the Windows server's clock tool displayed right.
But I find out the job's last ...
0
votes
1
answer
813
views
Hanging SQL job step when running python executable created from pyinstaller
Summary:
I've setup a python script (simplified in this case, removing all ODBC/SQL statements) that creates two log files in a child directory. I then created a exe file off of this named TestApp....
0
votes
0
answers
562
views
What is background job queue in sql server? How to create a background job?
While exploring the SQL server I came up with following system tables:
sys.dm_exec_background_job_queue;
sys.dm_exec_background_job_queue_stats;
Official site tells that
It Returns a row for each ...
0
votes
1
answer
2k
views
SSIS Execute Process Task fails with SQL agent
I have a SSIS package with a Execute Process Task that runs an exe. All code and executables are located on the same server. The SSIS package runs inside the project but not when I upload to SSIS ...
3
votes
1
answer
2k
views
Special character in Sensitive SSIS Package Parameter String renders package invalid
I have a Sensitive String Parameter on an SSIS Package that is used to store a password for a remote server.
However, the Job Agent throws an error whilst configuring the Package Parameters of that ...
1
vote
1
answer
742
views
SQL Sever Agent Job Stop Failure if no file
I have a job in SQL Server 2014 that runs an executable which may or may not generate files. Afterwards the next step moves all the files generated to an SFTP site. Everything works if files exist. ...
0
votes
1
answer
429
views
Executing windows shell command involving a VB script via SQL Server Job Agent or Windows Scheduler
I am having a problem with execution of a shell command involving a VB script via a SQL Server Agent and also Windows Scheduler (I am trying to get at least one of these options to work).
The ...
0
votes
0
answers
260
views
Trying to update SVN using Powershell in a SQL Server Job as the Service account
I have a powershell script that I developed and can run fine manually. However when I put the script into a sql server job and attempt to run the following line...
SET-LOCATION "$NewTargetPath\"
...
0
votes
0
answers
288
views
SQL Server Jobs and it's steps completion duration on single and multiple server
I have enabled RSS on few SQL Server recently. I need detailed output of job with it's steps completion duration pre and post enabling RSS. If anyone have the script, please do share. Script for ...
4
votes
0
answers
1k
views
execute sql server agent job task in ssis error : Failed to lock variable"RunIs" for read access with error 0xC0010001
I am using SQL Server 2016 and SSIS. I have a package in which I am calling a sql server job.
My job have just one step as PowerShell command for transfering all files from one directory to another ...
0
votes
0
answers
89
views
Sql Server 2014 Stored Procedure blocked by Job
I Have a Sql Server 2014 Stored Procedure (SearchArticleByNumber) that I'm using for searching data and which works fine until Job schedule starts which job executes additional (five) stored ...
9
votes
3
answers
22k
views
How to make a SQL Server agent job step failure on purpose
I have a process and the first step is to check status of other process. If the other process is done I would want to run the rest steps and if not I would want to quit the job.
I have a table that ...
0
votes
1
answer
3k
views
SSIS send mail task doesn't run through SQL Server agent job
I have created SSIS package with Send mail task
It works (sends one email with multiple attachments) when I run SSIS package on SQL Server Data tools for Visual Studio
But when I run same package ...
1
vote
2
answers
281
views
How to remove part of previous string
I'm currently working on a SQL Server JOB file that contains the following code
@active_end_date = 99991231,
@active_start_time = 0,
@active_end_time = 235959,
@schedule_uid = N'59cbfb7d-67c7-...
0
votes
1
answer
41
views
Can we run job through SSIS packages in server1 which scheduled in server2?
Can we run job through SSIS packages in Server1 which scheduled in server2(that job is currently disabled in server 2)
Kindly give me suggestions.
0
votes
1
answer
188
views
Surface Area Configuration - component is turned off as part of the security configuration for this server
I'm getting this error when running a SQL Server job:
Description: Executing the query "EXEC Stgs.sp_SendEmail ?" failed with the following error: "SQL Server blocked access to procedure 'dbo....
1
vote
1
answer
402
views
Schedule importing flat files with different names into SQL server 2014
As I am a beginner in SQL Server and my scripting is not very polished yet. I need suggestions on the below issue.
I receive files from a remote server to my machine (around 700/day) as follows :
...
1
vote
1
answer
175
views
How to iterate through table for an sql job?
PerformanceReview
prID
reviewDate
passed
notes
successStrategy
empID
nextReviewDate
above is my table I am working with, my goal is to get the nextReviewDate check to see if it is within 7 days of ...
1
vote
1
answer
6k
views
Re-execute SQL Server job in case of failure
Currently I am creating a SQL Server job. My requirement is whenever the job fails, it needs to run one more time. Is it possible in SQL Server?
0
votes
1
answer
408
views
Issue with SQL Server Credential mapped to Network Service account
On SQL Server 2008 R2 Standard Edition, I created a credential TestCredential with identity as NT AUTHORITY\NETWORK SERVICE as explained here. Then I followed this article to create a proxy account ...
0
votes
0
answers
648
views
SQL Server Job - how to generate script for Alert System Settings
In our SQL Server 2008 Agent properties dialog box we have set an Alert System settings as shown below. But when we try to generate a script for that we get the following message - hence unable to ...
0
votes
1
answer
644
views
Which User will be invoking SQL Server Agent Job when using a Windows Task Scheduler to automate the Job to run daily?
I am using SQL Server 2008 to create a job to calculate some values from an external db and store to another db table. A task scheduler has been created for automating this to run daily and update ...
0
votes
1
answer
1k
views
sp_send_dbmail fails in SQL Server Agent Job
Could someone explain and resolve the following issue. Thanks.
I encountered this query issue when I run it in SQL Server 2012 on Windows Server 2012.
The query (@query) runs very well when it ...
1
vote
1
answer
360
views
Linux server: Send mail to my users
I am fairly new to creating server scripts and jobs that the server runs every day.
My problem is as follow:
I want to send an email to my users reminding them of a specific job they have to do.
My ...
0
votes
1
answer
630
views
SQL Server - send email task on job failure
we have a job that runs several times a day making incremental backups.
We have added a step 'Send email on Job failure' that uses T-SQL to send an email to the admins team if the first step (...
0
votes
1
answer
56
views
email notifications from SQL Server job
We want to set a profile in Database Mail on SQL Server 2008 R2 for all the developers in our team to receive notifications once an overnight job has completed.
Unfortunately, in the Notifications ...
3
votes
3
answers
4k
views
Get job that ran SQL query on UPDATE trigger
I am trying to create an audit trail for actions that are performed within a web application, SQL server agent jobs and manually run queries to the database. I am trying to use triggers to catch ...
2
votes
1
answer
7k
views
write to windows event viewer from sql server job
I am working with sql server 2012 and have some jobs set up on it to run at different times during the day. If the job fails I want to be alerted of such.
On the server I have some software the ...
19
votes
3
answers
84k
views
How to start SQL Server job from a stored procedure?
How can I create a stored procedure to start a SQL Server job?
0
votes
1
answer
1k
views
SQL Server Job Dependency
I have a job in SQL Server 2000 which runs every night and refreshes the data, I have another job which runs after the data refreshes and update some records. Both of these jobs are not connected to ...
0
votes
1
answer
2k
views
How to automatically export SQL Server Job logs when it finish
I created a SQL Server 2008 Job when runs everyday at a specific time. When the job finishes, I can manually Export the job log as shown in the link below:
http://www.websense.com/support/article/...
4
votes
1
answer
8k
views
How to catch the exit code of a CMDEXEC SQL Server Job?
The following SQL Server job always exits with return code 0 indicating success, when in fact it does not do its job, i.e. it does not delete "test.txt".
How can I catch the actual exit code (...
3
votes
2
answers
2k
views
SQL Server 2008 - Execute sp_start_job from Insert Trigger - Does the job run asynchronously?
I wish to use sp_start_job to start a job from within an insert trigger.
The table which the insert trigger is on only has a few inserts a day atm.
The point of doing this is so that the insert ...
0
votes
1
answer
3k
views
Accessing files on different server through SQL Server Job Agent
I have a SQL Server Job running on server X.
Now I have to delete the existing AS(Analysis Services) backup files on server Y and create a fresh backup again. I wrote the required code in a batch file ...
2
votes
1
answer
7k
views
How to resolve this error I am getting while running SQl Sever agent job?
A job, in which a proc is reading excel file using openrowset function and then exporting a file using bcp command. It was working perfectly until recently. When I run job it gives me this error:-
...
2
votes
3
answers
3k
views
How to schedule a database task?
Background: I created an application that measures a weight from a scale and saves the information in MS SQL server database.
In the database, I want to save a record for the actual weight for every ...