Visual Studio 2010: How to change stored procedure template - visual-studio-2010

How does one change the stored procedure templates for Visual Studio in 2010 2008 database projects? I've tried changing the templates in C:\Program Files\Microsoft Visual Studio 10.0\Common7\Tools\Templates\Database Project Items. This doesn't seem to affect the stored procedures created from the Add Item wizards in the database project. Am I missing something or does this method of changing stored procedure templates not work anymore? Thanks in advance.

I know it's not the exact answer you're after, but as a workaround you can edit code snippets at C:\Program Files\Microsoft Visual Studio 10.0\VSTSDB\Snippets\1033\Stored Procedure
When you add a new stored proc, remove the default code, right click in the code pane, and select "insert snippet".
I'll keep searching though for how to edit the new item templates though, as it's driving me nuts.
EDIT:
I kept searching, and found it:
C:\Program Files\Microsoft Visual Studio 10.0\VSTSDB\Extensions\SqlServer\Items

create a project using the existing template.
edit it the way you want.
export the new template.
http://msdn.microsoft.com/en-us/magazine/cc188697.aspx

For Visual Studio 2015 you will find the SQL templates in this location:
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\SQLDB\Extensions\SqlServer\Items

Related

Error using "Add Table" in Query Designer on created Report Server Project in VS2019

I right click in Query Designer and select "Add Table..." then get the following error dialog stating: "Could not find any resources appropriate for the specified culture or the neutral culture. Make sure 'Microsoft.VisualStudio.Data.Providers.SqlServer.SqlObjectSupport.xml' was correctly embedded or linked into assembly 'Microsoft.VisualStudio.Data.Providers.SqlServer' at compiled time, or that all the satellite assemblies required are loadable and fully signed."
I am able to use a stored proc but not a table entry.
Anyone have any ideas?
This is a known issue on visual studio 2019 version 16.11.1
you can download the fixed file Microsoft.VisualStudio.Data.Providers.SqlServer.zip
and copy it to:
Visual Studio 2019 Community
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE
Visual Studio 2019 Enterprise
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE
Original post
Edit: Fixed in version 16.11.2

Where can I find the natvis schema definition (for creating VC++ debugger visualizers)?

Various online sources tell me I can find it # %VSINSTALLDIR%\Xml\Schemas\natvis.xsd.
But I have not been able to find it in the said path. I have checked multiple VS2010 and VS2012 installations.
Can anyone paste the schema definition here?
Any additional documentation would be awesome
Hans Passant commented with the right answer, but it's not immediately obvious from his posting why you (or I) originally couldn't find it, which is:
The natvis XSD isn't found in \Schemas, but in \Schemas\1033.
You have to dig one level deeper to find it, because apparently Microsoft thinks it's code-page-localized or something. Anyway, here's where I located it in my copies of Visual Studio:
Visual Studio 2012:
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Xml\Schemas\1033\natvis.xsd
Visual Studio 2013:
C:\Program Files (x86)\Microsoft Visual Studio 12.0\Xml\Schemas\1033\natvis.xsd
Also, for what it's worth, the URL that Microsoft provides for the schema, http://schemas.microsoft.com/vstudio/debugger/natvis/2010, is a 3xx redirect as of this writing, so don't bother looking there.
Visual Studio 2017:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Xml\Schemas\1033\natvis.xsd

Visual Studio 2010, xsl:fo intellisense

Is there any way to activate intellisense for xsl:fo documents? Writting all that tags is horrible, and I couldn't find any solution on my own.
I know that I could install another editor, but I've already get used to VS.
You need to add the FO schema/DTD C:\Program Files (x86)\Microsoft Visual Studio 9.0\Xml\Schemas. It is located at the link in the page http://www.xmlpdf.com/faq.html#13. This will allow you to add intellisense for FO markup.

iBatis schemas not working in Visual Studio 2010

iBatis comes with three schema files that provide intellisense to VS.Net.
According to the iBatis help docs, the location should be this:
C:\Program Files\Microsoft Visual Studio 10.0\Common7\Packages\schemas\xml
or this if you have x64 installed:
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Packages\schemas\xml
They list two other alternatives, but neither of them seem relevant to 2010.
No dice so far. Is there a different schema folder for 2010? I'm sure I'm write on top of it.
The new MyBatis website doesn't have any docs that mention it.
Ok, I'm an idiot. I figured it out. The right location is:
C:\Program Files\Microsoft Visual Studio 10.0\Xml\Schemas
or this if you have an x64 box:
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Xml\Schemas
VS 2010 has that new nifty Xml Schemas dialogue box built right in. After I found that, the path was obvious.

How do I alter Database Item templates in VS 2010?

I'd like to alter the "New Stored Procedure" template in VS 2010 so that it checks for the existence of the stored proc, deletes it if it exists, then does the Create.
Where do I find that template in VS 2010? It seems like it was easy in previous versions to just alter the template.
I found a template in "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools\Templates\Database Project Items", but that is not the one the IDE is using. (That one, in fact, matches what I want to do. Probably moved over from VS 2008 during the upgrade.)
I can't find a plausible candidate under "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplates"
Any ideas?
Answered here: Visual Studio 2010: How to change stored procedure template.
Have you looked in My Documents\Visual Studio 2010\Templates\ItemTemplates
Try
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplates
or
C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplates if you're NOT on a 64bit machine.

Resources