We have a Sybase 17 ASA server and want to connect using an ODBC driver. Our goal is to use the full .NET Core 2.1 and above, not .NET Standard or .NET Framework 4.x.
How can I connect with Sybase 17 ASA in .NET Core, using ODBC?
2.9k views Asked by MeanGreen At
3
There are 3 answers
0
RemarkLima
On
There is now a .NET Core 3.1 library iAnywhere.Data.SQLAnywhere.NETCore
https://www.nuget.org/packages/iAnywhere.Data.SQLAnywhere.NETCore/
So far, this has provided the results I've needed to query data and using native libraries rather than ODBC or the old 4.6 libraries.
Edit to add, I believe it is still Windows only, so doesn't open up Unix hosting sadly - but is a massive improvement to using the old .NET libraries.
Related Questions in C#
- How to call a C language function from x86 assembly code?
- What does: "char *argv[]" mean?
- User input sanitization program, which takes a specific amount of arguments and passes the execution to a bash script
- How to crop a BMP image in half using C
- How can I get the difference in minutes between two dates and hours?
- Why will this code compile although it defines two variables with the same name?
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Why can't I use the file pointer after the first read attempt fails?
- #include Header files in C with definition too
- OpenCV2 on CLion
- What is causing the store latency in this program?
- How to refer to the filepath of test data in test sourcecode?
- 9 Digit Addresses in Hexadecimal System in MacOS
- My server TCP doesn't receive messages from the client in C
- Printing the characters obtained from the array s using printf?
Related Questions in ASP.NET-CORE
- Windows environment variables at appsettings.json
- Which approach is right while creating a service for your update method?
- New Blazor Web App, Password Reset "A valid antiforgery token was not provided"
- No webpage was found for the web address: https://localhost:7002/Category/Add?area=Admin. Why is my URL generated like ?area=Admin instead of /Admin/
- how to get the html for a tag helper in code
- How to share authorization implemented in the server project with the client project in Blazor Web App Auto project?
- Why https is disabled on publish in .NET Core 7.0
- How to set language in a server-side rendering blazor app
- How can I debug server side rendering blazor code in a component?
- ASP.NET Core 6 randomly returning 200 with empty response
- ASP.NET Core MVC : NullReferenceException: Object reference not set to an instance of an object
- ASP.NET Core Identity Custom Register Endpoint
- VS Community 2022 cannot install dotnet-ef when i try to publish
- How does ASP.NET Core Identity ensure username is unique under concurrent conditions?
- In clean architecture, is the presentation layer allowed to communicate directly with the infrastructure layer?
Related Questions in ODBC
- Snowflake ODBC xdg-open Missing X server or $DISPLAY
- Stata + ODBC driver requires login too often
- mysql with odbc to ms access - runtime error 3146 (odbc call failed)
- Informix Golang client package
- Access won't open past the splash screen
- Can't make sense why ConnectionError: Data source name not found and no default driver specified
- Issue interacting via dbplyr with remote SQL tables probably since odbc or DBI or dbplyr package update
- CentOS/RHEL download dependencies
- Error connecting to SQL Server using pyodbc: Data source name not found and no default driver specified
- How to Implement Multi-Parameter Queries in SSRS Report Builder with Databricks ODBC?
- C++ Poco ODBC issue with setting char type in sql
- Firbird DB multiple connections problem using BDE+ODBC connection
- SQL Server configuration giving [ODBC Driver 17 for SQL Server TCP Provider: Error code 0x2746
- connecting to postgres using ODBC windows with gssencmode not working
- Providex ODBC CONCAT issue
Related Questions in SYBASE
- Alternative to Top 1 in Sybase DB
- Rounding/conversion of Number/decimal in Sybase IQ
- Connect to Sybase IQ server using Python script on Mac M2
- how to check like condition in if loop
- How can i use a select statement inside another select query statement?
- How to add two sql column decimal values in normal select query
- count(Distinct) windowing function alternative
- Could not load file or assembly 'Sybase.AdoNet2.AseCient'
- Mybatis return -1 when insert and update query execute
- Sybase IQ datepart function strange behaviour
- The type initializer for 'Sybase.Data.AseClient1.AseConnection' threw an exception. SSIS - Sybase
- Sybase jTDS vs jconnect driver
- Azure Data Factory | Sybase database | Error While pulling Data
- Sybase isql : An error occurred when attempting to allocate localization-related structures
- Sybase ASE connetionString is not working without userName/Password
Related Questions in SYBASE-ASA
- sybase model database is unavailable
- Unable to connect to the SYBASE Database in Docker when triggered through FASTAPI
- What does adding a comma and a number mean in a Sybase SQL where expression?
- Sybase Database Support on Node.js with SSL
- sybase escape character
- Replication from Sybase SQL Anywhere to MSSQL
- How to pass TEXT(the list of id's as a string) to sybase ase stored procedure
- Sybase ASA sequence
- I need to do a query from 2 tables using count function
- SQL Unique ID for union all - Sybase
- How to return greater value of the period for unique id combination?
- Sybase identity_gap attribute is not maintaining specified gap
- Update record with case statement for Sybase ASA11
- Show record data in the last 1 hour in sybase ASA11
- Create Trigger for Update with condition in Sybase ASA16
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
1. Prerequisites
Let's assume you've already installed SQL Anywhere 17 on the machine, including the required drivers.
2. Application setup
3. C# code
Add the following namespaces:
using System.Data;
using System.Data.Odbc;
Setup the connectionstring:
DRIVER={SQL Anywhere 17};server=srv_name;Database=db_name; Uid=user;pwd=pass;LINKs=tcpip(host=aaa.bbb.ccc.ddd)
Retrieve some data to confirm it works: