Archive for the ‘VS Team System’ Category

Data Dude - Project Variables not set in SQL scripts

Wednesday, July 25th, 2007

[Ed. - Question resolved. See Update at the end of the post] 

I am using Visual Studio Team Suite with the Database Professionals add on (”Data Dude”) - with SR1 installed. However, when I build the database project, I am not getting the expected results in the resulting omnibus .SQL script. As a result, I have to build the project, then manually edit the .SQL file, and deploy the script from the command line using SQLCMD.EXE — all of which is preventing me from automatically building & deploying with a single-click from the VS IDE (which I want to do).

Here are how I’ve set up the variables in my database project (click the image to enlarge):

Data Dude Project variables

Building the project creates a script with no “setvar: ” statements for the variables I’ve added to the project:

SET ARITHABORT, CONCAT_NULL_YIELDS_NULL, ANSI_NULLS, ANSI_PADDING, ANSI_WARNINGS, QUOTED_IDENTIFIER ON
SET NUMERIC_ROUNDABORT OFF
GO
:setvar DatabaseName "SIDW_LOCALDEV"
:setvar PrimaryFilePhysicalName "F:\SQL2005 DATA\SIDW_LOCALDEV.mdf"
:setvar PrimaryLogFilePhysicalName "F:\SQL2005 DATA\SIDW_LOCALDEV_log.ldf"

I expected (but did not see) the following lines as well:

:setvar SQLUserDWETL "DevDWETL"
:setvar SQLUserDWAudit "DevDWAudit"
:setvar SQLUserDWReader "DevDWReader"

These values are used in other scripts, such as this line in the “Post-Deployment” script “Permissions.sql”

GRANT SELECT ON OBJECT::[DW].[vDailyCalendar_dim] TO [$(SQLUserDWReader)]
GO

Are my expectations out of line, or should the “Build” command for the database project output a SQL file that contains the setvar statements?

Note - I’ve created a thread on microsoft’s forums to help track down a resolution. If one surfaces, I’ll be sure to note it here.

UPDATED - Turns out my expectations were incorrect. See the thread for the details. Basically if you deploy from the IDE, DataDude will pass the variable values to the deployment and you’re good to go. If you want to use the SQL script generated by a build, you’ll have to provide them there (basically doing what Data Dude does within the IDE). Many thanks to Gert Drapes for the prompt response.

DataDude SR1

Wednesday, July 25th, 2007

Data Dude SR1(EN) - (KB936612)

TFS - Event Subscription Tool

Tuesday, July 24th, 2007

http://blogs.vertigosoftware.com/teamsystem/archive/2007/02/08/Team_Foundation_Server_Event_Subscription_Tool.aspx

VS Live In San Francisco

Thursday, March 22nd, 2007

I will be at VS Live in San Francisco next week focusing on the Team System and SQL Server 2005 tracks. I’m most interested in getting ideas & hearing about others’ experiences with automated testing of SSIS ETL packages. If you’ll be there and are interested in such discussions, I’d be happy to meet up and talk further– just drop me a line in the comments or via email: tito/at/titoperez/dot/com. SSIS and (especially) VSTS are relatively new to me, and I’m part a nascent BI/DW project using both.

Of course, I’m still open to ideas from those who won’t be there, too.

roundup

Monday, March 19th, 2007

Joy Mundy webcast: Using SQL Server 2005 Integration Services to Populate a Kimball Method Data Warehouse


Performance Dashboard for Microsoft SQL Server, Part I

On the heels of the release of Service Pack 2 for MSSQL Server 2005 comes what will, perhaps, be the most warmly received Reporting Services “report pack” to date, the Performance Dashboard for Microsoft SQL Server (“Performance Dashboard Reports”). The Performance Dashboard Reports are a set of custom report files designed to be run from within SQL Server Management Studio.


Top 100 Most Influential People in IT

webcast: Designing A Data Warehouse: Part 1 Dimension Type briefly covers different dimension change typs (SCD Types 0,1,2,3) and inferred members

What makes an enterprise wiki?

Build Date Generators and Manipulate Date and Time Data in SQL


patterns & practices Visual Studio Team System: “insightful and practical guidance around using Microsoft Visual Studio Team System”