I have a database project in my solution and a database imported from windows azure via SSMS "Import data-tier app..." option. When using schema compare, the comparison shows system "service brokers" (message types, queues, etc.) in the delete section. When I apply the update, everything works, but these system service brokers are not deleted and appear again and again.
I suppose that it is not possible to delete them, but is there a possiblity to ignore them in the schema compare?
If you click on the settings icon (looks like a cog on the compare tool toolbar) and then navigate to the Object Types tab you should be able to select/deselect the object types you wish to include/ignore in your comparison.
The icons in the Object Types tab match those in the comparison so it should be pretty easy to ignore what you wish to ignore.
Related
I have TFS 2012 installed. I want to change work item types, e.g. from bug to test case or something else. How can I do it? Maybe configure process template or tfs somehow? I have admin permissions, but don't know what and where to change.
I've already tried to export these items to Excel, but "Work item type" field in exported file is read-only.
You cannot change a work item type; however, you can create a copy of a work item to another type through the web access or Visual Studio. See this blog post for detailed instructions.
VS 2010 had a way to save Schema Compare options so that they will be applied to all schema compares.
VS 2012 seems to only persist the options for a single compare; once I close the window, all my options revert back to defaults.
How do I persist SQL Schema Compare options in VS 2012?
p.s. I ended up saving a Schema Comparison (.scmp) with my settings, and now I just open that file instead of creating a "New Schema Comparison". It's a shame that the feature from VS2010 did not make it to VS2012.
Take a look at this MSDN thread:
http://social.msdn.microsoft.com/Forums/en-US/ssdt/thread/3110809b-fa51-485e-91cb-4f530f84c924
There are no global settings, but you can save a comparison as an
.scmp file, which includes your comparison options. Also, if you
create a Schema Compare file from the SQL menu (so it has no selected
source or target), set the options you want and then save the file,
you can create a template for future comparisons.
I am attempting to add a connection to an Oracle database through Server Explorer. The 'Test' Connection' is successful, however whenever I go to view the list of tables / schemas, I can only see the one associated with my login.
I realise this sounds silly, but when I use the same login/password through Toad for Oracle, I am still allowed to browse "All Schemas" to find the tables I want.
Is this possible through Server Explorer? Or do I need to find a specific login for the schema I want to access?
Solution (just so it's here and not just on the OTN forums)
Right-click on connection in Server Explorer
Choose filters
Select the "Dispalyed Schemas" row in the property grid (it should be selected by default)
In the Property/Condition/Value fields, click the "..." button for Value
Pick any schemas you want to see and click Ok.
Conversely, instead of using the dialog that appears after clicking the "..." button, you can list the schemas separated by commas in the Value textbox.
Oracle's way of dealing with users and schemas is different from SQL Server's. So I suspect the default Visual Studio behaviour won't work properly with Oracle.
Have you installed the free Oracle Developer Tools for Visual Studio? Find them here. If you do that then you can manually add the other schemas to the filter of your main connection. I found instructions in this OTN forum thread:
"highlight the connection node you
want to moidy and choose filters or
right click on the specific connection
node and choose modify then click on
the filters tab to modify the
filters."
I agree this is clunky, and it should be done automatically. I guess there's a limit to how VS can be extended.
Oracle IDE to visually = wizard (not writing sql) create views? any names? (eg like toad)
SQL Server Management Studio = can create views visually for sql server what is same for oracle
Have you tried SQL Developer?
Once installed and connected - try the following.
1) Right click on Views icon
2) New View
3) Click Advanced check box
4) Interface appears which allows you select tables, where clauses etc.
EDIT: Just thought I would point out that the above allows the use of a "wizard" type interface to create a view. Not sure if that meets your requirement of "Visual"
Want a purley visual experience? Try DeZign for Databases by Datanamic. I haven't purchased the tool, but after an initial evaluation I'm wanting it. It lets you drag and drop items onto a visual designer and then generates the DDL for you.
A little late, by here's an online designer - WWW SQL Designer
Its mainly for MySQL but nevertheless pretty useful
Is there any sort of plug-in or tool available for Visual Studio 2008 to alphabetize methods? Ideally I'd like a tool that will alphabetize a selection, or specified type (i.e. only methods, not member variables), either automatically or on-demand.
While Resharper has many cool features it has a large impact in CPU and I/O usage and can be very complicated to use. It is also only available under commercial licensing unless you qualify for a few very specific free use licenses.
Try CodeMaid. It is free for commercial use and has a much lower performance overhead. I find it easy to use and it is very good for alphabetizing methods.
To sort your file, open the file via solution explorer:
Right click the open file
Code Maid menu (likely near the top of the right click menu)
Click Reorganize Active Document
Alternatively, using the default CodeMaid hotkeys CTRL+M,Z to sort your active file.
Resharper has a Type Members Layout, which can order members by type, accessibility and alphabetically as well.
You can also take a look into Ora , which presents a pane in visual studio that is ordered (even though your source may not be). Link's dead.
The following answer goes much further than the OP asks, because I believe, that sorting methods just by name is far not enough for most programmers. Mostly you want your methods, constructors, fields, event handlers, and interface implementations to be seperated from each other (i.e. through regions), and sorted by various criteria.
For this purpose I tried NArrange, Regionerate, and others, but I've found them not intuitive to use. So ReSharper became the tool of my choice.
As already mentioned by #DavidN, ReSharper can sort your class members (fields, constructors, methods, delegates) by name, accessibility, type, readonly, etc... You can also surround specific members with regions. What I like the most is the ability to group interface members (e.g., #region IDisposable with void Dispose() method in it) and methods that handle an event.
ReSharper provides both - an easy way to configure and trigger the sorting of class members.
Configuring the layout
Create a XML file within Visual Studio and copy-paste the default type member layout (ReSharper Options > Languages > C# > Type Members Layout) into that file. Download the latest XSD schema. Add the schema file to Visual Studio's schema files (Menu > XML > Schemas... > Add). You should be able now, to edit the XML file with IntelliSense support.
Triggering the reorder
If you use the Visual Studio keyboard scheme (ReSharper Options > Visual Studio Integration) and press Ctrl+E,F for Silent Code Cleanup. A dialog will pop up, where you can select a Code Cleanup setting. For this setting you should check Reorder type members. The second time you press the shortcut, ReSharper will automatically reorder your class members.
1: ReSharper Type Members XSD Schema
For C# you can use Regionerate to organize your code. You can create a template that simply organizes your code but doesn't use regions.
You can create such a function yourself using Devexpress' free DXCore product (the same extensibility framework used to create CodeRush).