sql-server-data-tools

Visual Studio 2015 Database Project directory contains a file with extension jfm

情到浓时终转凉″ 提交于 2019-11-27 06:14:39
Assuming we have a database project called MyDatabase then a file called MyDatabase.jfm appears in the root of the project directory. It is exclusively locked while the project is open in Visual Studio It is a binary file It has only started appearing recently (past couple of days) I have done a Google search, which has not offered any insight. There are some references to some old software, but most of the results are spam/trojanware. I have also looked in SO, but that has not produced any results either. Does anyone know what it is and why it's there? The plan is to add it to the gitignore

How to build .sqlproj projects on a build server?

人盡茶涼 提交于 2019-11-27 05:10:31
问题 I have many .sqlproj projects that need to be built on our build server. I don't want to install all of Visual Studio on the build server just so I can install SSDT to build these. How can I build .sqlproj projects without a full VS install? Here's the raw error I get on the build server when trying to build without SSDT intstalled: C:\MyProject\MyProj.sqlproj (4): The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\SSDT\Microsoft.Data.Tools.Schema.SqlTasks

Does wrapping nullable columns in ISNULL cause table scans?

和自甴很熟 提交于 2019-11-27 03:22:16
问题 Code analysis rule SR0007 for Visual Studio 2010 database projects states that: You should explicitly indicate how to handle NULL values in comparison expressions by wrapping each column that can contain a NULL value in an ISNULL function. However code analysis rule SR0006 is violated when: As part of a comparison, an expression contains a column reference ... Your code could cause a table scan if it compares an expression that contains a column reference. Does this also apply to ISNULL, or

Importing excel files having variable headers

孤者浪人 提交于 2019-11-27 02:15:32
I have the SSIS package, which will load the excel file into Database. I have created Excel Source task to map the excel column name to Database table column name and its working fine. In rare case, We are receiving the excel file column name with some space (for example : Column name is "ABC" but we are receiving "ABC ") and which cause the mapping issue and SSIS got failed. Is there any possible to trim the column name without opening the excel. Note : Page name will be dynamic and Column position may change (eg: Column "ABC may exist in first row or second row or .."). First of all, my

Using SSDT, how do I resolve SQL71561 errors when I have a view that references objects in a different database?

谁说我不能喝 提交于 2019-11-27 02:10:26
问题 I have a database project in SSDT and when I import a view that references objects in a different database, I get error SQL71561, with a description along these lines: Error 4 SQL71561: View: [schema].[viewname] has an unresolved reference to object [other_db].[schema].[table].[column] I spent some time trying to figure this out, so to help others running into this I will post the answer that worked for me. 回答1: To resolve this, I added a reference to the other database, clearing out the

Visual Studio 2013 incompatibility with MS SQL Server 2014

杀马特。学长 韩版系。学妹 提交于 2019-11-26 20:36:18
问题 I downloaded MS SQL Server 2014 Enterprise Edition from MSDN. I want to do a server backend in C# and MS SQL, but the problem is, whenever I want to do something with DB in Visual Studio 2013 Ultimate it just tells me this =================================== An incompatible SQL Server version was detected. (Microsoft.VisualStudio.Data.Tools.SqlEditor) ------------------------------ Program Location: at Microsoft.VisualStudio.Data.Tools.SqlEditor.DataModel.SqlConnectionStrategy

Publish DACPAC to SQL Server 2014 using SqlPackage.exe?

对着背影说爱祢 提交于 2019-11-26 19:23:13
问题 I've been successfully publishing DACPACs to SQL Server 2008-2012 instances using SqlPackage.exe, as installed by SQL Server Data Tools (and typically found in C:\Program Files (x86)\Microsoft SQL Server\110\DAC\bin ). However, in attempting to publish a 2014-targeted DACPAC to a SQL Server 2014 instance using this same SqlPackage.exe, I get the following: *** Could not deploy package. Internal Error. The database platform service with type Microsoft.Data.Tools. Schema.Sql

Using SSIS BIDS with Visual Studio 2012 / 2013

守給你的承諾、 提交于 2019-11-26 18:30:20
I want to use SSIS /BIDS project in Visual Studio 2012. I have both Visual Studio 2010 and Visual Studio 2012 installed along with Microsoft SQL Server 2012. VS 2010 was installed first followed by MS SQL 2012 which got me BIDS integrated with VS 2010. However I cannot seem to find any help on integrating BIDS with VS 2012. I came across few question on SO related to this topic but all of them had integration with 2010 and not 2012. I know that with MS SQL 2012 I get a SQL Server Data Tool. Does this mean that Visual Studio 2012 and BIDS cannot be integrated ? Solution 2012: I had to update

unresolved reference to object [INFORMATION_SCHEMA].[TABLES]

帅比萌擦擦* 提交于 2019-11-26 12:05:08
问题 I\'ve created a UDF that accesses the [INFORMATION_SCHEMA].[TABLES] view: CREATE FUNCTION [dbo].[CountTables] ( @name sysname ) RETURNS INT AS BEGIN RETURN ( SELECT COUNT(*) FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = @name ); END Within Visual Studio, the schema and name for the view are both marked with a warning: SQL71502: Function: [dbo].[CountTables] has an unresolved reference to object [INFORMATION_SCHEMA].[TABLES]. I can still publish the database project without any problems,

Visual Studio 2015 Database Project directory contains a file with extension jfm

落爺英雄遲暮 提交于 2019-11-26 10:17:18
问题 Assuming we have a database project called MyDatabase then a file called MyDatabase.jfm appears in the root of the project directory. It is exclusively locked while the project is open in Visual Studio It is a binary file It has only started appearing recently (past couple of days) I have done a Google search, which has not offered any insight. There are some references to some old software, but most of the results are spam/trojanware. I have also looked in SO, but that has not produced any