?
Solved

remove space on sql job name

Posted on 2014-02-16
2
Medium Priority
?
214 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 2000 total points
ID: 39863859
Is this what you mean:
SELECT DISTINCT
        REPLACE(name, ' ', '')
FROM    msdb..sysjobs
0

Featured Post

Get MySQL database support online, now!

At Percona’s web store you can order your MySQL database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card.

Question has a verified solution.

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

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
I have a large data set and a SSIS package. How can I load this file in multi threading?
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Suggested Courses

752 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