Trying to export SQL Objects via DBAtools in Powershell.
Get-DbaAgentJob -SqlInstance 'TestServer01' -Job 'mydatabase-daily-backup' | Export-DbaScript -FilePath C:\temp\mydatabase-daily-backup.sql
The same script working fine and exporting the job details.
But, not working on a few servers, and returns the below error/warning
> WARNING: [06:05:42][Get-DbaAgentJob] Failure | The value's length for key 'Data Source' exceeds its limit of '128'.
Asked by Prakash
(1 rep)
Sep 13, 2023, 12:12 PM
Last activity: May 5, 2025, 12:08 AM
Last activity: May 5, 2025, 12:08 AM