To make this work you will be unloading and editing the project definition file (it is an xml file). I strongly suggest you have your project / solution in some sort of source code control system in the event you make a mistake and are unable to open the file.
Wednesday, June 8, 2016
Continuous Integration Visual Studio SSDT with Conditional Output
To make this work you will be unloading and editing the project definition file (it is an xml file). I strongly suggest you have your project / solution in some sort of source code control system in the event you make a mistake and are unable to open the file.
Monday, May 23, 2016
New GIT Repo and code status Visual Studio 2015
For those of you using Visual Studio 2015 with SSDT and are managing your code with GIT a recent update brought a useful, but not easily noticed feature into the mix. You can now find a status bar located on the bottom of the window that provides some useful information at a glance. You can now see the repository name, the current branch name, number of pending updates to your project and the push status and count. This eliminates the need to switch to the Team Explore tab and navigate the menus to check stats and the like. Thanks Microsoft!Here you can see that I am connected to the HomeAuto repository and currently working on my development branch where I have 3 pending file changes.
I am not aware of the exact update where this was introduced but for the record I am running version 14.0.25123.00 Update 2.
Microsoft is doing a great job in integrating Visual Studio with various versions of source control products - particularly GIT - I.M.H.O.
Friday, November 13, 2015
Modifying Default Template For Stored Procedures in Visual Studio 2015 SSDT
Friday, December 20, 2013
Database Deployments with SSDT–Data File Sizing
I recently ran into an issue when migrating a database from DataDude to SSDT in Visual Studio 2012. No matter how hard I tried I could not get the deployment, actually I should say Publish now, to honor the sizing that I defined. For example: I defined a data file that I assigned to PRIMARY as the only data file for this database. I made sure to add the File Size and File Growth properties like a good DB guy should, yet when I generated the create script they were just not there. Here is what I included in the project
ALTER DATABASE [$(DatabaseName)]
ADD FILE
(
NAME = [MyApplication],
FILENAME = '$(DefaultDataPath)$(DefaultFilePrefix).mdf', SIZE = 50MB , FILEGROWTH = 100MB
) TO FILEGROUP [PRIMARY]
However here is what the publish output looked like:
CREATE DATABASE [$(DatabaseName)]
ON
PRIMARY(NAME = [MyApplication], FILENAME = '$(DefaultDataPath)$(DefaultFilePrefix).mdf')
Where are my file settings? How is SSDT ignoring my commands and why would it be doing this? As it turns out this is expected behavior and it is controlled by a couple of settings.
Open the publish file within SSDT and click on the Advanced settings button. Scroll down to find “Script File Size” option which is OFF by default. This setting controls what SSDT does with the 3 properties exposed when creating a data or log file; Size, Maxsize, and Filegrowth. Checking this value will cause SSDT to script those properties on publish.
Now there are a few reasons why this is set to be off by default and you can see the explanation here.
The main reason is that by default you would not normally want a production sized database on your Sandbox/ local development machine, makes perfect sense and this is a great option.
Of course during an automated build process you should pass in this Script File size property set to TRUE so SSDT and your build process will honor your file size settings – better still make the sizes properties so you dynamically set them for each build and target!
Monday, October 21, 2013
Changing save location for draft posts – Windows Live Writer
While stating out using Windows Live Writer -http://www.microsoft.com/en-us/download/details.aspx?id=8621 – a tool that allows you to create drafts of your blog posts without knowing HTML in an easy to use client side application – I immediately found a need to change where my drafts were saved. The goal was to create drafts and save them to a shared location where I could easily review them later. The first location that came to mind was my Dropbox folder, unfortunately there are no built in options for changing this. I tried to do the registry hack found here but was unsuccessful so I continued my search. I ended up by finding a solution that works by using “Symbolic Links” http://en.wikipedia.org/wiki/Symbolic_link
Check out the solution here: http://www.cto20.com/post/Tips-Tricks-Customize-the-Location-of-Windows-Live-Writere28099s-e2809cMy-Weblog-Postse2809d-Folder.aspx
Thank you Antonio!
The First Post with Live Writer
Here is the first post using Live Writer – http://www.microsoft.com/en-us/download/details.aspx?id=8621 -a tool for composing blog posts in an easy client side tool. Why am I trying out Live Writer? Well for starters I wanted a way to write a post and save it for review later. I find that I actually enjoy reviewing and editing things, from code snippets, designs, even online blog posts. Quickly writing content and storing it away for later in my online blog just did not seem easy and I find that actually submitting a post triggered a mental button in my head to fire that said “I am done with this…move on”. The ability to review what I write is important. For starters it will limit the emotional reaction posts that can get me into trouble and reviewing for correct content is never a bad thing.
