Comments (14)
What does the server give when running select @@version
? I tried to reproduce this, but the table query gives errors on every SQL server I tried.
from msphpsql.
I can't seem to reproduce this one. I can execute the select query just fine with no errors. Also the table create query appears to be incorrect, the default values and NULL settings have to come after COLLATE
, did it actually work as is?
from msphpsql.
Probably that type of conversion isn't available by default on Alma Linux, I'm not sure since that's not an officially supported OS.
from msphpsql.
Alpine's iconv does not have encodings for Japanese (among others). There is a gnu-libiconv
package that contains a lot of the missing code pages, including Japanese ones. I've never used it myself, but apparently this is how you do it:
apk add --no-cache gnu-libiconv
to install
ENV LD_PRELOAD /usr/lib/preloadable_libiconv.so
before running the app
Here's the page for it, with more info: https://www.gnu.org/software/libiconv/
from msphpsql.
select @@Version
Microsoft SQL Server 2016 (SP3-GDR) (KB5021129) - 13.0.6430.49 (X64)
Jan 22 2023 17:38:22
Copyright (c) Microsoft Corporation
Standard Edition (64-bit) on Windows Server 2012 R2 Standard 6.3 <X64> (Build 9600: )
from msphpsql.
I can't seem to reproduce this one. I can execute the select query just fine with no errors. Also the table create query appears to be incorrect, the default values and NULL settings have to come after
COLLATE
, did it actually work as is?
It's OCRD table for SAP B1 database, you can find it here https://sap.erpref.com/?schema=BusinessOne9.3&module_id=3&table=OCRD
My app connected to existing SAP B1 database, I don't create new one.
Above creation SQL is just my extraction of structure using Heidi SQL so that can let you know the structure, I don't know the statement is weird to SQL Server :) It's sort of "reverse" from existing database, using Heidi SQL as tool.
The query can run in HeidiSQL, MS Azure Data Studio... but if I run in SqlCmd
in the environment above, the error will throw.
from msphpsql.
Also the table create query appears to be incorrect, the default values and NULL settings have to come after
COLLATE
, did it actually work as is?
I just updated the table creation, generate from MS Azure Data Studio should be correct one.
from msphpsql.
Run in Laravel via sqlsrv extension
Run directly in sqlcmd
utility
Expected result (run in Azure Data Studio, on Windows, it works)
from msphpsql.
If I run sqlcmd
utility on Windows it will also work
The error is only happened with the sqlcmd
on Linux (Alma 9.2) as above
from msphpsql.
Just found this https://stackoverflow.com/a/77140830/223934
Basically installing glibc-gconv-extra solve my problem.
sudo dnf install glibc-gconv-extra
But the problem doesn't exist if I don't update. Do you have any idea?
from msphpsql.
Probably that type of conversion isn't available by default on Alma Linux, I'm not sure since that's not an officially supported OS.
Not only Alma Linux, but the entire Fedora family (including RHEL, Oracle Linux, Centos). For some distros, glibc
already includes gconv
, but for Fedora family, the gconv
has been splitted in to a separate package glibc-gconv-extra
https://fedoraproject.org/wiki/Changes/Gconv_package_split_in_glibc
I think the ODBC should verify the dependency when installing.
from msphpsql.
If installing glibc-gconv-extra on Red Hat x glibc systems solve the problem, does a solution exist on Alpine Linux x musl systems?
from msphpsql.
I don't believe that package is available on Alpine, but what encodings are you looking for?
from msphpsql.
My question is related to this stackoverflow question where the error could be a lack of enconding support for Japanese.
from msphpsql.
Related Issues (20)
- TrustServerCertificate no longer working in v5.11.1 HOT 9
- CentOS9 SQL Server 2014 connect failed. Microsoft ODBC Driver 18 for SQL Server : TCP Provider: Error code 0x2746. HOT 6
- Cakephp2 Application takes longer time to fetch data from sql server database resulting php memory error HOT 3
- Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server HOT 1
- Memory leak in Microsoft ODBC Driver 17.10.5 for SQL Server HOT 4
- HY104 Invalid precision value when reusing prepared statement HOT 4
- SQLSTATE[01002] Adaptive Server connection failed (xxx.xx.xx.xxx) HOT 1
- Issue connecting to SQL server from Openshift HOT 1
- Unable to build version 5.12.0beta1 on Windows HOT 2
- New attribute for sql bigint and decimal/numeric types to php int and float types HOT 1
- Performance problem when using params on select query HOT 2
- Error on both ARM64 and AMD64 docker build HOT 1
- apt fails to install from pmc-geofence.trafficmanager.net: 403 Forbidden HOT 10
- Error requesting access token while Azure webapps (php) connect to Azure SQL server by UMI HOT 4
- Windows DLL available to download
- unable to install in ubuntu 22.04 container HOT 1
- SQL server connection HOT 8
- When will there be support for installing Ubuntu 24.04? HOT 1
- Error OpenSSL Shutdown while in init - cURL - MSSQL HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from msphpsql.