Unix Technical Forum

Use opendatasource or similar to access sage line 50 ODBC DSN

This is a discussion on Use opendatasource or similar to access sage line 50 ODBC DSN within the SQL Server forums, part of the Microsoft SQL Server category; --> I'd like to access Sage line 50 from within SQL server, I have a test ODBC data source, DSN=sagedevel, ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-01-2008, 03:49 PM
Iain Sharp
 
Posts: n/a
Default Use opendatasource or similar to access sage line 50 ODBC DSN

I'd like to access Sage line 50 from within SQL server,

I have a test ODBC data source, DSN=sagedevel, user=manager, password
is blank.

I have tried

select * from
opendatasource('SQLOLEDB','Data Source=sagedevel;User
id=manager')...sales_ledger

but this is obviously wrong. Can anyone point me at the correct
documentation to work out what I need here.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-01-2008, 03:49 PM
Tom van Stiphout
 
Posts: n/a
Default Re: Use opendatasource or similar to access sage line 50 ODBC DSN

On Fri, 29 Feb 2008 11:43:02 +0000, Iain Sharp <iains@pciltd.co.uk>
wrote:

In Management Studio expand into Server Objects > Linked Servers and
add a linked server.
-Tom.


>I'd like to access Sage line 50 from within SQL server,
>
>I have a test ODBC data source, DSN=sagedevel, user=manager, password
>is blank.
>
>I have tried
>
>select * from
>opendatasource('SQLOLEDB','Data Source=sagedevel;User
>id=manager')...sales_ledger
>
>but this is obviously wrong. Can anyone point me at the correct
>documentation to work out what I need here.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-01-2008, 03:49 PM
Erland Sommarskog
 
Posts: n/a
Default Re: Use opendatasource or similar to access sage line 50 ODBC DSN

Iain Sharp (iains@pciltd.co.uk) writes:
> I'd like to access Sage line 50 from within SQL server,
>
> I have a test ODBC data source, DSN=sagedevel, user=manager, password
> is blank.
>
> I have tried
>
> select * from
> opendatasource('SQLOLEDB','Data Source=sagedevel;User
> id=manager')...sales_ledger
>
> but this is obviously wrong. Can anyone point me at the correct
> documentation to work out what I need here.


I have never heard of Sage line 50 before. I did find a site through
Google, but I cannot tell whether it uses SQL Server or something else.

But if Sage Line 50 runs on SQL Server, you will need to specify the
database, unless the user manager already has the desired database as
its default database.

--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 03-04-2008, 07:23 AM
Iain Sharp
 
Posts: n/a
Default Re: Use opendatasource or similar to access sage line 50 ODBC DSN

On Fri, 29 Feb 2008 22:17:15 +0000 (UTC), Erland Sommarskog
<esquel@sommarskog.se> wrote:

>Iain Sharp (iains@pciltd.co.uk) writes:
>> I'd like to access Sage line 50 from within SQL server,
>>
>> I have a test ODBC data source, DSN=sagedevel, user=manager, password
>> is blank.
>>
>> I have tried
>>
>> select * from
>> opendatasource('SQLOLEDB','Data Source=sagedevel;User
>> id=manager')...sales_ledger
>>
>> but this is obviously wrong. Can anyone point me at the correct
>> documentation to work out what I need here.

>
>I have never heard of Sage line 50 before. I did find a site through
>Google, but I cannot tell whether it uses SQL Server or something else.
>
>But if Sage Line 50 runs on SQL Server, you will need to specify the
>database, unless the user manager already has the desired database as
>its default database.


Unfortunately, it uses its own database. It does come with an ODBC
driver, and I did find the Linked server option to set it up. This has
met with limited success. (One table appears to return all values but
there are only 15 in the database, one fails after about 30).

I shall persevere.

Iain
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 03-04-2008, 07:23 AM
Erland Sommarskog
 
Posts: n/a
Default Re: Use opendatasource or similar to access sage line 50 ODBC DSN

Iain Sharp (iains@pciltd.co.uk) writes:
> Unfortunately, it uses its own database. It does come with an ODBC
> driver, and I did find the Linked server option to set it up. This has
> met with limited success. (One table appears to return all values but
> there are only 15 in the database, one fails after about 30).


In that case, specifying SQLOLEDB is no road to success, but it seems
that you have already returned from that blind alley.


--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:02 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com