SQL tool to run an select query against multiple Informix servers? - sql

I was using SQL Explorer to connect to an Informix server and get the output. Now I wish to run the same select query on multiple servers and get the results in each server. Could someone tell how its done with SQL explorer or if there is any other tool that will get the work done? Steps to do will be much appreciated.

Related

QODBC Online linked server to SQL server has empty tables - no data

I have a linked server from SSMS to Quickbooks through QODBC Online. I have run the QODBC Setup Screen and connected to the desired client. The query runs but returns no data. it shows all the column names but no data. am I missing a step?
created linked server. tested connection. run query. no results
Im able to connect and receive data through powerbi but nothing on sql server.
what am i missing?
Please check if you are able to query the table using QODBC Online Test Tool.
If you are using SQL Server 32-Bit, use the 32-Bit test tool. If you are using SQL Server 64-Bit, use the 64-Bit test tool.
If you cannot get the results in the test tool, please reset the QODBC Online Optimizer.
QODBC Online Setup Screen >> Optimizer >> Reset Optimizer.
If you can get the results in the test tool, the same SQL statement should also work in the SQL statement.
If you are still facing the issue, please raise a support ticket at https://support.qodbc.com

Issuing Teradata SQL Assistant query via script

I use Teradata SQL Assistant to run SQL queries against a DB2 database accessed via an ODBC connection. This is an entirely interactive process whereby I first start the SQL Assistant app, then connect to the correct data source and finally write and execute my query.
What I would like to do is to be able to achieve the same result, i.e. get the result set from a query, but via some sort of script, which would connect to the the data source and run my query.
Is this possible?
Yes this is possible. Install the IBM Data Server Client software appropriate for your version of DB2, then use the DB2 command line processor with the -f option, as described in the manual.

Alternatives to Linked server (the remote server is pervasive sql)

We have spent in total around 50 hours trying to debug our linked server connection from sql server 2012 to pervasive sql.
Needless to say, pervasive is the issue.
We are ONLY running select queries like this:
select * from [sqlserver].[pervasiveserver].[db]..[myremotetable]
We are so frustrated with this, that I do not even want to discuss the errors that we are getting. Several experts said that it's probably related to a bad pervasive odbc driver.
We have SSRS reports whose datasource points to the sql server.
Can you suggest an alternative method to linked servers in this case? Our main task is to be able to select from a pervasive database using SSRS?
I would build SSIS packages to import the data into tables with the same/similar names in a new SQL Server database.
SSIS is usually more solid with ODBC drivers and has much richer error handling to get through those niggly issues. You can make a speedy start using the SSMS Import Data Wizard and saving it's results as an SSIS Package.
Keeping the same table names minimizes your SSRS rework.
The tables in SQL Server can also be indexed to deliver fast report performance.
Before giving up on linked servers, see if you have better results with using openquery instead of fully qualified tsql. We have a linked server from sql server to redbrick, another pair that doesn't play nicely together, but using openquery solves all these problems.
You will probably have to write a stored procedure for every query as opposed to putting the sql into your report.

federation sql view azure

So I've been trying to use federations in SQL Azure for my site.
I've been first trying to find a tool where i can test my coding with a full graphic interface.
I'm unable to find the context menu for edit top 200 rows in SSMS (SQL Server Management Studio).
Can anyone help?
There may not be exactly GUI interface to play completely with SQL Database federation through SSMS R2 however combining proper queries together with SSMS you may be able to get the results you are looking for. I am not sure how you are trying to display first 200 records with your federated data however if you provide more steps how do you do it, I may add more info.
FYI, here is how SSMS is used to work with SQL Database Federation.

See queries that hit SQL

Is there a way using sql 2008 Management Studio to look at the queries that hit the server? I'm trying to debug a program and I get messages like "Incorrect syntax near the keyword 'AND'". Since the queries are being dynamically generated it's a hassle to figure out what is going to the server.
Any help is appreciated!
There is a tool called Profiler that will tell you all information that you'll need. MSDN: http://msdn.microsoft.com/en-us/library/ms187929.aspx
I'm not aware of any method to do this using SQL Server Management Studio, but if you installed SSMS then you probably also installed the SQL Profiler. If you fire that up and run the TSQL_SPs profiler template, you can see every statement that's hitting the database.
Since the queries are being dynamically generated it's a hassle to figure out what is going to the server.
Why not just put the query that's generated into a message box, or print it to the console, or webpage, etc. ??
Trying to catch it at the DB server seems to be the long-way-around to debugging some simple ad-hoc queries.
Go to Management...Activity Monitor in the object explorer.
It's not live though, you will have to refresh it manually.
start up profiler from SSMS (Tools-->SQL Server Profiler), run a trace and select the T-SQL events
One option is to use SQL Server Profiler to run a trace. However, in some shops SQL Server permissions are set so only DBAs can run traces.
If you don't have sufficient rights to run a trace, then another option is to view the network traffic between the application that generates the SQL and box SQL Server is running on. WireShark works great for that.