Error in SSIS DataSouce preview using Npgsql as ADO.NET Provider - visual-studio-2012

I'm using Npgsql 3.0.5 as ADO.NET DataSource Provider to move data from one DB to another with some transformations
I having an error when trying to PREVIEW data which:
"57014: canceling statement due to user request (Npgsql)"
It is looks like "VS" just cancels query execution and returns error.
Full Error description :
===================================
There was an error displaying the preview. (Microsoft Visual Studio)
===================================
57014: canceling statement due to user request (Npgsql)
------------------------------ Program Location:
at Npgsql.NpgsqlConnector.DoReadSingleMessage(DataRowLoadingMode
dataRowLoadingMode, Boolean returnNullForAsyncMessage, Boolean
isPrependedMessage) at
Npgsql.NpgsqlConnector.ReadSingleMessage(DataRowLoadingMode
dataRowLoadingMode, Boolean returnNullForAsyncMessage) at
Npgsql.NpgsqlConnector.SkipUntil(BackendMessageCode stopAt1,
BackendMessageCode stopAt2) at
Npgsql.NpgsqlDataReader.SkipUntil(BackendMessageCode stopAt1,
BackendMessageCode stopAt2) at Npgsql.NpgsqlDataReader.Consume()
at Npgsql.NpgsqlDataReader.Close() at
Microsoft.DataTransformationServices.Design.PipelineUtils.ShowDataPreview(String
sqlStatement, DbConnection connection, Control parentWindow,
IServiceProvider serviceProvider,
IDTSExternalMetadataColumnCollection100 externalColumns) at
Microsoft.DataTransformationServices.Design.PipelineUtils.ShowDataPreview(String
sqlStatement, ConnectionManager connectionManager, Control
parentWindow, IServiceProvider serviceProvider,
IDTSExternalMetadataColumnCollection100 externalColumns) at
Microsoft.DataTransformationServices.DataFlowUI.DataFlowConnectionPage.previewButton_Click(Object
sender, EventArgs e)
Installed Npgsql from
https://github.com/npgsql/npgsql/releases
Microsoft Visual Studio Premium 2012
Version 11.0.61219.00 Update 5
Microsoft .NET Framework
Version 4.6.01038
SQL Server Data Tools 11.1.50730.0
Microsoft SQL Server Data Tools
Can anyone help with that bug?

Related

SSAS excel remote connection

I migrated to SQL Server 2014 from 2008 version. I have Windows Server 2012 with IIS 8.5.
I'm trying to configure remote access to my OLAP database . I followed all the steps as described here:
https://msdn.microsoft.com/it-it/library/gg492140(v=sql.120).aspx.
The IIS version mentioned is the 8.0, does it fit for the 8.5 too?
When I try to test the configuration using the Management Studio I get this error:
TITLE: Connect to Server
Cannot connect to http://localhost/OLAP/msmdpump.dll.
ADDITIONAL INFORMATION:
The connection either timed out or was lost. (Microsoft.AnalysisServices.AdomdClient)
The remote server returned an error: (405) Method Not Allowed. (System)
Program Location:
at Microsoft.AnalysisServices.AdomdClient.XmlaClient.EndRequest()
at Microsoft.AnalysisServices.AdomdClient.XmlaClient.SendMessage(Boolean endReceivalIfException, Boolean readSession, Boolean readNamespaceCompatibility)
at Microsoft.AnalysisServices.AdomdClient.XmlaClient.Discover(String requestType, String requestNamespace, ListDictionary properties, IDictionary restrictions, Boolean sendNamespacesCompatibility)
at Microsoft.AnalysisServices.AdomdClient.XmlaClient.SupportsProperty(String propName)
at Microsoft.AnalysisServices.AdomdClient.XmlaClient.Connect(ConnectionInfo connectionInfo, Boolean beginSession)
at Microsoft.AnalysisServices.AdomdClient.AdomdConnection.XmlaClientProvider.Connect(Boolean toIXMLA)
at Microsoft.AnalysisServices.AdomdClient.AdomdConnection.XmlaClientProvider.Microsoft.AnalysisServices.AdomdClient.AdomdConnection.IXmlaClientProviderEx.ConnectXmla()
at Microsoft.AnalysisServices.AdomdClient.AdomdConnection.ConnectToXMLA(Boolean createSession, Boolean isHTTP)
at Microsoft.AnalysisServices.AdomdClient.AdomdConnection.Open()
at Microsoft.SqlServer.Management.SqlStudio.Explorer.ObjectExplorerService.ValidateConnection(UIConnectionInfo ci, IServerType server)
at Microsoft.SqlServer.Management.UI.ConnectionDlg.Connector.ConnectionThreadUser()
===================================
The remote server returned an error: (405) Method Not Allowed. (System)
------------------------------
Program Location:
at System.Net.HttpWebRequest.GetResponse()
at Microsoft.AnalysisServices.AdomdClient.HttpStream.GetResponseStream()
at Microsoft.AnalysisServices.AdomdClient.HttpStream.GetResponseDataType()
-----------------------------------------------------------------------------------------------------------------
What can I do to get more details in order to find what goes wrong?
Thank you in advance for your help!

sitefinity azure deployment cannot connect to database

I'm having trouble getting my new sitefinity deployment to windows azure hosting. On the sitefinity project startup screen I can put in my azure connection string info and it bombs out saying the database type mismatches (mssql instead of azure). I can't find where to change this so I'm unable to get the site to initialize. Am I missing something?
Here is the error:
* There was an error trying to connect to the Database Server:
System.InvalidOperationException: Wrong database backend configuration detected: Connecting to 'Microsoft SQL Azure (RTM) - 11.0.9117.67 Aug 4 2013 23:37:13 Copyright (c) Microsoft Corporation ' but configured for 'mssql'. at OpenAccessRuntime.Relational.sql.MsSqlDriver.customizeForServer(Connection con) at OpenAccessRuntime.Relational.sql.SqlDriver.InitializeFor(ConnectionString connectionString, Boolean noConnect, PropertySet props, DBDriver& driver, Connection& conn, ConnectionPoolType poolType) at OpenAccessRuntime.Relational.RelationalStorageManagerFactory..ctor(StorageManagerFactoryBuilder b) at OpenAccessRuntime.storagemanager.StorageManagerFactoryBuilder.createSmfForURL()
Thanks
You cannot create your project directly on Azure - you should create it locally first.
Then, in the DataConfig.config file you will find the connection string. Make sure you change the dbType from MsSql to SqlAzure.
Also, in the web.config you need to uncomment this:
<!-- Begin telerik section -->
<!--<telerik>
<sitefinity>
<environment platform="WindowsAzure"/>
<sitefinityConfig storageMode="Database" />
</sitefinity>
</telerik>-->
<!-- End telerik section -->
I suggest you use Thunder to deploy your project to Azure:
http://www.sitefinity.com/documentation/documentationarticles/sitefinity-azure-configuration

Selenium and TFS Test cases Datasource

I am usimg VS 2010 Professional.And want to connect the TFS Testcase datasource without using MTM(Microsofot Test Manager).Is it Possible to do so.
[DataSource("Microsoft.VisualStudio.TestTools.DataSource.TestCase",
"http://TFS URL", "27211",
DataAccessMethod.Sequential), TestMethod]
public void CheckUserLogin()
{
PageObjects.BrowserInvoke();
PageObjects.TextBox(UIMapRepository.userName, TestContext.DataRow["UserName"].ToString());
PageObjects.TextBox(UIMapRepository.passWord, TestContext.DataRow["Password"].ToString());
PageObjects.ButtonClick(UIMapRepository.loginButton);
Assert.AreEqual("Logout", PageObjects.CheckElementExist(UIMapRepository.logoutButton));
PageObjects.ButtonClick(UIMapRepository.logoutButton);
PageObjects.CloseBrowser();
}
When I run this I get
The unit test adapter failed to connect to the data source or to read the data. For more information on troubleshooting this error, see "Troubleshooting Data-Driven Unit Tests" (http://go.microsoft.com/fwlink/?LinkId=62412) in the MSDN Library.
Error details: TF30063: You are not authorized to access tfs.
The remote server returned an error: (401) Unauthorized.
Can not connect to Team Foundation Service data source for coded ui tests has a similar issue.
I suspect you'll need to pass the authentication credentials along with the URL in the TFS connection string.
How do you connect to a TFS server in C# using specific credentials? shows how to connect programmatically. You should be able to wrap that into a format that the DataSource attribute will accept.

Update SQL Server CE database (.sdf) from 3.5 to 4.0

I need to upgrade a SQL Server Compact database from 3.5 to 4.0 version. I am using linq-to-sql
I tried some things that I found on stackoverflow, that did not help:
I tried Add 4.0 connection dialog (no error messages, bak file was created)
I tried upgrading in code: (no error messages)
System.Data.SqlServerCe.SqlCeEngine engine= new System.Data.SqlServerCe.SqlCeEngine("Data source = ...");
engine.Upgrade();
I checked for database corruption (system returned that there are no corruption problems)
System.Data.SqlServerCe.SqlCeEngine engine= new System.Data.SqlServerCe.SqlCeEngine("Data source = ...");
engine.Verify();
After these operations I wanted to recreate dbml file - I received error message
Incompatible Database Version (..) DB version 4000000, Requested version 3505053 (..)
In debug mode I checked db.Connection.ServerVersion = returns 3.5.8080.0
In database connection properties version is 4.0.8876.1
Any suggestions?
Once you have upgraded your database to 4.0, you can no longer create a dbml file, as the Tool responsible for this only Works with 3.5 databasee files. One possible workaround is to have two version of the database, one 3.5 for dbml generation, and another for use. Remember to initialize the DataContext object with a SqlCeConnection object, otherwise 4.0 will not Work with LINQ to SQL - or you can try my SQL Server Compact Toolbox, that allows you to generate a DataContext directly from a 4.0 database file (must still initialize with SqlCeConnection object)

Failed to generate scripts for Sql Azure database: "Getting the list of objects from : failed"

I follow http://msdn.microsoft.com/en-us/library/ee621790.aspx instructions and on get the following error:
Getting the list of objects from 'MYDBNAME'. Failed
Microsoft.SqlServer.Management.Sdk.Sfc.EnumeratorException: Failed to retrieve data for this request. ---> Microsoft.SqlServer.Management.Sdk.Sfc.InvalidVersionEnumeratorException: Operation not supported on version 11.0 SqlAzureDatabase. at Microsoft.SqlServer.Management.Smo.XmlReadDoc.LoadFile(Assembly a, String strFile) at Microsoft.SqlServer.Management.Smo.SqlObject.LoadInitData(String file, ServerVersion ver, DatabaseEngineType databaseEngineType) at Microsoft.SqlServer.Management.Sdk.Sfc.ObjectCache.LoadElement(ObjectLoadInfo oli, ServerVersion ver, DatabaseEngineType databaseEngineType) at Microsoft.SqlServer.Management.Sdk.Sfc.ObjectCache.GetElement(ObjectLoadInfo oli, ServerVersion ver, DatabaseEngineType databaseEngineType) at Microsoft.SqlServer.Management.Sdk.Sfc.ObjectCache.GetAllElements(Urn urn, ServerVersion ver, DatabaseEngineType databaseEngineType, Object ci) at Microsoft.SqlServer.Management.Sdk.Sfc.Environment.GetObjectsFromCache(Urn urn, Object ci) at Microsoft.SqlServer.Management.Sdk.Sfc.Environment.GetData(Request req, Object ci) at Microsoft.SqlServer.Management.Sdk.Sfc.Enumerator.GetData(Object connectionInfo, Request request) at Microsoft.SqlServer.Management.Sdk.Sfc.Enumerator.Process(Object connectionInfo, Request request) --- End of inner exception stack trace --- at Microsoft.SqlServer.Management.SqlScriptPublish.GeneratePublishPage.worker_DoWork(Object sender, DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
How to get azure database backup or sql scripts?
UPDATE:
Azure db: SQL Server 11.0.2065;
Sql management studio: 11.0.2100.60
UPDATE 2:
SQL Azure Migration Wizard reports:
Microsoft.SqlServer.Management.Sdk.Sfc
Failed to retrieve data for this request.
ADDITIONAL INFORMATION:
Operation not supported on version 11.0 SqlAzureDatabase. (Microsoft.SqlServer.SqlEnum)
The same here.
The collation is Cyrillic_General_CI_AS. How to change collation for the db to make scripts?
UPDATE 3:
The same error while making export of Data-Tier Application using this guide:
..Operation not supported on version 11.0 SqlAzureDatabase.
In SqlServer Management Studio 2012;
Right click on the DB and Tasks > Deploy Database to Sql Azure but select your local server as target. It will get copy of azure to your local. And then you can generate scripts from your local server. I just found this method, worked for me.
I would suggest to go for the SQL Azure Migration Wizard as it is far more advanced than the Generate Scripts task in SSMS. As a side note, this tool is written and maintained by a person from the SQL Azure team!
Ok, i did the exporting of my azure db using cloudservices.red-gate.com. I created BACPAC File on a storage. Then i imported the BACPAC to my local Sql express. Strangely enough the service didn't threw the error i had when used my SQL Management Studio.

Resources