5185 error advantage

I created an SSIS project in Visual Studio 2014 which runs on Windows Server 2008 R2 and SQL Server 2014.  I need to load and ADT file from an Sybase Advantage database into a table on SQL Server.  All I have is the detached ADT file.  The Advantage server is on a different Windows Server.  I downloaded and installed the Advantage OLE DB provider from Sybase.  The provider shows up in the data source list on SQL Server, but it does not show up in the data source list in my SSIS project.  I searched the web but found no solutions.  Is there a solution to this problem?  Is there a better process to use to accomplish this?  Thanks.
  • Remove From My Forums
  • Question

  • I created an SSIS project in Visual Studio 2014 which runs on Windows Server 2008 R2 and SQL Server 2014.  I need to load and ADT file from an Sybase Advantage database into a table on SQL Server.  All I have is the detached ADT file.  The
    Advantage server is on a different Windows Server.  I downloaded and installed the Advantage OLE DB provider from Sybase.  The provider shows up in the data source list on SQL Server, but it does not show up in the data source list in my SSIS project. 
    I searched the web but found no solutions.  Is there a solution to this problem?  Is there a better process to use to accomplish this?  Thanks.

    • Moved by

      Friday, January 30, 2015 6:58 AM
      the issue is related to the SSIS

При запуске программ Error 5185: Local server connections are restricted in this environment.

Pozdnyakov_AS

Новичок
Сообщения: 5
Зарегистрирован: 22 мар 2012, 06:31

Ошибка 5185

При запуске некоторых (основных) программ (АЗС-ЭКОЛОГ, Инвентаризация и т.д.) появляется ошибка:
Error 5185: Local server connections are restricted in this environment.
See the 5185 error code documentation for details. axServerConnect.

Работа в организации осуществляется через терминальный доступ (удаленный рабочий стол)!
Что делать?

Аватара пользователя

Kotucheny

Душа форума Звезда за порядок

Модератор
Сообщения: 1848
Зарегистрирован: 10 фев 2011, 10:28
Награды: 2
Откуда: Тамбов
Благодарил (а): 268 раз
Поблагодарили: 292 раза

Re: Ошибка 5185

Сообщение

Kotucheny » 12 мар 2014, 19:44

Лучше всего Вам написать на официальную почту Фирмы Интеграл.

Изображение

Катя, Катя, Катерина, до чего ж ты хороша!
Не пошла работать в школу, на завод зато пошла!
И теперь на производстве от нее огромный толк!
Весь Тамбов Катюшу знает и забыт тамбовский волк.(с)

Аватара пользователя

Вадим Зыков

Интеграл
Сообщения: 5476
Зарегистрирован: 27 июн 2005, 13:41
Откуда: Санкт-Петербург
Благодарил (а): 244 раза
Поблагодарили: 2674 раза
Контактная информация:

Re: Ошибка 5185

Сообщение

Вадим Зыков » 13 мар 2014, 08:06

Программы не работают через удаленный рабочий стол (терминальный доступ).

Интегрируй форум в Яндекс

P.S. Вопросы по работе с программами или выбору программ прошу писать либо на форуме в соответствующих темах, либо по электронной почте. В ЛС на такие вопросы не отвечаю. Прошу понять правильно.

Pozdnyakov_AS

Новичок
Сообщения: 5
Зарегистрирован: 22 мар 2012, 06:31

Re: Ошибка 5185

Сообщение

Pozdnyakov_AS » 13 мар 2014, 09:46

Вадим вообще что-ли нет никакой возможности работать в терминальном доступе???
Может докупить что-нибудь или ключ нужен специальный?
Почему это не реализовано, ведь это очевидные потребности пользователей Ваших программ?!!!
Думаю, что у многих пользователей будет рано или поздно возникать эта потребность!

У нас в организации всех сотрудников переводят на работу с виртуальными машинами, а нам что делать в этом случае?

Аватара пользователя

Вадим Зыков

Интеграл
Сообщения: 5476
Зарегистрирован: 27 июн 2005, 13:41
Откуда: Санкт-Петербург
Благодарил (а): 244 раза
Поблагодарили: 2674 раза
Контактная информация:

Re: Ошибка 5185

Сообщение

Вадим Зыков » 13 мар 2014, 10:12

К большому сожалению это не предусмотрено в наших программах. Докупить нечего.

Интегрируй форум в Яндекс

P.S. Вопросы по работе с программами или выбору программ прошу писать либо на форуме в соответствующих темах, либо по электронной почте. В ЛС на такие вопросы не отвечаю. Прошу понять правильно.


Аватара пользователя

DDim

Эколог
Сообщения: 3592
Зарегистрирован: 12 дек 2011, 15:22
Награды: 5
Откуда: Москва
Благодарил (а): 872 раза
Поблагодарили: 1195 раз
Контактная информация:

Re: Ошибка 5185

Сообщение

DDim » 16 июн 2019, 15:21

Вот тут решил тоже попробовать в выходные через удаленный рабочий стол Эколог запустить. Результат та же Ошибка 5185.
Не планируется ли всё же реализовать возможность работать удаленно?

VadimV

Звезда за помощь Медаль за помощь

Заслуженный эколог
Сообщения: 2240
Зарегистрирован: 09 июн 2008, 04:20
Награды: 2
Благодарил (а): 302 раза
Поблагодарили: 306 раз

Re: Ошибка 5185

Сообщение

VadimV » 16 июн 2019, 17:16

Работаю периодически через Тимвьювер, никаких проблем ,кроме скорости не очень высокой. Но это какие-то косяки с роутером.

Аватара пользователя

DDim

Эколог
Сообщения: 3592
Зарегистрирован: 12 дек 2011, 15:22
Награды: 5
Откуда: Москва
Благодарил (а): 872 раза
Поблагодарили: 1195 раз
Контактная информация:

Re: Ошибка 5185

Сообщение

DDim » 16 июн 2019, 18:20

VadimV, похоже придётся так же, а хотелось без этого ) спецом ВПН настроил — так то для Тимвьюера он и не нужен )

Аватара пользователя

Вадим Зыков

Интеграл
Сообщения: 5476
Зарегистрирован: 27 июн 2005, 13:41
Откуда: Санкт-Петербург
Благодарил (а): 244 раза
Поблагодарили: 2674 раза
Контактная информация:

Re: Ошибка 5185

Сообщение

Вадим Зыков » 17 июн 2019, 09:12

DDim, нет не планируется.

Интегрируй форум в Яндекс

P.S. Вопросы по работе с программами или выбору программ прошу писать либо на форуме в соответствующих темах, либо по электронной почте. В ЛС на такие вопросы не отвечаю. Прошу понять правильно.

Home →
Star Bill of Lading →
Errors / Messages →
Error Code 5185

You must be running this software under a Terminal Services or RDP (Remote Desktop Protocol) environment. Is this true? If so, this version of the software will not run because of restrictions placed by the database manufacturer SAP. If you need to be able to run under this environment, then you would need to purchase the SAP Advantage Database Server Software.

* If you can use a different remote control workstation software like Teamviewer or Remote Utilities, you can run the software fine.  Just cannot do this with Remote Desktop because of the SAP restrictions without purchasing their DB software. *

Here is the current price list for the SAP Advantage Database C/S Software:

1 User Server — $159.00
2 User Server — $269.00
3 User Server — $450.00
5 User Server — $650.00
10 User Server — $1240.00
If a solution for more concurrent users are needed, please contact SAP for pricing.

If interested, you can contact SAP directly at: SAP — ADS Sales team

You will need to know the max number of users that would be connecting to the software concurrently (at the same time).  As there are different price points based on the number of concurrent users needed.

Here is the explanation of the error code from the manufacturer.

Error 5185
Advantage Local Server connections are restricted when used from a web server, an application server, a terminal server, or any other type of middleware or server product used to access data on behalf of remote computers.
If you receive this error, it is because your application attempted to make a local server connection from one of these restricted environments.

If an application using this SOFTWARE PRODUCT is distributed to work without the Advantage Database Server (i.e., it uses the Advantage Local Server to access data), the application must act as a «client» that directly accesses and uses the data. To be specific, only computers that have the Advantage Local Server DLL loaded into memory can have access to the data that is obtained by that Advantage Local Server DLL. The application cannot act as «middleware» or as a «server» by having the data forwarded by any means to a separate computer. In other words, it is illegal to use the Advantage Local Server with a web server, an application server, a terminal server, or any other type of middleware or server product to access data on behalf of remote computers. An Advantage Database Server (a.k.a., remote server) product must be purchased and used to allow this SOFTWARE PRODUCT to access data on behalf of applications running on remote computers.

Join the DZone community and get the full member experience.

Join For Free

In one of my projects I have to read FoxPro DBF-files and import data
from them. As this code must run in server and customer doesn’t want to
install FoxPro there we found another solution that seems at least to
me way better. In this posting I will show you how to read DBF-files
using Sybase Advantage data providers.

Getting Advantage data providers

Here are the download links to data providers:

  • Advantage .NET Data Provider Release 10.1 for Windows (32-bit and 64-bit)
  • Platforms for Advantage OLE DB Provider Release 10.1
  • Platforms for Advantage ODBC Driver Release 10.1

I downloaded and installed .NET data provider and my example here is fully based on this.

Configuring application

Advantage Data provider test application

If you run application without configuring some data providers stuff before you will get the following error:

Error 5185: Local server connections are restricted in this environment. See the 5185 error code documentation for details.

Go to your application bin folder and add there usual text file called ads.ini. Here is the content for this file:

[SETTINGS]
MTIER_LOCAL_CONNECTIONS=1

Make sure you add reference to Advantage data provider assembly and include ads.ini to your project like shown on image above.

Getting data to DataTable

Here is short code example about how to get data from DBF-file to DataTable.

static void Main(string[] args)
{
    var tableName = "TABLENAME_WITHOUT_EXTENSION";
 
    var connStr = "data source={0};tabletype=vfp;servertype= local;";
    connStr = string.Format(connStr, "c:\temp\");
 
    var table = new DataTable();
 
    using (var conn = new AdsConnection(connStr))           
    using (var adapter = new AdsDataAdapter())
    using (var cmd = new AdsCommand())
    {
        cmd.Connection = conn;
        cmd.CommandText = "select * from " + tableName;
        adapter.SelectCommand = cmd;
 
        conn.Open();
        adapter.Fill(table);
        conn.Close();
    }

    Console.WriteLine("Table fields:");
    foreach (DataColumn col in table.Columns)
        Console.WriteLine(col.ColumnName);
 
    Console.WriteLine(" ");
    Console.WriteLine("Rows: " + table.Rows.Count);
 
    Console.Read();
}

If
Advantage data providers were installed correctly and there are no
errors in table names, locations and your SQL query then you should see
list of table column names and row count on console window when you run
the application.

Data (computing)
Advantage (cryptography)
Database

Published at DZone with permission of Gunnar Peipman, DZone MVB.

See the original article here.

Opinions expressed by DZone contributors are their own.

Понравилась статья? Поделить с друзьями:

Читайте также:

  • 5170 ошибка мерседес пневмо
  • 5170 ошибка мерседес w164
  • 517 power supply error что это
  • 5166 ошибка рено сценик
  • 5150 ошибка мерседес 221

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии