Search results matching tags 'sql server' and 'Visual Studio'http://sqlblog.com/search/SearchResults.aspx?o=DateDescending&tag=sql+server,Visual+Studio&orTags=0Search results matching tags 'sql server' and 'Visual Studio'en-USCommunityServer 2.1 SP2 (Build: 61129.1)Connected development in SSDT versus SSMShttp://sqlblog.com/blogs/jamie_thomson/archive/2013/03/19/connected-development-in-ssdt-versus-ssms.aspxTue, 19 Mar 2013 16:28:00 GMT21093a07-8b3d-42db-8cbf-3350fcbf5496:48314jamiet<p>When you install the database projects template of SSDT you get SQL Server Object Explorer (SSOX) installed as well. SSOX is a pane within Visual Studio and is the main enabler of the Connected Development experience that the SSDT team have attempted to provide.</p> <p><a href="http://sqlblog.com/blogs/jamie_thomson/SNAGHTML15dc3f62_18DB391E.png"><img title="SNAGHTML15dc3f62" style="border-top:0px;border-right:0px;border-bottom:0px;border-left:0px;display:inline;" border="0" alt="SNAGHTML15dc3f62" width="335" height="118" src="http://sqlblog.com/blogs/jamie_thomson/SNAGHTML15dc3f62_thumb_0C6D15F5.png"></a></p> <p>SSOX provides some really cool capabilities that are not in SQL Server Management Studio (I hope to blog about them in the near future). In theory these capabilities make it possible for a database developer to spend all their time in SSDT (i.e. Visual Studio) thus making SSMS a pureplay DBA tool (this does of course depend on your definition of both a database developer and a DBA, but I’m not getting into that debate here).</p> <p>With that in mind I have spent a few days trying to work without SSMS, preferring to live wholly inside Visual Studio instead. By and large I was able to do everything I needed to do from within Visual Studio however there were a few nuances about the experience that kept pushing me back to SSMS, I detail those nuances below.</p> <p>&nbsp;</p> <hr> <h3>Server groups</h3> <p>SSOX combines the functions of SSMS’s Object Explorer and Registered Servers pane. I don’t mind either way of working but it does mean that there is no ability to group servers in SSOX like you can in the Registered Servers pane</p> <p><a href="http://sqlblog.com/blogs/jamie_thomson/image_568820DA.png"><img title="image" style="border-left-width:0px;border-right-width:0px;border-bottom-width:0px;display:inline;border-top-width:0px;" border="0" alt="image" width="244" height="97" src="http://sqlblog.com/blogs/jamie_thomson/image_thumb_4E907E78.png"></a>&nbsp;<a href="http://sqlblog.com/blogs/jamie_thomson/image_0977B142.png"><img title="image" style="border-left-width:0px;border-right-width:0px;border-bottom-width:0px;display:inline;border-top-width:0px;" border="0" alt="image" width="244" height="230" src="http://sqlblog.com/blogs/jamie_thomson/image_thumb_6C8E8C6C.png"></a> </p> <h3>F6</h3> <p>In SSMS I regularly use the F6 keyboard shortcut to jump between the query, results &amp; messages panes of a query window. No such keyboard shortcut exists in SSDT and they’ve already canned <a target="_blank" href="https://connect.microsoft.com/sqlserver/feedback/details/780990/ssdt-f6-to-move-between-panes-in-a-query-window#tabs">my request on Connect to get this fixed</a> (even though it laughably has status “closed as fixed”).</p> <p>&nbsp;<i>UPDATE: See the comments below where Brett Gerhardi informed me of a different keyboard shortcut that does the same thing as F6. Actually its not quite the same, if you have multiple resultsets in your results pane then the behaviour is slightly different to F6 in SSMS - but that's not an issue you'll hot frequently.</i></p> <h3>Change Connection</h3> <p>The context menu in SSMS provides the ability to change a connection as well as connect and disconnect:</p> <p><a href="http://sqlblog.com/blogs/jamie_thomson/image_72693005.png"><img title="image" style="border-left-width:0px;border-right-width:0px;border-bottom-width:0px;display:inline;border-top-width:0px;" border="0" alt="image" width="546" height="115" src="http://sqlblog.com/blogs/jamie_thomson/image_thumb_11ABD6D9.png"></a> </p> <p>SSDT doesn’t have change connection and believe me, you don’t know how much you use a feature until its not there:</p> <p><a href="http://sqlblog.com/blogs/jamie_thomson/image_09B43477.png"><img title="image" style="border-left-width:0px;border-right-width:0px;border-bottom-width:0px;display:inline;border-top-width:0px;" border="0" alt="image" width="438" height="58" src="http://sqlblog.com/blogs/jamie_thomson/image_thumb_28F6DB4A.png"></a> </p> <p>There’s also no hotkey to jump to “Connection” on the context menu like there is in SSMS (“C”) and I find that annoying too.</p> <p>&nbsp;</p><hr>Those were the main annoyances that forced me back to SSMS. The lack of F6 was a major bugbear for me as I am a big keyboard shortcut junkie. If such things don’t bother you then you may be able to live in Visual Studio quite happily. If you have any similar experiences to share I’d be keen to read them.<p>&nbsp;</p> <p><a target="_blank" href="http://twitter.com/jamiet">@Jamiet</a></p>DAX editor for SQL Serverhttp://sqlblog.com/blogs/davide_mauri/archive/2011/11/23/dax-editor-for-sql-server.aspxWed, 23 Nov 2011 06:58:10 GMT21093a07-8b3d-42db-8cbf-3350fcbf5496:39948manowar<p>One of the major criticism to DAX is the lack of a decent editor and more in general of a dedicated IDE, like the one we have for T-SQL or MDX.</p> <p>Well, this is no more true. On Codeplex a very interesting an promising Visual Studio 2010 extension has been released by the beginning of November 2011:</p> <p><a title="http://daxeditor.codeplex.com/" href="http://daxeditor.codeplex.com/">http://daxeditor.codeplex.com/</a></p> <p>Intellisense, Syntax Highlighting and all the typical features offered by Visual Studio are available also for DAX.</p> <p>Right now you have to download the source code and compile it, and that’s it!</p>Confirmed: Juneau is in the next version of Visual Studiohttp://sqlblog.com/blogs/jamie_thomson/archive/2011/09/20/confirmed-juneau-is-in-the-next-version-of-visual-studio.aspxTue, 20 Sep 2011 21:32:00 GMT21093a07-8b3d-42db-8cbf-3350fcbf5496:38615jamiet<p>Its no great secret that Juneau, a collection of features in the forthcoming SQL Server codenamed Denali, will be in the next version of Visual Studio but its nice to have it confirmed all the same. I have installed the first publicly available drop of that next version (known as Visual Studio 11 Developer Preview, download from <a href="http://msdn.microsoft.com/en-us/windows/hardware/hh454873" target="_blank">here</a>) that was released at last week's <a href="http://www.buildwindows.com/" target="_blank">BUILD </a>event and sure enough the Juneau stuff is right there. Here’s some screenshots:</p> <p>Note the presence of Juneau in the About dialog:</p> <p><a href="http://sqlblog.com/blogs/jamie_thomson/image_1526A594.png"><img src="http://sqlblog.com/blogs/jamie_thomson/image_thumb_7DABF162.png" title="image" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;display:inline;padding-right:0px;" alt="image" border="0" width="542" height="382"></a></p> <p>Here’s the new Juneau table designer:</p> <p><a href="http://sqlblog.com/blogs/jamie_thomson/image_50B68E87.png"><img src="http://sqlblog.com/blogs/jamie_thomson/image_thumb_4FDE289D.png" title="image" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;display:inline;padding-right:0px;" alt="image" border="0" width="544" height="324"></a></p> <p>OK, so this isn’t really news (unless you didn’t already know about it) however what <i>is </i>of interest is that this is the Express Edition of Visual Studio. This bodes well for full release – Juneau needs to be available to as many folks as possible which means not making it exclusive to the Ultimate Edition.</p> <p><a href="http://twitter.com/jamiet" target="_blank">@jamiet</a></p>Some thoughts on Visual Studio database references and how they should be used for SQL Server BIhttp://sqlblog.com/blogs/jamie_thomson/archive/2010/09/14/some-thoughts-on-visual-studio-database-references-and-how-they-should-be-used-for-sql-server-bi.aspxTue, 14 Sep 2010 12:53:00 GMT21093a07-8b3d-42db-8cbf-3350fcbf5496:28755jamiet<P class=MsoNormal><SPAN class=apple-style-span><SPAN style="FONT-SIZE:8.5pt;COLOR:black;FONT-FAMILY:'Verdana','sans-serif';">Over the past few weeks I have been making heavy use of the Database tools in Visual Studio 2010 (formerly known as datadude, DBPro, VSTS for Database Professionals or one of a plethora of other names that it has gone by over the past few years) and one of the features that has most impressed me has been database references.</SPAN></SPAN></P>
<P class=MsoNormal><SPAN class=apple-style-span><SPAN style="FONT-SIZE:8.5pt;COLOR:black;FONT-FAMILY:'Verdana','sans-serif';"><o:p></o:p></SPAN></SPAN>&nbsp;</P>
<P class=MsoNormal><SPAN class=apple-style-span><SPAN style="FONT-SIZE:8.5pt;COLOR:black;FONT-FAMILY:'Verdana','sans-serif';"><o:p>Database references allow you to have stored procedures in your database project that refer to objects (tables, views, stored procedures etc…) that exist in other database projects and hence when you build your database project it is able to <I style="mso-bidi-font-style:normal;">resolve</I> those references. Gert Drapers has a useful introduction to them at his blog post <A href="http://blogs.msdn.com/b/gertd/archive/2007/07/26/database-references.aspx">Database References</A>; in his words database references allow you to:&nbsp;</o:p></SPAN></SPAN></P>
<P class=MsoNormal><SPAN class=apple-style-span><SPAN style="FONT-SIZE:8.5pt;COLOR:black;FONT-FAMILY:'Verdana','sans-serif';"><o:p></o:p></SPAN></SPAN>&nbsp;</P>
<P class=MsoNormal style="MARGIN-LEFT:36pt;"><SPAN class=apple-style-span><I style="mso-bidi-font-style:normal;"><SPAN style="FONT-SIZE:9pt;COLOR:#333333;FONT-FAMILY:'Segoe UI','sans-serif';">represent and resolve 3 and/or 4-part name usage inside a database project. Database references&nbsp;are conceptually the same as assembly references inside a C# or VB.NET projects; they allow you to reference objects from your database project that live inside another namespace (database).</SPAN></I></SPAN><I style="mso-bidi-font-style:normal;"></I><SPAN class=apple-style-span><I style="mso-bidi-font-style:normal;"><SPAN style="FONT-SIZE:8.5pt;COLOR:black;FONT-FAMILY:'Verdana','sans-serif';"><o:p></o:p></SPAN></I></SPAN></P>
<P class=MsoNormal><SPAN class=apple-style-span><SPAN style="FONT-SIZE:8.5pt;COLOR:black;FONT-FAMILY:'Verdana','sans-serif';"><o:p>&nbsp;</o:p></SPAN></SPAN></P>
<P class=MsoNormal><SPAN class=apple-style-span><SPAN style="FONT-SIZE:8.5pt;COLOR:black;FONT-FAMILY:'Verdana','sans-serif';"><o:p>It occurred to me that similar functionality would be incredibly useful for SQL Server Integration Services(SSIS), Analysis Services (SSAS) &amp; Reporting Services (SSRS) projects. After all reports, packages and data source views are rife with references to database objects – why shouldn’t we be able to have design-time dependency checking in our BI projects the same way that database and .Net developers do?</o:p></SPAN></SPAN></P>
<P class=MsoNormal><SPAN class=Apple-style-span style="FONT-SIZE:11px;FONT-FAMILY:Verdana, sans-serif;"></SPAN>&nbsp;</P>
<P class=MsoNormal><SPAN class=Apple-style-span style="FONT-SIZE:11px;FONT-FAMILY:Verdana, sans-serif;">Here are some examples of ways in which this would be useful:</SPAN></P>
<OL>
<LI>
<DIV class=MsoNormal><SPAN style="FONT-SIZE:8.5pt;COLOR:black;FONT-FAMILY:'Verdana','sans-serif';"><SPAN class=apple-style-span>If a SSRS report pulls data from a view, I firstly want to know (at design-time) that that view exists. Secondly, if the view definition changes I want to know that my report will still work.</SPAN></SPAN></DIV></LI>
<LI>
<DIV class=MsoNormal><SPAN style="FONT-SIZE:8.5pt;COLOR:black;FONT-FAMILY:'Verdana','sans-serif';"><SPAN class=apple-style-span></SPAN><SPAN class=apple-style-span>Similarly for a SSAS cube, if a view referenced in the DSV changes or disappears I want my SSAS project build to fail or succeed accordingly</SPAN></SPAN></DIV></LI>
<LI>
<DIV class=MsoNormal><SPAN style="FONT-SIZE:8.5pt;COLOR:black;FONT-FAMILY:'Verdana','sans-serif';"><SPAN class=apple-style-span></SPAN><SPAN class=apple-style-span>Similarly for a SSIS Execute SQL Task, if it executes a stored procedure I want to know that the named parameters that I am using actually exist in the stored procedure.</SPAN><o:p></o:p></SPAN></DIV></LI></OL>
<P class=MsoNormal><SPAN class=apple-style-span><SPAN style="FONT-SIZE:8.5pt;COLOR:black;FONT-FAMILY:'Verdana','sans-serif';"></SPAN></SPAN>&nbsp;</P>
<P class=MsoNormal><SPAN class=apple-style-span><SPAN style="FONT-SIZE:8.5pt;COLOR:black;FONT-FAMILY:'Verdana','sans-serif';">To this end I have submitted three identical suggestions to <A href="http://connect.microsoft.com/sqlserver/feedback">Connect</A>, one each for SSIS, SSAS &amp; SSRS:</SPAN></SPAN></P>
<P class=MsoNormal><SPAN class=apple-style-span><SPAN style="FONT-SIZE:8.5pt;COLOR:black;FONT-FAMILY:'Verdana','sans-serif';"><o:p></o:p></SPAN></SPAN>&nbsp;</P>
<P class=MsoNormal><SPAN style="FONT-SIZE:16.5pt;COLOR:black;FONT-FAMILY:'Verdana','sans-serif';mso-fareast-font-family:'Times New Roman';mso-bidi-font-family:'Times New Roman';mso-font-kerning:18.0pt;mso-fareast-language:EN-GB;"><A class="" href="https://connect.microsoft.com/SQLServer/feedback/details/597709/" target=_blank>[SSAS] Declare database object dependencies</A></SPAN></P>
<P class=MsoNormal><SPAN style="FONT-WEIGHT:normal;FONT-SIZE:16.5pt;COLOR:black;FONT-FAMILY:'Verdana','sans-serif';"><A class="" href="https://connect.microsoft.com/SQLServer/feedback/details/597707/" target=_blank>[SSRS] Declare database object dependencies</A></SPAN><SPAN style="FONT-WEIGHT:normal;FONT-SIZE:16.5pt;COLOR:black;FONT-FAMILY:'Verdana','sans-serif';">&nbsp;</SPAN></P>
<P class=MsoNormal><SPAN style="FONT-WEIGHT:normal;FONT-SIZE:16.5pt;COLOR:black;FONT-FAMILY:'Verdana','sans-serif';"><A class="" href="https://connect.microsoft.com/SQLServer/feedback/details/597708/" target=_blank>[SSIS] Declare database object dependencies</A><BR></SPAN></P>
<P class=MsoNormal>&nbsp;</P>
<P class=MsoNormal>I have said before in my blog post <A href="http://sqlblog.com/blogs/jamie_thomson/archive/2010/01/12/the-sql-developer-gap-warning-rant-coming-up.aspx">The SQL developer gap</A> that we database and BI developers deserve as much love from Microsoft as our .Net counterparts do and I’m of the opinion that providing design-time dependency checking across the full gamut of BI projects would be a huge step in the right direction. The holy grail is an object dependency graph from database tables all the way up through database views, database functions, stored procedures, DAL, ORM layer &amp; business logic layer all the way through to presentation – I don’t know how long it will take but we will get there one day I am sure, hopefully sooner rather than later!</P>
<P class=MsoNormal>&nbsp;</P>
<P class=MsoNormal><A href="http://twitter.com/jamiet">@JamieT</A></P>
<P class=MsoNormal>UPDATE: This feature (i.e. the ability to define dependencies on database objects at build time) is coming to the Entity Framework as confirmed in this Connect submission:&nbsp;<A class="" href="http://bit.ly/igmEiS">http://bit.ly/igmEiS</A>. Let's hope the same comes to SSIS/SSAS/SSRS soon.</P>SSIS 2005 on Windows 7http://sqlblog.com/blogs/andy_leonard/archive/2009/09/28/ssis-2005-on-windows-7.aspxMon, 28 Sep 2009 11:00:00 GMT21093a07-8b3d-42db-8cbf-3350fcbf5496:17014andyleonard<P><STRONG>Introduction</STRONG></P>
<P>I recently upgraded from Vista Ultimate (x64) to Windows 7 Ultimate (x64). So far I really like Windows 7, but&nbsp;I'm still in the honeymoon phase. I ran into an issue creating new packages using SSIS 2005 and found a solution I thought I'd share.</P>
<P><STRONG>The Error</STRONG></P>
<P>Unfortunately&nbsp;for&nbsp;both of us, I did not capture a screenshot of the&nbsp;error. I can tell you it occurred when I created a new SSIS project or attempted to add a package to an SSIS project. The text of the message read something like:</P>
<P>"Cannot create package" and " failed due to the following error:"</P>
<P>Now I know on the surface the text above is utterly meaningless. My fervent hope and desire is that search engines will&nbsp;catalog this page&nbsp;so&nbsp;people encountering the same error can find it when searching.&nbsp;Because frankly, I didn't find anything online that helped me figure this one out - it was all trial and error and, in the end, dumb luck that worked for me.</P>
<P>If you encounter this error, please capture&nbsp;a screenshot and/or the text of the error message and leave a comment to this post. I promise I will contact you and update this post so it's more accurate. Since I fixed it, I've been unable to reproduce the error. </P>
<P><STRONG>The Solution</STRONG></P>
<P>Run As Administrator. Simple, eh? Like searching for my car keys, the solution was in the last place I looked. </P>
<P>To set this permission on the Business Intelligence Development Studio application, click the Windows button and navigate to the All Programs\SQL Server 2005 folder. Right-click the Business Intelligence Development Studio object and click Properties:</P>
<P><IMG style="WIDTH:379px;HEIGHT:375px;" src="http://vsteamsystemcentral.com/images/ext/SSIS2k5OnWin7_1.jpg" width=379 height=375></P>
<P>Once Properties display, click the Advanced button on the Shortcut tab:</P>
<P><IMG src="http://vsteamsystemcentral.com/images/ext/SSIS2k5OnWin7_2.jpg">&nbsp;</P>
<P>&nbsp;When the Advanced Properties dialog displays, check the "Run as administrator" checkbox (NOTE: This assumes you are a member of the local Administrators group on your workstation):</P>
<P><IMG src="http://vsteamsystemcentral.com/images/ext/SSIS2k5OnWin7_3.jpg"></P>
<P>Click the OK button to close the Advanced Properties dialog. You will be prompted to confirm these changes. If you are a local administrator on your workstation, you can click the Continue button and move on. If not, you will need a member of the local Administrators group to login to your workstation and validate this change:</P>
<P><IMG src="http://vsteamsystemcentral.com/images/ext/SSIS2k5OnWin7_4.jpg">&nbsp;</P>
<P>Click OK to save the changes to Properties. </P>
<P>After I made this change to my shortcut, I was able to create SQL Server 2005 Integration Services packages on my Windows 7 machine.</P>
<P>:{&gt; Andy</P>Microsoft Announces SQL Server Data Services (SSDS)!http://sqlblog.com/blogs/andy_leonard/archive/2008/03/05/microsoft-announces-sql-server-data-services-ssds.aspxWed, 05 Mar 2008 19:08:00 GMT21093a07-8b3d-42db-8cbf-3350fcbf5496:5459andyleonard<P>Cool things are coming out of <A class="" href="http://www.visitmix.com/2008" target=_blank>Mix08</A>! </P>
<P>There's even something there for we database people: <A class="" href="http://www.microsoft.com/sql/dataservices/default.mspx" target=_blank>SQL Server Data Services</A>.</P>
<P>From <A class="" href="http://blogs.msdn.com/neilhut/archive/2008/03/05/microsoft-announces-sqlserver-data-services-ssds-structured-storage-in-the-cloud.aspx" target=_blank>Neil Hutson's blog</A>:</P>
<P><EM>SSDS you can think of as a structured data store in the cloud(building block service), which is accessed using Internet protocols using a basic data manipulation language. SSDS is for developers and businesses that need scalable, easily programmable, and cost-effective data storage with robust database query capabilities. Pretty cool.</EM></P>
<P>:{&gt; Andy</P>DreamSpark: Free Software for Studentshttp://sqlblog.com/blogs/andy_leonard/archive/2008/02/19/dreamspark-free-software-for-students.aspxTue, 19 Feb 2008 16:02:00 GMT21093a07-8b3d-42db-8cbf-3350fcbf5496:5134andyleonard<P>This is cool! Microsoft is <EM>giving away</EM> software - including SQL Server 2005 Developer Edition, Windows 2003 Standard Edition, and Visual Studio 2005 <EM>and</EM> 2008 Professional Editions&nbsp;- to college students. </P>
<P>It's called <A class="" href="https://downloads.channel8.msdn.com/Default.aspx" target=_blank>DreamSpark</A> and it puts professional software tools in the hands of students interested in learning more about designing and developing solutions.</P>
<P>From the website:</P>
<P><EM>Now, for the first time, Microsoft is giving its valuable software developer and design tools directly to students worldwide at no charge! This site enables students like you to download professional-level Microsoft developer and design tools to unlock your creative potential and set you on the path to academic and career success, by supporting and advancing your learning and skills through technical design, technology, math, science and engineering activities.</EM></P>
<P>Great idea!</P>
<P>:{&gt; Andy</P>