ODBC Connectin from Microsoft SQL Server Management Studio

  • Hi,

    I have created a DSN from the ODBC in Administrative tools.

    Is there a way I can connect to that DB from my Microsoft SQL Server Management Studio?

    FYI:The Provider for this DB does not exist in LinkedServer

    Thanks

  • After little bit of 'googling',I could successfully connect to my ODBC

    1.)Exec sp_addlinkedserver

    EXEC sp_addlinkedserver

    @server = 'MY_ODBC_SERVER',

    @srvproduct = '',

    @provider = 'MSDASQL',

    @datasrc = 'QFTest' //System DSN

    GO

    2.)To check whether SP worked,

    EXEC sp_tables_ex @table_server = 'MY_ODBC_SERVER'

    3.)I could successfully retrieve all the data from the table 'BTL'

    SELECT * FROM OPENQUERY(MY_ODBC_SERVER, 'SELECT * FROM BTL')

  • Thank you so much! Saved me a ton of time 🙂

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply