Upgrade of SAP B1 from version 9.2 PL 07 to 10.0 PL 02 - sapb1

I'm encountering the following problem. When upgrading SAP B1 database from 9.2 PL 07 version to 10.0 PL 02 version (on MS SQL) i get an error -5002 - internal error, on Dashboard Packages object. Does anyone had a similar case? Maybe someone knows the solution for that?

Please update to 9.3 pl6 min. before upgrade to 10

Related

df.to_sql connection issue, any idea?

Below are my codes
I want to export a python dataframe to azure SQL
df
Date ... Count
1 2019-09-04 ... 0
2 2019-09-04 ... 0
params = urllib.parse.quote_plus(r'Driver={ODBC Driver 13 for SQL Server};Server=tcp:xxxxxxx.database.windows.net,1433;Database=aaaaaaa;Uid=user#aaaaaaa;Pwd=$$$$$$$$$$$;Encrypt=yes;TrustServerCertificate=no;Connection Timeout=30;')
conn_str = 'mssql+pyodbc:///?odbc_connect={}'.format(params)
engine_azure = create_engine(conn_str,echo=True)
df.to_sql('users', con=engine)
Error below:
sqlalchemy.exc.InterfaceError: (pyodbc.InterfaceError) ('IM002', '[IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified (0) (SQLDriverConnect)')
(Background on this error at: http://sqlalche.me/e/rvf5)
It sounds like that you want to save a pandas dataframe to Azure SQL Database via the function pandas.DataFrame.to_sql.
There is a SO thread Locating ODBC Driver 13.0 for SQL Server on Ubuntu Azure VM answered by me to show the connection code with SQLAlchemy and pyodbc. So I think your code is correct.
However, just according to your error information, it seems that you did not install Microsoft ODBC Driver for SQL Server first and just install the Python packages pyodbc and sqlalchemy. So please download the related odbc driver first from https://learn.microsoft.com/en-us/sql/connect/odbc/download-odbc-driver-for-sql-server?view=sql-server-2017 and install it. Then try your code again.
If you created your Azure SQL Database just now, I recommanded you need to install the 2017 version of MS ODBC driver and change the connection string with Driver={ODBC Driver 17 for SQL Server}( not 13 for 2013 driver version), because the MS 2013 ODBC driver not support the latest Azure Database.

Oracle Enterprise vs Express returns different results

I have encountered strange problem.
We search from 2015-07-11 to 2015-07-13 (example situation)
In enterprise edition 07-13 is not included but in express edition is?
We are using BETWEEN
The column is DATE

JSON_VALUE() stopped working in SQL Azure v12?

Since yesterday the function JSON_VALUE() is not working anymore in SQL Azure v12.
Who knows why this disappeared and/or when it will come back?
Probably associated: I'm getting this 12.0 instead of 13.0 version on ##version now ?!?
SELECT *##version* as SqlAzureVersion
Result:
Microsoft SQL Azure (RTM) - 12.0.2000.8 Dec 2 2015 00:01:31 Copyright (c) Microsoft Corporation
SELECT **JSON_VALUE**(N'{"a": "b"}', N'$.a')
Result:
'JSON_VALUE' is not a recognized built-in function name.
Azure SQL Database now officially supports JSON functions see https://azure.microsoft.com/en-us/updates/public-preview-json-in-azure-sql-database/

How to determine SQL server version number for Compact edition 4 up to full sql server 2008?

Lot's of people have asked and been responded to about how to determine the version of the sql server using things like ##VERSION, or SERVERPROPERTY('productversion') but none of these work with sql server compact edition 4.
Is there some universally supported method to determine which sql server edition and version is in use through a sql query or ado.net code that works for compact edition all the way to full sql server?
I want to determine which exact edition / version of SQL server is in use so I know what type of paging query to issue from my code. Sql CE 4 uses a new format for paging queries same as sql server 2011 (denali) and 2005 and 2008 have their own method that is unsupported in CE 4.
I think the answer is that it's impossible but I just want to be sure I didn't overlook something.
I don't really work with SQL Server anymore but here is my attempt at this little problem.
For version 4 of compact edition the following should give you the version and build.
var ver = new System.Data.SqlServerCe.SqlCeConnection().ServerVersion;
And the following should give you the assembly version
var version = typeof(System.Data.SqlServerCe.SqlCeConnection).Assembly.GetName().Version;
Take a look at this blog post. It has a link to download a utility that detects which version of SQL Compact edition you're running. It also has a link to the source code for the utility which may be of interest to you.
You can use PowerShell , in versions of Windows 7 or newer , it comes pre- installed by default. Use the following command lines :
[System.Reflection.Assembly]::LoadFrom("SQLCeAssembly.dll").GetName().Version
Outputs this:
Major Minor Build Revision
----- ----- ----- --------
4 0 0 0
run this
SELECT SERVERPROPERTY('productversion'), SERVERPROPERTY ('productlevel'), SERVERPROPERTY ('edition')
See details here

Detemining a database's OS with a SQL query?

I'm writing a tool to gather customer configuration information. One of the questions I want to answer, what OS is the customer database running on.
I haven't found a generic way to find the OS with SQL and I can't create stored procedures on the customer's database.
If there is a way, it's probably vendor specific.
Suggestions? Thanks in advance.
Yes, it will be vendor specific. For Oracle you can obtain it via this query:
SQL> select banner from v$version;
BANNER
----------------------------------------------------------------
Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
PL/SQL Release 9.2.0.8.0 - Production
CORE 9.2.0.8.0 Production
TNS for Solaris: Version 9.2.0.8.0 - Production
NLSRTL Version 9.2.0.8.0 - Production
The 4th row of output shows that my 9i database is running on Solaris (well, it shows that it is running "TNS for Solaris", which implies that the OS is Solaris anyway).
For Oracle, you could use
SELECT DBMS_UTILITY.PORT_STRING FROM dual;
(From Ask Tom)
how about:
select platform_name from v$database;
sybase ASE & Sybase IQ are the same as sqlserver: select ##version
eg
Sybase IQ/12.7.0/090824/P/ESD 7/Sun_Sparc/OS 5.9/64bit/2009-08-24 16:17:12
Adaptive Server Enterprise/12.5.3/EBF 12455 ESD#2/P/Sun_svr4/OS 5.8/ase1253/1904/64-bit/FBO/Wed Mar 23 03:04:04 2005