If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Microsoft SQL Server > 4D database as a linked server in MSSQL

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old
Registered User
 
Join Date: Nov 2012
Posts: 2
Red face 4D database as a linked server in MSSQL

I need to get access to a 4D database from MSSQL.
I tried with this script, using an ODBC connection, with bad results:

EXEC sp_addlinkedserver
@server = 'yourLinkedDBName',
@srvproduct = 'mydb.4db',
@provider = 'MSDASQL',
@provstr = 'dsn=myDB4Dv11;UID=Designer;'

I get the message error:
Data source name not found and no default driver specified.

Please someone can help me?
Thank you
Reply With Quote
  #2 (permalink)  
Old
Registered User
 
Join Date: Aug 2004
Location: Dallas, Texas
Posts: 787
Quote:
Originally Posted by jazzking View Post
I need to get access to a 4D database from MSSQL.
I tried with this script, using an ODBC connection, with bad results:

EXEC sp_addlinkedserver
@server = 'yourLinkedDBName',
@srvproduct = 'mydb.4db',
@provider = 'MSDASQL',
@provstr = 'dsn=myDB4Dv11;UID=Designer;'

I get the message error:
Data source name not found and no default driver specified.

Please someone can help me?
Thank you
If you are going to use a dsn then you need to create a dsn first which as all the connection information. It's an ODBC connection. Try looking on your start-->control panel--> ....

Good luck...
Reply With Quote
  #3 (permalink)  
Old
Registered User
 
Join Date: Nov 2012
Posts: 2
Of course I created a dsn connection, which works right. The problem is using it in sql!
Reply With Quote
  #4 (permalink)  
Old
Registered User
 
Join Date: Jan 2003
Location: Massachusetts
Posts: 5,458
Did you create the DSN on the server, or on your client machine? It should be on the server.
Reply With Quote
Reply

Tags
4d db, mssql

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On