Red Gate forums :: View topic - Snippet Manager
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Prompt Previous Versions
SQL Prompt Previous Versions forum

Snippet Manager

Search in SQL Prompt Previous Versions forum
Post new topic   Reply to topic
Jump to:  
Author Message
delux



Joined: 28 Jan 2010
Posts: 9

PostPosted: Tue Sep 07, 2010 9:01 pm    Post subject: Snippet Manager Reply with quote

If I try to add a snippet titled "prn" (without quotes), I get an error message below. However, if I change the name it works fine.

SQL Prompt cannot save this snippet to the folder:

C:\ Users\<profile>\AppData\Local\Red Gate\SQL Prompt 4\Snippets

Check that the folder is not read-only, or that it has not been deleted or renamed.
Back to top
View user's profile Send private message
CodantiM



Joined: 29 Jun 2007
Posts: 182

PostPosted: Wed Sep 08, 2010 5:29 pm    Post subject: Reply with quote

PRN is a reserved file name in DOS/Windows that references your printer, so I suspect that is the problem.

I would have though having the ".sqlpromptsnippet" extension would have prevented the problem, but I guess not.

There are a number of other reserved names, for example COM1, LPT1, etc. that can't be used.
Back to top
View user's profile Send private message
delux



Joined: 28 Jan 2010
Posts: 9

PostPosted: Wed Sep 08, 2010 5:32 pm    Post subject: Reply with quote

Wow, I guess I've just never tried to name something that. I just tried to create a file prn.txt and it did not work. Good catch!

Thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group