Is there a way to tell SQL Prompt ignore a certain schema when reformatting code
manjuke
Posts: 4 Bronze 2
in SQL Prompt
Consider the following syntax:
I have setup the prompt to use aliases and to add schema during the code format. In my database there two objects with the same name but having two different schemas.
Any help or suggestion is highly appreciated.
Thanks & Regards
Manjuke
SELECT * FROM APP_SETTINGS
I have setup the prompt to use aliases and to add schema during the code format. In my database there two objects with the same name but having two different schemas.
- DM.APP_SETTINGS
- dbo.APP_SETTINGS
SELECT * FROM DM.APP_SETTINGS AS A
Any help or suggestion is highly appreciated.
Thanks & Regards
Manjuke
Tagged:
Answers
Thanks for the details. But actually, I don't want to stop this schema from loading. I need to load the schema to the IntelliSense, but only I need to exclude it when I am formatting the code.
I don't think we have such an option at this point. Hence I suggest that it would be good if we have such feature, which is to choose the object if there are multiple objects having same name with different schema during the code formatting.
For the time being, I will try an alternate workaround.
Thanks & Regards
Manjuke
Manjuke
http://www.manjuke.com