Oracle Enterprise vs Express returns different results - sql

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

Related

How would I obtain the versions/dialects of SQL used for these online SQL editors?

I am learning SQL by running test queries using online SQL editors below.
https://www.w3schools.com/sql/trysql.asp?filename=trysql_asc
https://www.mycompiler.io/new/sql
http://sqlfiddle.com/
I've noticed that each editor has some different keywords/syntax that it supports/ doesn't support. For example, 1 supports "WITH temp_table AS (some_query) SELECT ... " which I couldn't get to work on the other two. Also, 3 supports copying a table using "CREATE TABLE new_table SELECT * FROM old_table" which I couldn't get to work on the other 2.
Can someone shed some light on the different dialects of SQL and which are used for these online editors?
WITH is not supported in SQLite until v3.8.3, and not on MySQL until v8, which is why that only works on 1, and SQLite lacks the SELECT INTO ability, which is why that only works on 3. Some of those SQL engines on sqlfiddle should support the WITH construction, though. I tested with this:
WITH temp_table AS (select * from test)
SELECT * FROM temp_table;
and every engine allowed it EXCEPT mySQL, which is expected because it didn't support WITH in 5.6.
Thanks to Jeroen Mostert for pointing out that not every browser supports WebSQL, so the version shown for those (the SQLite engines) will depend.
Number 1 (w3schools) as of 11/24/2021, SQLite 3.36.0.
Number 2 (mycompiler), SQLite 3.7.17.
Number 3 (sqlfiddle), lets you choose the engine, and they are:
MySQL 5.6.48;
Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production;
PostgreSQL 9.6.17 on x86_64-pc-linux-gnu (Debian 9.6.17-2.pgdg90+1), compiled by gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516, 64-bit;
PostgreSQL 9.3.25 on x86_64-pc-linux-gnu (Debian 9.3.25-1.pgdg90+1), compiled by gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516, 64-bit;
SQLite Web SQL: 3.36.0 (this is using whatever your browser uses, as pointed out by Jeroen Mostert in comments);
SQLite js: 3.15.1;
Microsoft SQL Server 2017 (RTM-CU2) (KB4052574) - 14.0.3008.27 (X64) Nov 16 2017 10:00:49 Copyright (C) 2017 Microsoft Corporation Express Edition (64-bit) on Linux (Ubuntu 16.04.3 LTS);
And I determined these with the following methods:
MySQL, SQL Server: SELECT ##version;
Oracle: SELECT * FROM V$VERSION;
PostGRE: SELECT version();
SQLite: SELECT sqlite_version()

How can i fix this error on enterprise edition?

I am getting error "sys.OutOfMemeory exception" while fetching data from a table which contains 100 millions of rows. I am using SQL Server enterprise edition 2012.

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

Full-text search error during full-text index population : Error Code '0x80092003'

I have problem with Full-Text Search service in production environment.
Each time I rebuild full-text catalog, there is no error in User Interface, but there is no data in Full-Text Catalog
Item Count : 0
Catalog size : 0 MB
OS : Windows Server 2003 R2 Standard Edition Service Pack2
SQL Server Version : Microsoft SQL Server 2005 - 9.00.1399.06 (Intel X86) Oct 14 2005 00:33:37 Copyright (c) 1988-2005 Microsoft Corporation Standard Edition on Windows NT 5.2 (Build 3790: Service Pack 2)
It work on dev server (windows xp professional version 2002 service pack 3) but error on prod server (Windows Server 2003 R2 Standard Edition Service Pack2)
This is error log.
Scrawl Log:
2010-06-02 03:51:31.06 spid24s Informational: Full-text Full population initialized for table or indexed view '[test1].[dbo].[test]' (table or indexed view ID '37575172', database ID '9'). Population sub-tasks: 1.
2010-06-02 03:51:31.06 spid24s Error '0x80092003' occurred during full-text index population for table or indexed view '[test1].[dbo].[test]' (table or indexed view ID '37575172', database ID '9'), full-text key value 0x00000006. Attempt will be made to reindex it.
2010-06-02 03:51:31.06 spid24s The component 'MSFTE.DLL' reported error while indexing. Component path 'D:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\MSFTE.DLL'.
2010-06-02 03:51:31.06 spid24s Error '0x80092003' occurred during full-text index population for table or indexed view '[test1].[dbo].[test]' (table or indexed view ID '37575172', database ID '9'), full-text key value 0x00000005. Attempt will be made to reindex it.
I run maintenance jobs to backup db.
Now it work but i don't know what an error.
I update sql server 2005 to service pack 3.
Sorry for my poor english and thank you for your help.