dbTalk Databases Forums  

Generating script to individual files

microsoft.public.sqlserver.tools microsoft.public.sqlserver.tools


Discuss Generating script to individual files in the microsoft.public.sqlserver.tools forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Alex
 
Posts: n/a

Default Generating script to individual files - 05-06-2009 , 03:49 PM






Is there a way to generate the files so that they won't contain the "type"?
For example, generating a stored procedure script will result in
sp_name.storedprocedure.sql. I want to generate sp_name.sql.

Thanks

Reply With Quote
  #2  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Generating script to individual files - 05-07-2009 , 05:37 PM






Alex (alexdinu1 (AT) hotmail (DOT) com.(donotspam)) writes:
Quote:
Is there a way to generate the files so that they won't contain the
"type"? For example, generating a stored procedure script will result in
sp_name.storedprocedure.sql. I want to generate sp_name.sql.
No, you would have to find some batch-renaming tool to post-process the
the file names.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx



Reply With Quote
  #3  
Old   
Ray
 
Posts: n/a

Default RE: Generating script to individual files - 06-09-2009 , 02:38 PM



Hi Alex,
I also find this irritating but it is only one of serveral issues I have
with the way SSMS generates scripts.

I use a tool called "Bulk Rename Utiility" that works pretty well. I
generate the files with the default names and then use the tool to change
them to Create_xxxx.sql.


http://www.bulkrenameutility.co.uk


--
Ray Herring


"Alex" wrote:

Quote:
Is there a way to generate the files so that they won't contain the "type"?
For example, generating a stored procedure script will result in
sp_name.storedprocedure.sql. I want to generate sp_name.sql.

Thanks

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.