| Mike's profileFreeToDevBlogLists | Help |
|
November 10 Beware $ in MSBuild 1.0Almost a month since posting Beware % in MSBuild, I find myself having to post on a similar topic. Typically, $ is used all over the place in an MSBuild proj file, and in general you can use it without any cause for concern. An issue arises however, when you try to perform a recursive directory copy from an administrative share e.g. \\myserver\C$\myfolder.
<Project DefaultTargets="Prepare" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <ItemGroup> <SomeFiles1 Include="\\servername\d$\AFolder\**\*.*"/> <SomeFiles2 Include="\\servername\d%24\AFolder\**\*.*"/> <SomeFiles3 Include="\\servername\NewShare\**\*.*"/> </ItemGroup> <Target Name="Prepare"> <Copy SourceFiles="@(SomeFiles1)" DestinationFiles="@(SomeFiles1->'c:\SomeFolder1\%(RecursiveDir)%(Filename)%(Extension)')"/> <Copy SourceFiles="@(SomeFiles2)" DestinationFiles="@(SomeFiles2->'c:\SomeFolder2\%(RecursiveDir)%(Filename)%(Extension)')"/> <Copy SourceFiles="@(SomeFiles3)" DestinationFiles="@(SomeFiles3->'c:\SomeFolder3\%(RecursiveDir)%(Filename)%(Extension)')"/> </Target> </Project> SomeFiles1 – all files will all be copied to SomeFolder1 with no directory structure maintained. This is not expected behaviour ! SomeFiles2 – the files will be found and the directory structure will be maintained. This is expected behaviour . SomeFiles3 – this is a new share mapped to the server path and behaviour will be as for SomeFiles2. This is expected behaviour . Hopefully you read this post before being bitten like I was......cheers FTD. November 04 SQL Query Analyzer 2005No such thing unfortunately. If you have moved to SQL server 2005, your world of Enterprise Manager and SQL Query Analyzer has been replaced with SQL Server Management Studio (SSMS). This is a great new IDE, but now I need to go through several clicks just to write a query...
If the settings weren't correct on the Connect dialogue, then you are looking at up to 10 clicks before you can start writing a query! So, the out the box experience seems to be flawed and geared for RSI or more sales of ergonomic mice. All is not bad though. When you click on the shiny 'SQL Server Management Studio' icon, you are launching an executable called SqlWb.exe. This appears to be a legacy of the tools original name 'SQL Work Bench'. If you run this exe from the command line with /? you will see that it supports a few command line switches.
The first switch to catch my attention was -nosplash. I'm sure many usability experts will tell me that it is used to make an application response appear faster, but in most cases I've found nosplash == quicker startup. This is one of those cases. So, we're closer to Query Analyzer ... Try the following.
Using the switches in #3, I now have single click access to 'Query Analyzer' , and it starts up a whole lot quicker than going the normal route. You'll still need to connect to the Object Explorer if you forget some of your schema, but for the quick query, this new shortcut is more efficient. |
|
|