sql-server-data-tools

SSIS: Flat File default length

烈酒焚心 提交于 2019-12-04 11:46:23
I have to import about 50 different types of files every day. Some of them with a few columns, some inculde up to 250 columns. The Flat File connection always defaults all columns to 50 chars. Some columns can be way longer than 50 chars, and will of course end up in errors. Currently i am doing a stupid search&replace with notepad++ - Opening all SISS packages, replacing: DTS:MaximumWidth="50" by DTS:MaximumWidth="500" This is an annoying workaround. Is there any possibility to set a default length for flatfile string columns to a certain value? I am developing in Microsoft Visual Studio

How to create a user for a login in 2013 SQL Server Database Project

穿精又带淫゛_ 提交于 2019-12-04 09:02:58
问题 I'm trying to create a user with a login for a SSDT database project. The login already exists on the target server. With the following SQL: CREATE USER [MyLogin] FOR LOGIN [MyLogin] WITH DEFAULT_SCHEMA = dbo GO I get the error: Error 1 SQL71501: User: [MyLogin] has an unresolved reference to Login [MyLogin]. I've found two solutions, but neither work with 2013: 1) Create a server project to reference the login. This isn't an option in the current version of SSDT / VS2013 2) Disable schema

SSDT unresolved reference ERROR SQL71561

 ̄綄美尐妖づ 提交于 2019-12-04 08:59:11
I've imported a database into a database project and straight from the bat I'm getting 200+ errors about unresolved references. Now i've read several posts and sites like this one ( http://blogs.msdn.com/b/bahill/archive/2009/08/26/using-self-referencing-or-local-3-part-names.aspx ) that the cause would be the 3 part names. The solution would be to right-click the database project > refactor > rename server/database references. However my window differs from that of the earlier mentioned website and the drop down menu's are empty. I'm using Visual Studio 2010 Professional with SSDT 2010. Any

Unable to pass multiple values in querystring in .aspx to report at runtime

喜欢而已 提交于 2019-12-04 06:19:27
问题 This should be simple process but now it became annoying issue. I am trying to pass multiple value in query string in my ASP.Net web report in VS2012. The page has to pass multiple values to the report as a parameter . When I sent a single value (for eg: abc,) the data is being pulled up correctly but however when I am passing multiple values separated by a comma (eg abc,xyz) it is not displaying the results These multiple values separated by a comma are being passed to the page as query

SqlPackage not accepting fully qualified name of tables in sync trigger

旧街凉风 提交于 2019-12-04 06:18:19
问题 I am using SymmetricDS version 3.9.15 on Azure SQL for both master and slave databases. I am able to configure the tool correctly to synchronize the databases but while publishing the database project the SqlPackage command gives an error due to the fully qualified name(including catalog name & schema name) of the table and function in the following trigger. USE [STAGING_PROD_Copy] GO /****** Object: Trigger [dbo].[SYM_ON_D_FOR_TRGGRLL_1_PRMRYSTGNG_PRDS] Script Date: 08-11-2018 21:17:09 *****

What is the syntax for adding multiple arguments onto the “Variables” parameter in sqlpackage.exe?

混江龙づ霸主 提交于 2019-12-04 05:18:51
I am using SqlPackage.exe for my deployment. I have read the documentation here for the usage of SqlPackage.exe . The documentation only states the synax for one variable: Specifies a name value pair for an action specific variable; {VariableName}={Value}. The DACPAC file contains the list of valid SQLCMD variables. An error will result if a value is not provided for every variable. My problem is that the documentation does not say how to pass multiple arguments into the Variables parameter. For example, I want to do this: sqlpackage.exe ...args go here... /Variables:VarToOverride=Value1

How do I fix incompatible SQL Server version found?

我怕爱的太早我们不能终老 提交于 2019-12-04 03:54:29
I'm using VS 13 just installed SQL Server 2014 Express, created a new database and when I go to add a new table (inside VS) I get the following error: incompatible sql server version found How do I fix this? Should I find the version required by the VS (if so, how?) and I downgrade to that required version or can I workaround it with SQL Server 2014 Express? Check the "Target platform:" drop-down in the "Project Settings" tab of Project Properties. If "SQL Server 2014" is not selected, select it. If "SQL Server 2014" is not even in the list, you need to do the next part (#2). Make sure that

VS 2015 Native compiler return value -1073741511 on .rdlc files when building project

懵懂的女人 提交于 2019-12-04 03:21:35
问题 I got this error: rsUnexpectedCompilerError: An unexpected error occurred while compiling expressions. Native compiler return value: ‘-1073741511’ ,when compiling rdlc 's on a new box on Visual Studio 2015 on a Windows 8.1 box for an existing project This happens on every existing r d lc file in the project that has an expression . I checked that. I have the latest sql server data tools (ssdt) installed. I also created a brand new console application with empty report with no expressions and

SFTP file transfer in SSIS

血红的双手。 提交于 2019-12-04 01:22:25
问题 I've read a whole bunch of different forums on this but cant seem to get mine to work. I need to transfer a file from my local machine to an SFTP server using SSIS. Here is what I've already done: I downloaded WinSCP Created a saved connection in WinSCP ( TS_NEW ) Open up that saved connection (to verify) Copied WinSCP.exe and WinSCP.com to the SSIS project folder Created Text file with the below script. option batch on option confirm off open sftp://TS_NEW.com cd C:\Users\zaccheut\Documents

Sql Schema Compare will not update after CLR object installed 'Source schema drift detected'

▼魔方 西西 提交于 2019-12-04 00:58:30
After installing a custom CLR object Sql Server Developer Tools (SSDT) VS2012 will not allow an update. The error is "Source schema drift detected. Press Compare to refresh. After refresh same thing happens. Tried In settings, I set the object to just Stored Procedures. Settings ->General -> Block on possible data loss -> tried both on and off. This sort of loop can also be caused by a referenced SSDT project failing to build. The referenced project may be missing, unloaded, or have an error which prevents the compare from completing. This is not an answer but a clue to deal with this problem.