by jfisch
18. September 2009 20:26
I thought I'd put a little tutorial together on how to find my site within SQL Books Online and Visual Studio Help, to hopefully make my site more accessible and more helpful to those who you use it regularly.
First, you need to setup BOL or VS Help to utilize online help as the primary resource. When starting up BOL or VS Help for the first time you're prompted with the below dialogs, simply make the "Online" selections.


Then from within BOL or VS Help, click Search and enter your search term. Here I've used the term 'query method' within SQL BOL to search for the sql xml data type query method.

After opening the search topic, browse to the bottom of the MSDN topic and you can see if I've written any particular community content for that particular MSDN article.

Simply click my blog link and you'll be home sweet home!
If you'd like to request I make any particular community content samples, examples, etc you're welcome to post the MSDN article as a comment for this post and I'll see what I can do it. The same applies for Visual Studio. If you already have BOL/Visual Studio running, then you should review your Help settings in Tools->Options->Environment->Help->Online (SSMS and VS). Make sure to have "Try online first, then local" selected and reorder your search providers with MSDN Online at the top.
HTH,
Jeff
by jfisch
12. August 2009 05:47
I've always been frustrated when having retrieved a Visual Studio project that's read only. So, today I decided to fix the problem once and for all and create a simple batch file that clears the RO flags necessary to successfully build. I know I'm not the only one who's experienced this, so here you go. Let me know if I've over looked any file extensions and I'll add to the list. Just stick the contents below (or download the file below) into a batch file and execute it at the command prompt like the provded example.
attrib -r /s %1*.exe
attrib -r /s %1*.exe.manifest
attrib -r /s %1*.dll
attrib -r /s %1*.pdb
attrib -r /s %1*.xml
attrib -r /s %1*.resources
attrib -r /s %1*.FileListAbsolute.txt
attrib -r /s %1*.txt
attrib -r /s %1*.cache
FOR /F "eol=; tokens=* delims=, " %%i in ('dir/b/s/ad %1*Debug') do attrib -r -h /s %%i\*.*
Example execution: Buildable.bat C:\Temp\BrokenBuild\
Buildable.bat (325.00 bytes)
HTH,
Jeff
by jfisch
7. August 2009 04:10
This particular issues appears when you F5 (or Debug->Start Debugging) your web application or website to begin debugging your website. The following message appears.

The first step to resolve this issue is to verify the Local IIS Web Server location you're attempting to debug. By right-clicking your project within Visual Studio and click Properties, then navigate to the Web tab of your project properties. You'll notice under the Server section of the interface your selection of Use Local IIS Web server and the coresponding Project Url. It should appear as such:

The solution within IIS 6 is to open IIS Manager within Administrative Tools, right click the website corresponding to the Project Url within Visual Studio and click properties. This particular error implies that integrated Windows Authenticatin is not enabled within IIS, so navigate to the Directory Security tab, click the Edit button under Authentication and access control
and ensure that the Integrated Windows Authentication checkbox is selected, click OK through the dialog boxes and retry.

HTH,
Jeff
by jfisch
29. June 2009 11:43
Back again on the performance bend,
While developing a tool that was to output a significant amount of messaging from a stored prcoedure I had decided to utilize SQL's xml dml statements to incrementally build xml output that was to be handed back via an XML type OUTPUT parameter from the stored procedure. This appeared, at first glance, to be a pretty familiar concept just adding some single elements to xml containing a message type and message text, here's an example of the proposed xml output.
<root version