Login or Sign Up to become a member!
LessThanDot Sit Logo

LessThanDot

Data Management

Less Than Dot is a community of passionate IT professionals and enthusiasts dedicated to sharing technical knowledge, experience, and assistance. Inside you will find reference materials, interesting technical discussions, and expert tips and commentary. Once you register for an account you will have immediate access to the forums and all past articles and commentaries.

LTD Social Sitings

Lessthandot twitter Lessthandot Linkedin Lessthandot friendfeed Lessthandot facebook Lessthandot rss

Note: Watch for social icons on posts by your favorite authors to follow their postings on these and other social sites.

Your profile

Search

XML Feeds

Google Ads

« SSMS Tools PACK, Something Every SQL Server Developer That Uses SSMS Should Have InstalledSQL Server StreamInsight CTP2 Available For Download »
comments
Rate Post:
submit to reddit Digg!FacebookDotnetkicks

In the Scripting All The Jobs On Your SQL Server Instance Into Separate Files By Using SMO post I showed you how you can use SMO to script all the jobs into separate files. But what if you want to have them all in one file? You can of course use SMO for that or you can do it from SSMS. Most people don't know about this and that is the reason for this little post.

You know that you can not select more that one job if you expand the job folder, but you can if you are in detail view

select the job folder and press F7

So navigate to the job folder, press on it and hit the F7 key or from the toolbar: view-->Object Explorer Details

That will bring up a view like the following

Object Explorer Details

Now you can select the jobs that you want, right click-->Script Job as-->CREATE to-->File and you specify the location and that is all.

Hopefully this will be handy for you.




*** If you have a SQL related question try our Microsoft SQL Server Programming forum or our Microsoft SQL Server Admin forum

About the Author

User bio imageDenis has been working with SQL Server since version 6.5. Although he worked as an ASP/JSP/ColdFusion developer before the dot com bust, he has been working exclusively as a database developer/architect since 2002. In addition to English, Denis is also fluent in Croatian and Dutch, but he can curse in many other languages and dialects (just ask the SQL optimizer) He lives in Princeton, NJ with his wife and three kids.
Social SitingsTwitterFacebookLinkedInHomePageLTD RSS Feed
3332 views
submit to reddit Digg!FacebookDotnetkicks

Comments and Feedback

3 comments

Comment from: Walo [Visitor]
*****
Could not find window myself - great solution
11/02/09 @ 10:14
Comment from: chandupatla sunil reddy [Visitor] Email
can you please create t sql program to script out all jobs
in a server to share location or drive
04/15/10 @ 22:27
Comment from: chandupatla sunil reddy [Visitor]
please replay me on this
04/21/10 @ 00:29

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)