MySQL ERROR 1064 Creating table syntax - database

I'm using ubuntu 14.04. Every time I'm trying to make new table in database (which I successful can create) I get 1064 Error. I've already tried to make via terminal and by phpstorm database GUI. The weird thing is that FriendsOfSymfonyBundle has created table in my database (by typing doctrine:schema:update) but I can't do it manually.
Example of code:
CREATE TABLE test.nameoftable
(
firstcolumnn INT
);
EDIT
Using phpstorm gui I got:
You have an error in your SQL syntax; check the manual that corresponds to your >MySQL server version for the right syntax to use near 'session set >current_schema = "test"' at line 1

Related

How to fix this error [FireDAC][Phys][ODBC][Microsoft][SQL Server Native Client 11.0][SQL Server]Invalid object name 'FDQA_TransTable'

I am trying to run this sample project by Embarcadero on Delphi 11 Enterprise with no changes to the source code:
Embarcadero\Studio\21.0\Samples\Object Pascal\Database\FireDAC\Samples\Comp Layer\TFDBatchMove\Main
and after logging into the database (using the dropdown menu and selecting "MSSQL_Demo") and clicking "1.) Move text to table" I encounter this error "Invalid object name 'FDQA_TransTable'."
I was trying to dig down to the actual line where the error occurs (using F7/trace into) but this is the furthest I can go before the error message comes up:
FDBatchMove.Execute;
Heres the stack trace in case this helps.
Heres my MSSQL version in case this helps.
Are there additional steps I need to do before I am able to run this sample project? Maybe do something with the database like add tables or setup permissions? This is my first time setting up MSSQL and using FireDAC.

SSIS to Oracle "Could not create a managed connection manager."

I'm trying to use SSIS to load some data from Oracle database to MSSQL database.
I created the project and used the ADO.Net source and was able to create a connection to Oracle and run queries and view results.
However when I actually run the package I get the following error:
Error: 0xC0208449 at Data Flow Task, ADO NET Source 2: ADO NET Source has failed to acquire the connection {EECB236A-59EA-475E-AE82-52871D15952D} with the following error message: "Could not create a managed connection manager.".
It seems similar to the issue here
And I did find that I have two oracle clients version installed "11.1" and "12.2".
One is used by PL/SQL and the other by other entity framework project.
If this is the issue I just wanted a way to tell the SSIS to pick-up the correct one.
I tried adding Entry in machine.config for "oracle.manageddataaccess.client" section with the desired version.
I also tried using other types of data sources but couldn't even create a successful connection
I tried changing the Run64bitRuntime property in the project to False
Note: I don't have SSIS installed on my machine.
Eventually, I just had to remove the entries related to 11.1 in path variable then restarted my machine.
Also I switched to "dotConnectForOracle" for connection and now it seems to be working fine.
I'm expecting issues related to other applications that might still be using the 11.1 version, but that will be a problem for another day.
Always make sure to write the user (oracle schema) in uppercase and some special characters [in my case it was $] in the password needs escape character even if you're using the wizard not the cmd
I still don't understand the whole issue but I hope this helps someone some day.

Error: 0xC002F210 (can't import a database in my SQL Server)

I have SQL Server 2014 installed on my PC, working on a same project in my company, a worker send me a database to import.
I followed the steps described here, but I get this error :
Error 0xc002f210: Preparation SQL Task 1: Executing the query "CREATE TABLE [dbo].[~TMPCLP14521] (
[Champ1] nvar..." failed with the following error: "Culture is not supported.
Parameter name: culture
3072 (0x0c00) is an invalid culture identifier.".
Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
What is wrong?
Solved , after reading this issue i found that in order to make the import work ,apparently ,the sqlserver and the system should have the same language format ;
My Sql Server is in french ,my windows was in english format changing it to french format in setting>region>region format solved my problem.

MDSYS.SPATIAL_INDEX syntax error

CREATE INDEX test_index ON cola_markets(shape)
INDEXTYPE IS MDSYS.SPATIAL_INDEX;
I am creating an index on Oracle Spatial column, following the guidelines here at http://docs.oracle.com/cd/B19306_01/appdev.102/b14255/sdo_objindex.htm#i78196
However, SQL developer keeps complaining about the following error.
That is definitely the right syntax. I confirm that there is no typing mistake by running it on my database.
On the possibility that this is some oddity due to SQL Developer, can you also try and run the command with plain sqlplus ? What do you get ?

How can I fix "SQL03042: The ALL clause is not supported"?

I have just recently added our db schema into a VSTSDB project and one of the sp's is coming up with a strange error on the line:
revoke all from StatsReports
Now I've taken a look at the Sql docs for the "revoke" command and according to that it is valid sql. Also searching for the error number or text brings up nothing!
Anyone have any ideas?
It is valid TSQL, but the error message is - I assume - coming from VSTSDB, not from SQL Server. Running your query directly against a SQL 2008 database gives the following message:
The ALL permission is deprecated and maintained only for compatibility. It DOES NOT imply ALL permissions defined on the entity.
My guess is that VSTSDB shows an error on this syntax in order to 'remind' you to update your code. The deprecation is documented under the main page for the REVOKE command.

Resources