The length of the device name provided exceeds supported limit (maximum length is:259) in sql server backup  job is getting failed due to large name

vishal more
vishal more used Ask the Experts™
on
The length of the device name provided exceeds supported limit (maximum length is:259) in sql server backup  job is getting failed due to large name
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Vitor MontalvãoIT Engineer
Distinguished Expert 2017

Commented:
I guess you're creating the name dynamically, right?
Can you post the algorithm you're using to create the dynamic backup file name?

Author

Commented:
we have a maintenance plan created on SQL server via MP only job is executing
IT Engineer
Distinguished Expert 2017
Commented:
I see. That task creates dynamic backup up file names.
What's the main path? Maybe the length for the folder and subfolder names is too big already and it's time to move it to a root path, something like D:\SQLBackup or so. This will guarantee shorter lengths for the path.
Vitor MontalvãoIT Engineer
Distinguished Expert 2017

Commented:
Recommendation to close this question by accepting the above comment as solution.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial