Solved

remove space on sql job name

Posted on 2014-02-16
2
210 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SQL - format decimal in a string 5 38
TSQL Challenge... 7 35
SQL Server 2008 R2, need a pivot/cross tab query... 4 25
HTML <font style="color:red"> 9 29
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

789 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