Solved

remove space on sql job name

Posted on 2014-02-16
2
207 Views
Last Modified: 2014-02-17
Hello,

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

select distinct name from msdb..sysjobs

Thanks
0
Comment
Question by:bibi92
2 Comments
 
LVL 19

Expert Comment

by:regmigrant
ID: 39863595
select distinct substitute(name," ","") from msdb..sysjobs

syntax is SUBSTITUTE(<text>, <old_text>, <new_text>, <instance_num>)
0
 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 500 total points
ID: 39863859
Is this what you mean:
SELECT DISTINCT
        REPLACE(name, ' ', '')
FROM    msdb..sysjobs
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now