Connection established. Data is not collected from DB2 using SSMA - sql-server

I'm able to connect to DB2 via SSMA.Ref: https://msdn.microsoft.com/en-us/library/dn890647(v=sql.110).aspx
However, just after the connection got established, I'm getting the error "Error occurred while collecting data" in SSMA. I referred this
http://www.ibm.com/support/knowledgecenter/SSEPGG_9.5.0/com.ibm.db2.luw.messages.sql.doc/doc/msql00440n.html
Still, getting the same error. I'm new to DB2 and need to migrate data from DB2 to SQL Server Could anyone please help what could be wrong and what steps to be followed (how) to fix this?

Related

SOAP UI connection reset on a different SQL Server database

Can anyone please tell me why am I getting a connection reset error when I run the same call, but on a different database? The two tables contain the same data and they are on the same server.

Microstrategy 10.4 SQL ODBC Connection error

I've tried to connect an SQL database from a server with Microstrategy located in another server through an ODBC connector for SQL.
First I've checked that there is a connection between the two servers executing a ping sentence with the IP Address the other server and it went through.
After making sure the connection is stablished without issues, I've tried to connect through Microstrategy without success. The error I get is the following message:
"Connection test error: Connect failed. Error type Odbc error. Odbc operation attempted: SQLDriverConnect (08001:0: on SQLHANDLE)"
Using SQL Server 2017 for the databases and Microstrategy 10.4.
Please, anybody has any clue about what might be happening?
Thanks,
look at the type of connector to the db you have. It gave me the same error until I used: "with Native Client Driver".
Could you please share the complete error message, SQL Handle error are associated with multiple error scenarios like invalid username * password, connecting 64 bit server with 32 bit ODBC driver etc. Complete error message would help me to debug it.
In general follow the steps to debug the error, (any order)
Check the version of ODBC Connection (64bit / 32 bit), it should be the same as server version.
Try testing the ODBC connection that you have created using ODBC Administrator tools to see whether there is an problem with username & password/server name or database connection issue.
Check the Database Instance/Database Connection/User Login created under the Administration option to ensure everything is working and give the correct value.
if nothing works try using the native driver given by MicroStrategy, you can access this using Connectivity Wizard.
Hope it helps..

Connection Timeout Expired SSMS 2016 when Imported bacpac file

I have tried to Import data tier application (*.bacpac file) through SSMS 2016.I need to put that database into Azure. Then it gives below mentioned exception.But I can access the Azure's existing database's tables through SSMS. Can you tell me why this is happening ?
TITLE: Microsoft SQL Server Management Studio
------------------------------
Failed to connect to server (local). (Microsoft.SqlServer.Smo)
------------------------------
ADDITIONAL INFORMATION:
Connection Timeout Expired. The timeout period elapsed while attempting to
consume the pre-login handshake acknowledgement. This could be because the pre-
login handshake failed or the server was unable to respond back in time. The
duration spent while attempting to connect to this server was - [Pre-Login]
initialization=1912; handshake=3839; (Microsoft SQL Server, Error: -2)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&EvtSrc=MSSQLServer&EvtID=-2&LinkId=20476
------------------------------
The wait operation timed out
------------------------------
BUTTONS:
OK
------------------------------
When I try to connect the Azure Sql instance through SSMS 2016,it gives below error.But still I can access the tables and etc on the SSMS. No problem there on accessing those items.But it gives the error as shown below on the first time.May be this error is related to the original one too.Any help would be highly appreciated ?
Based on the screenshots you have posted it looks like you are having problems connecting to a database on your local machine. One of the causes of the 'connection timeout' error is when you don't have a SQL Server instance running. There is a technet article with steps that could help you resolve this.
As an aside, SSMS provides a wizard to help you migrate a database on your local machine directly to an Azure SQL database without fussing with *.bacpac files. Perhaps that could help you solve your problem as well.

SQL Server and Sybase Linked Server Issue

In SQL Server 2008 using the Sybase 12.5 driver everything works fine but now we had migrated to SQL Server 2012 and Sybase 15 using the 64bit driver it seems that things are broken.
If I test linked server connection it gives me linked server succeeded message but as I visually drill down the catalogs though it lists all of them they show as blank like such
but the item count is correct as we have that many catalogs in our Sybase.
Another funny thing that I recognized is that when I perform and OPENQUERY it gives me the correct amount of rows and still it is showing empty strings, like such
I dont have any idea what is happening here and my only clue is this error message when I drill down inside those blank databases. This exception prompts.
Failed to retrieve data for this request. (Microsoft.SqlServer.Management.Sdk.Sfc)
------------------------------
ADDITIONAL INFORMATION:
An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
------------------------------
Cannot obtain the schema rowset "DBSCHEMA_TABLES" for OLE DB provider "MSDASQL" for linked server "TEST". The provider supports the interface, but returns a failure code when it is used. (Microsoft SQL Server, Error: 7311)
Any ideas why this might be happening? does anyone know a solution to this?
I solved this by restarting my Server, it looks like the Sybase drivers was not fully registered on install.

SSIS SQL Native Client Error - Can't Diagnose Cause

We have a very large number of SSIS jobs that are scheduled every evening/early morning to run in succession. These jobs populate and update large amounts of data for our production systems. Recently, we have begun receiving an error message on different jobs at different times. So far, it has been impossible to reproduce on a consistent basis:
Code: 0xC0202009
Source: [Job Name] Connection manager "[Connection.Manager.Name]"
Description: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80004005 Description: "Communication link failure".
An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80004005 Description: "Named Pipes Provider: No process is on the other end of the pipe. ".
End Error
Error: 2009-03-10 05:19:51.09
Code: 0xC00291EC Source: Update record status Execute SQL Task
Description: Failed to acquire connection "[Connection.Manager.Name]". Connection may not be configured correctly or you may not have the right permissions on this connect... The package execution fa... The step failed.
The connection is definitely configured properly, and we are running it as a user with the proper permissions. For over a year, these jobs had performed flawlessly. Google searches turn up results that seem to span everything from possible connection issues to data integrity issues. We have tried working this from the data source end as a connectivity problem, and from the SQL Server db and the server box by checking event logs. Nothing seems to line up. Here is our setup:
We have one Server 2003 box with SQL Server 2005 dedicated to just housing and running SSIS jobs
We have a dedicated Server 2003 box with just the SQL Server database on it that houses our data and also serves up Reporting Services reports
Most of our jobs connect via ODBC to a Sybase DB to get data from our system of record and bring it down to the SQL Server for reporting and data manipulation
Has anyone run across this exception in a similar manner? Again, we have tried to troubleshoot the SQL Server DBs and also the Sybase connection with no luck.
In our case it was resource contention. Deadlocks were occurring due to table level locks from other jobs. The Native Client error wasn't descriptive enough to let us know what was wrong initially. We had to run SQL Server Profiler on the DB and filter for Deadlock errors. This article helped a lot to get us pointed in the right direction.
Hope that helps!!
If OLE DB is lying to you, then this could be anything at all. If it's not, then maybe there's no process on the other end of the pipe. You should look in the event logs, etc. to see if maybe the other process died.
Even processes that have been running in production for years can change their behavior if something else changes. For example, a backup or other automated job may be taking longer and longer, and now collides with the existing schedule of your SSIS packages. Such a thing might force closed any open connections, causing "no process on the other end of the pipe".

Resources