4

I'm attempting to create a linked server from SQL Server to Vertica to pull over some data. I've attempted using the following ODBC found here.

The code I'm currently trying is:

EXEC dbo.sp_addlinkedserver 
@server = N'VERTICA', 
@srvproduct=N'', 
-- SQL Server driver
@provider=N'MSDASQL',
-- Connection string
@provstr=N'Driver=Vertica ODBC Driver 4.1;
 Servername=Vertica;
 Port=5433;
 Database=Vertica;
 UserName=user;
 Password=pass'

The error message I get is:

OLE DB provider "MSDASQL" for linked server "VERTICA" returned message "[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified".

asked Oct 30, 2013 at 17:01
2
  • Any chance you've installed a 32 bit driver and SQL Server expects a 64 bit? Commented Oct 30, 2013 at 17:13
  • @billinkc Verified that the 64-bit ODBC drivers are installed. Commented Oct 30, 2013 at 17:53

1 Answer 1

4

The driver in the connection string needs to be Vertica, not Vertica ODBC Driver 4.1.

EXEC dbo.sp_addlinkedserver 
 @server = N'VERTICA', 
 @srvproduct=N'', 
 -- SQL Server driver
 @provider=N'MSDASQL',
 -- Connection string
 @provstr=N'Driver=Vertica;
 Servername=ServerName;
 Port=5433;
 Database=DatabaseName;
 UserName=user;
 Password=pass'
answered Oct 30, 2013 at 19:10

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.