Question
· Jun 16, 2016

Can I connect to Cache using SSMS (SQL Server Management Studio)?

Can I connect to Cache using SSMS (SQL Server Management Studio) and view schemas and build queries as I do for SQL Server?

If yes, step-by-step instructions for setting up the connection would be greatly appreciated.

I googled the topic but didn't find any results that were on target.

Thanks,

Christian Bahnsen

Discussion (13)1
Log in or sign up to continue

I use SQL Server quit a lot and I've never seen that you can connect via SSMS to any other databases than MS SQL Server... You can use the Linked Server Feature to use Caché via SQL Server and use the SSMS to query Caché. But this a overkill just to execute some queries I think.

Attention advertising ;-) : You can take a look at Caché Monitor to connect directly to Caché (and other DBs). If you are familiar with SSMS you find many identical UI concepts.

Regards

Andreas

Thanks for the reply.

We already have a linked server to Cache and I run queries against Cache using EXECUTE ... AT or OPENQUERY syntax.

But I can't view namespaces/schemas or write direct queries against Cache.

A recent upgrade messed up the SQL portal in the System Management Portal where I normally start building queries.  Our MID department can't seem to fix the problem so I'm looking for workarounds.  I know some people use WinSQL to connect to Cache and a Cache tech support person thought SSMS could perform the same role, but he doesn't use SSMS personally so didn't know how to configure the connection.

Hence this post.  If it's doable, I'd love to get my instance of SSMS configured so I could write queries directly against Cache.  I'd still use the linked server and the EXECUTE or OPENQUERY syntax for queries driving reports I push out to our Report Server.

I became aware of Cache Monitor yesterday and that may be a solution, but if I can accomplish the same end using SSMS that's the route I'd prefer to take.

Eduard,

Thanks for the reply. 

I'm not sure if SSMS is "ODBC/JDBC" compliant so I've opened a parallel thread in the Microsoft SQL Server forum: https://social.msdn.microsoft.com/Forums/sqlserver/en-US/ea2bca86-1c23-4c4e-bbca-97130bd2aff8/can-i-connect-to-intersystems-cache-using-ssms-sql-server-management-studio-other-than-as-a-linked?forum=sqltools

Hopefully between these two forums we'll come up with a definitive answer as to whether SSMS can perform the same function as DataGrip or other ODBC/JDBC database management software.

Thanks again

Christian

Yes, you can set up a linked server but first, you need to create an ODBC connection.

  1. Create an ODBC connection
  2. Open SQL Server Management Studio
  3. Create linked server using other data source
  4. Select provider: Microsoft OLE DB Provider for ODBC Drivers
  5. Select Product name: same as the ODBC connection name
  6. Select Data source: same as the ODBC connection name
  7. Under Security tab select option “Be made using this is security context”
  8. Enter remote login with password

then  select top 1 * from [linked server name]..[schema name].[table name]