FreeTDS | A FreeTDS project compiling for iOS and macOS via xcode | iOS library
kandi X-RAY | FreeTDS Summary
kandi X-RAY | FreeTDS Summary
A FreeTDS project compiling for iOS and macOS via xcode.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of FreeTDS
FreeTDS Key Features
FreeTDS Examples and Code Snippets
Community Discussions
Trending Discussions on FreeTDS
QUESTION
I followed this website by installing
...ANSWER
Answered 2022-Mar-24 at 02:18SQLAlchemy 1.4 does not support SQL Server 2000. Use pip install sqlalchemy==1.3.24
.
QUESTION
i've got a python 3.8 script that uses the libraries pyobdc and concurrent.futures to query on a DB.
NB i want to clerify that i know i can have more than one connection and i know for sure that it's happening. what i cannot understand is where my bottleneck is
the structure is: I have one script (call it queries) that is imported in the second script (call it main) as a module. queries is a collection of functions, all with the same structure:
...ANSWER
Answered 2022-Mar-16 at 15:26There is a protocol to allow a single connection to have multiple concurrent queries running at the same time. It's called Multiple Active Result Sets, and I have no idea if FreeTDS uses it, but the Microsoft ODBC Driver can.
However the execution of mutliple queries on a single connection is interleaved not concurrent. If you want two queries to actually execute at the same time, use two connections.
QUESTION
I am trying to connect to our Databricks SQL endpoint using PHP in a Docker container.
I setup my Docker container to download and configure the ODBC driver as specified here: https://docs.databricks.com/integrations/bi/jdbc-odbc-bi.html#install-and-configure-the-odbc-driver-for-linux
My Docker setup is at https://github.com/rlorenzo/databricks_php
However, when it try to connect using ODBC from my PHP test script I get the error:
...ANSWER
Answered 2022-Feb-28 at 21:49The problem was that the Databricks SQL driver does not yet support ARM, which my laptop and Docker container was building for. See ('01000', "[01000] [unixODBC][Driver Manager]Can't open lib '/opt/simba/spark/lib/64/libsparkodbc_sb64.so' : file not found (0) (SQLDriverConnect)")
I updated my repo at https://github.com/rlorenzo/databricks_php with a working example and forced the container to build an x86 version.
Will update my repo if Databricks ever supports ARM.
Hope this helps someone in the future.
QUESTION
I'm trying to install pyodbc on Django to access Sql Server but the Docker image had no be built.
The Dockerfile:
...ANSWER
Answered 2022-Feb-22 at 13:46Compiler is simply complaining about a build time dependency, cc1 tool should be in your system to build pyodbc.
In Ubuntu you can solve this with
QUESTION
Is there an equivalent of odbc_connect
in pymssql
using freeTDS
driver?
For example using pyodbc
I can use connect within the connection string itself and then pass all required parameters:
conn_string = ("mssql+pyodbc:///?autocommit=true&odbc_connect={}".format(parameters)
Is it possible to use &connect={}
within the string using pymssql
& freeTDS
in SQLAlchemy
?
ANSWER
Answered 2022-Feb-14 at 13:29No, because odbc_connect=
is part of the pyodbc driver code in SQLAlchemy and the pymssql driver code has no corresponding option. That said, pymssql was actively supported in SQLAlchemy until recently, so if you need to pass any extra options to pymssql there is probably a way to do it. Check the documentation for details.
QUESTION
I'm trying to install slacker so I can do some SQL testing. I've never used Ruby before. I'm on Windows. My dev box only has access to the Internet via a proxy and I have to nominate all URls in advance.
I I downloaded and ran rubyinstaller-devkit-2.7.5-1-x64.exe
(because it requires Ruby 2.4/2.5+ and 2.7.X was recommended at the Ruby site) accepting all of the defaults.
When it got to MSYS2 I hit ENTER (MSYS2 base installation and MINGW development toolchain).
I got errors in the gpg section, e.g. (but not limited to)
...ANSWER
Answered 2022-Jan-16 at 16:19I have answered question 1 myself. If anyone else can give me a definitive answer to part two, I will happily mark that as the answer.
I guessed that I needed to download and install the mingw
packages that couldn't be downloaded somewhere. I did a bit of trawling and found this article (Offline installation of packages)which gave me the pointers I needed. I got these four files from https://repo.msys2.org/mingw/mingw64/:
QUESTION
I am trying to compile FreeTDS for the iPhoneOS platform using Autotools. However, I get the error:
...ANSWER
Answered 2022-Jan-10 at 21:17I brew reinstalled readline and this fixed the issue.
QUESTION
I have a large Sybase ASE C/C++ app which I would like to migrate to Postgresql. The application is using the Sybase CT library (nothing complex: simple SQL, few bulk uploads, etc.). Application is built and run on Linux using SYBASE OCS-16.
I'm trying to evaluate if the BabelFish extension can help speed up migration.
The first challenge (in moving from Sybsae) is that the application make extensive use of multi-statement queries to return multi result sets, using dynamically generated Transact-SQL. In few cases, the multi-statement queries use placeholders in the subsequent calls. For example: (this is not real code, but it's similar to the pattern)
...ANSWER
Answered 2021-Nov-08 at 16:23Coming from Sybase, and having written the book on ASE... it is true that ASE T-SQL and MSSQL T-SQL still have many similarities, so from that perspective things may work. However, there are also many nasty little differences. To name just a random few aspects: the empty string (a single space in ASE, really empty in MSSQL), string concatenation with NULL (MSSQL has moved away from what is still the Sybase default), the T-SQL OJ syntax (no longer supported in MSSQL and neither in Babelfish); different behaviour by some BIFs in some cases (SUBSTRING(), SPACE()), BIFs that SQL Server does not have, different syntax for RAISERROR and PRINT, CREATE TYPE/sp_addtype differences, @@FETCH_STATUS, different syntax for hints, ROLLBACK TRIGGER, extended GROUP-BY syntax. And then there's things like CREATE DATABASE/ALTER DATABASE options, QUIESCE DATABASE, replication, partitioning, that's different. As for connectivity: FreeTDS may work, but from a Babelfish perspective this is not actually supported. In summary: you mileage may vary. Both syntactically and semantically there will be differences that may impact your migration, so while some parts may work, you may need to patch up your ASE SQL code before Babelfish would accept it.
QUESTION
i'm trying to connect my Django to en existing legacy MS SQL database.
When im trying to run a sql on the database works fine:
...ANSWER
Answered 2021-Oct-25 at 14:31SOLVED
Dockerfile:
QUESTION
I have created several foreign tables already, and they all work fine, but now I have to deal with a table that has a column containing 20-30 KB of text in some rows. If that text is small, it is rendered in full, but if it happens to be longer than 2048 characters, the rest is cut off.
My tds_fdw setup:
...ANSWER
Answered 2021-Oct-24 at 19:29Thanks to @FlipperPA. In short, the solution I take is to set the "text size" parameter of /etc/freetds/freetds.conf or /var/lib/postgresql/.freetds.conf to the maximum value (4294967295):
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install FreeTDS
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page