SSDT Set New Source as (project) Scope - sql-server

I have a new solution in SSDT where I am mapping data moving from one SQL Server to another. I will have several SSIS packages in the project, and so want to share the connections to both servers across all packages.
Here are the project level connections I have created:
When I create a new task in a Data Flow I am having trouble explicitly using the project version of my connections. I am in the prompt to add a new source, but not all my project level connections appear. I am able to add a connection, but it seems to only be scoped to the package level, which is not what I want. See conn1 is missing from the list:
How do I explicitly use project level Connection Managers in my sources? Why don't the ones I created appear in my options as an existing source?

it seems the connection (conn1) is not SQL Server Native Client 11.0
this source assistant Dialog retrieves only all the connections of type (SQL Server Native Client 11.0) which Microsoft recommends to use.
Regards

Related

Empty connection managers when deploying SSIS packages unless converted to Package Connections

This is my first time starting from scratch with the "new" SSIS Integration Services Catalogs introduced in SQL 2012. I've developed packages with this new model for years but never set up my own environment.
I have packages that work in Visual Studio 2019 just fine and have project connection managers that will span across all of the packages in this project. When I deploy the packages the connection managers are empty in the package configuration.
Here's my project with the connections setup.
And here's what it looks like when I deploy the packages using the Project connections
If I change the connections to "Package Connections", the connections deploy as expected.
When I do this, the connection managers is populated
What am I missing?
Notice the Scope - GetWorkerData.dtsx That's showing you what is configurable at the scope of the package. Since the connection managers at that point are Project level, you need to change the Scope to something different (I don't have a project level CM handy). Alternatively, right click on the project "Pull Data from ADP" and select configure from there. Then it will pop open that wizard with the correct scope selected.

VS2015 CE SQLite - How to create a typed DataSet

I read a manual how to create a typed DataSet under VS2015 CE with the common Database driver (MySQL, MS Access/ODBC/Server/Server-Database).
To archive this:
View -> Server-Explorer -> Connect to Database -> Change -> select driver -> provide the necessary information But this doesn't work for SQLite. I already installed https://visualstudiogallery.msdn.microsoft.com/0e313dfd-be80-4afb-b5e9-6e74d369f7a1 and tried this: https://stackoverflow.com/a/33749302/6635287
After rebooting there was no entry for a SQLite in the dialoge after Change. Just two SQL Server Compact entries (the first was version 3.5, the second 4.0
In the Server Explorer appeard a new symbol (two blue symbolic databases). When clicking on them, a dialog appears, which offers me a treeview, containing "Data Connections" as root element having one child. After right-clicking the root element I get a context menue with some options:
Add SQL Server Compact 4.0 Connection...
Add SQL Server Compact 3.5 Connection... (out-grayed)
Add SQLite Connection...
...
I was already able to make a connection to the SQLite File but when creating a typed DataSet, I can't access to the SQLite connection.
Does anyone know a way to archiev this (creating a typed DataSet with SQLite)?
Add the System.Data.SQLite NuGet pagage via the NuGet package manager. After installation there is a new type of connection: System.Data.SQLite Database File. Create a new connection to the SQLite file

SSIS Package Deployment Model : Could not find connection managers

I am using Package Deployment Model for one of my project in SSIS.
When I am importing the package on SSISDB under Integration Service Catalogs.
It imports successfully.
Then, I want to create a Job under SQL Job Agents to Run this Package periodically. But there I am not getting any Connection managers which I have used in my package.
My SSIS package has 2 connections :
Connection to the Sharepoint Site (Which is the source of the data)
Connection to the SQL Server ( Which is the destination of the data)
If I am not getting the connection manager while creating the job, then How can I change the connection Servers from local to Production ones from here?
Am I missing something on configuration part to include Connection Managers in the Deployment Package?
Please help here.
Thank you,
Mittal.
In SSMS open the Integration Services Catalogs -> SSISDB -> CatalogName -> Projects, then right click on the project OR Find the package in the SSIS Catalog and right click on it, then select the Configure... entry in the popup menu.
You can select the package in the Scope dropdown list, then you can find the connections under the Connection Managers tab.
Also please read this thread: How to configure SSIS 2012 project to run under different environment configurations?

How do I avoid the connection manager breaking in SSIS?

I made some changes to the connection manager yesterday, using SQL Authentication instead of Windows authentication. But today for some reason all the connections had red x's whene I opened them. Then I reverted back to using Windows authentication and the same issue persisted. I had to go into each object and re-add the connections.
I'm using an OLE DB connection that is being used as a project connection.
Also when I'm transferring a single package to someone else. For some reason he is unable to view and use the connection manager? Any reason why this could be and how I can solve it.

Using SQL Server Native Client to access SQL Server LocalDB

I'm trying to connect to a SQL Server LocalDB instance using the SQL Server Native Client driver. This is because we are looking to use Native Client in our production environment to gain access to the use of subject alternative names on SSL encryption for SQL Server. So far I'm not having much luck - is this a supported scenario? My connection string is:
<add name="Database" connectionString="Driver={SQL Server Native Client};Server=(localdb)\v11.0;Integrated Security=True;AttachDBFileName=|DataDirectory|Database.mdf;" providerName="System.Data.Odbc" />
The error I'm receiving is:
ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
Any thoughts on how to connect?
In addition to using the 11.0 provider,
Did you create an instance of SqlLocalDb?
Did you start the instance?
If you are not the owner, did you try (localdb)\.\InstanceName?
I recently updated a bunch of content on the following Wiki page:
http://social.technet.microsoft.com/wiki/contents/articles/4609.troubleshoot-sql-server-2012-express-localdb.aspx
Also, your connection string states both native client and ODBC, is this intentional? And are you using AttachDbFilename on purpose?
You need to use a version of the Native Client that supports LocalDB. You're using version 9. Try:
Driver={SQL Server Native Client 11.0}
Microsoft called this out a long time ago:
Note that because the activation logic lives in the client-side provider, you need to install the latest one - SQL Server Native Client "Denali" (for ODBC and OLE DB) or the next .NET Framework (for ADO.NET).
Follows how I solve this after 3 days of hard research and trying, with my wishes for Happy Holidays and a great New Year:
on SQL Server Configuration Manager (SQLServerManager11.msc) at scaffolding on left:
a. right click on MS SQL Server Native Client(11.0 in my case)'s ‘Client Protocols’ and at right list, right click on TCP/IP for unenabling it allowing enable only 'memory sharing' (as rank order #1) and 'named piping' (as rank order #2);
b. stepping down on MSSQL SNC scaffolding, right click on 'Aliases' and at right list, exclude it fully blank;
c. you can repeat 'a' and 'b' for MS SQL SNC (32-bits) option of the scaffolding
reason: as a single local client on same machine of SQL Server LocalDb, there is no need for connecting through TCP/IP ports, being memory sharing or named piping more efficient options
on SQL Client Manager (cliconfg.exe) after choosing ‘General’ tab, keep 'Enable protocols in order' list at right unattended, fully blank and mark 'Enable memory sharing protocol' statement; then choose “Alias’ tab making ‘Server alias configuration’ list fully blank as well
reason: same as '1', now configuring client side
piece of cake now:
a. start MS SQL SNC by connecting to your localdb\instance - usually (localdb)\v11.0 – when required at SQL Server Management Studio (SSms.exe) starting and attach to wanted database or making this attachment through Visual Studio
b. start ODBC Administrator (odbcad32.exe), choose 'User data source' tab, click 'Add', on popup enter database name (generic, to be referred to later), database description (id.), 'localdb\instance' server name, click ‘Next’, ‘Next’ again, now mark ‘Change standard database to’ and at the list choose the wanted database connected and attached on ‘a’, click 'Next', click ‘End’; then on new popup click 'Test data source' for seeing it successful; it is done

Resources