• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 222
  • Last Modified:

remove space on sql job name

Hello,

How can I modify the following query for remove space in a job name ?

select distinct name from msdb..sysjobs

Thanks
0
bibi92
Asked:
bibi92
1 Solution
 
regmigrantCommented:
select distinct substitute(name," ","") from msdb..sysjobs

syntax is SUBSTITUTE(<text>, <old_text>, <new_text>, <instance_num>)
0
 
Anthony PerkinsCommented:
Is this what you mean:
SELECT DISTINCT
        REPLACE(name, ' ', '')
FROM    msdb..sysjobs
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now