Member Login

Username
Password
Forget Password
New Sign Up
Search Forum

Buy Support
Incidents

If you can't find your answer in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us private or confidential information:

Click Here
If you can't login and post questions or you are having trouble viewing forum posts:
Click Here
Callback
Support

If you live in USA, UK, Canada, Australia or New Zealand, you can leave us details on your question and request us to call you back and discuss them with you personally  (charges apply).

Click Here
 
Buy Support
Incidents
If you can't find your answer in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us private or confidential information:
Click Here

Forum : Linked Server in MS SQL 2005Search Forum

Forum Home > FlexODBC - ODBC Driver for DataFlex Embedded DBMS > FlexODBC Forum

 New Topic 
 
 Post Reply 
[1]  
 Linked Server in MS SQL 2005 
 Author   Message 
  Damien 
  
 Group: Members 
 Posts: 4 
 Joined: 2007-01-12 
 Profile
 Posted : 2007-01-12 12:42:02

I was wondering if it is possible to use your driver to provide a linked server in MS SQL 2005. This would be invaluable however, have limited knowledge of your driver outside of DSN connections.

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2007-01-12 20:29:47
See: Does QODBC work with MS SQL Server 2005 Linked Tables? for an example on using a ODBC driver with MS SQL Server. FlexODBC can be setup in a similiar way. 

  Top 
  Damien 
  
 Group: Members 
 Posts: 4 
 Joined: 2007-01-12 
 Profile
 Posted : 2007-01-18 16:19:15

Followed steps in Link thanks however, I am getting this error when running any query

OLE DB provider "MSDASQL" for linked server "NEXUS" returned message "[FlexODBC][FLEXERR] Seek to unwritten extent".

Msg 7330, Level 16, State 2, Line 2

Cannot fetch a row from OLE DB provider "MSDASQL" for linked server "NEXUS".

Cheers

Damien

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2007-01-18 20:08:45
Seek to unwritten extent means that your index key is pointing to a record beyond the EOF (end of file) of the .dat file. This is a DataFlex error that's normally caused by the .dat file being closed by a DataFlex user that's running a single user license or your index files (.k1, .k2 ... .k15) are corrupt, or you have mixed up the datafiles and index files if you have copied them. You will need to reindex or dfsort them, or you can reindex the tables using FlexODBC. See FlexODBC Indexes for more. 

  Top 
  Damien 
  
 Group: Members 
 Posts: 4 
 Joined: 2007-01-12 
 Profile
 Posted : 2007-01-19 01:34:27

I actually only do have a single user licence so what licence do I need for a linked server?

Cheers

Damien

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2007-01-19 08:30:33

I'm referring to DataFlex 2.3b and 3.01b applications running a Single User DataFlex runtime. I suggest you use VB Demo to see what tables you can query and the ones that need reindexing.

FlexODBC v4 doesn't have single user licenses, FlexODBC is sold in bundles of computer seats.

 

  Top 
  Damien 
  
 Group: Members 
 Posts: 4 
 Joined: 2007-01-12 
 Profile
 Posted : 2007-01-19 09:02:14

I suggest you use VB Demo to see what tables you can query
I have done this and tried different tables. I have other linked servers (different products though MS Access) so I am familiar with the syntax. However, FlexODBC linked server is not working. Perhaps I will try a re-index and try again. These tables are fine to access normally through the ODBC though such as VB Demo, SQL 2005 SSIS packages etc so don't think this is a problem.

Cheers

Damien

 

  Top 
  Louisa 
  
 Group: Members 
 Posts: 10 
 Joined: 2007-05-29 
 Profile
 Posted : 2007-06-05 04:08:11

I followed the steps to set up the linked server, when I click test connection, it tells me that the test connection to linked server succeeded. But when I use select statement as: select * from openquery (dataflex, 'select top 10 * from tablename') it give me following error and the sql server is shutdown.

A transport-level error has occurred when receiving results from the server. (provider: Shared Memory Provider, error: 0 - The pipe has been ended.)

what could be the cause?

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2007-06-05 08:15:34

Try something a little more basic like:

SELECT * FROM dataflex...tablename

 

  Top 
  Louisa 
  
 Group: Members 
 Posts: 10 
 Joined: 2007-05-29 
 Profile
 Posted : 2007-06-06 01:15:35

Yes, I've tried using select * from dataflex...tablename, same error comming back and sqlservice is shutdown. it seems like the server has no problem sending the query to dataflex but only when receiving data back from dataflex. The system DSN works fine when using VB demo and in IIS. it also works with excel query and MS Access linked table, it's just this SQL Linked Server with which I would like to build some view inside SQL Server to have an extra layer of security and usability.

I'm using SQL server 2005 with SP2 installed. I also tried on SQL 2000, same error message. What could be wrong?

Thanks a lot

 

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2007-06-06 08:15:15

When this didn't work, it can be because the Ole Automation Procedures Option is turned off in the SQL Server Surface Area Configuration.

To turn it on with a query, see:
http://msdn2.microsoft.com/en-gb/library/ms191188.aspx

which contains:
sp_configure 'show advanced options', 1;
GO
RECONFIGURE;
GO
sp_configure 'Ole Automation Procedures', 1;
GO
RECONFIGURE;
GO

 

  Top 
  Louisa 
  
 Group: Members 
 Posts: 10 
 Joined: 2007-05-29 
 Profile
 Posted : 2007-06-07 00:29:18

this option doesn't help much. I've tried to turned it both on and off. The behaviour is not consistant on either mode. Sometime it can get result back while other same amount of times I got error message.The performance is not consistant either. sometime it took more than 10 sec. to get 3 records back from dealers table and sometimes it only took a sec...(the data, the odbc driver and the sql server is located on same disk)....the processing message box which shows only on evaluation version also pops up on some cases although I'm using production version...

 I created another linked server linked to network data drive, this linked server never worked.. I always receive error message no matter the configuration. while the System DSN used in remote drive linked server have been tested both in VB demo and in IIS Application.. And the DSN name is unique in the box....

it looks to me that something is wrong in communication level between sql server and flexodbc... maybe you can give me more insight on this issue?..

Thanks a lot.

Louisa

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2007-06-07 09:22:16
The data folder must be on the server running MS SQL Server (a local folder on the server). It cannot be on a networked drive on another computer. 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to