Sample Header Ad - 728x90

Database Administrators

Q&A for database professionals who wish to improve their database skills

Latest Questions

1 votes
1 answers
808 views
IDE Access to Hive without user password?
I'm a DB Developer and in my company we're only able to interact with hive through a technical user who owns the specific write permissions for Hive on HDFS. So in practice this looks like this: 1. I connect through our remote server by using SSH with my user credentials 2. I switch to the technical...
I'm a DB Developer and in my company we're only able to interact with hive through a technical user who owns the specific write permissions for Hive on HDFS. So in practice this looks like this: 1. I connect through our remote server by using SSH with my user credentials 2. I switch to the technical hive user by doing sudo su - hive_user (DBA's wont hand out the password for this, so they prefer only giving us specific sudo permission for switching user like this) 3. I execute a query using beeline -f QUERY_FILE So as you can see I'm bound to work with the CLI (beeline) all the time, but I'd like to have the convenience using any SQL IDE from my Desktop. Is there any IDE for Hive, that allows me to connect to our DB as a technical user that can only be accessed by using sudo su - hive_user? A linked manual for this, also would be nice.
Mayak (181 rep)
Oct 2, 2019, 11:10 AM • Last activity: Aug 3, 2025, 03:06 PM
0 votes
0 answers
55 views
DBeaver : Error on connecting to DB2 database using SSL Certificate
Trying to connect to DB2 database through DBeaver (DB2 for LUW) using SSL certificate on Windows 11 machine. I have the SSL certificate which I have converted to .jks file using the command `keytool -importcert -trustcacerts -alias -file C:\Users\db_prod_certificate.cer -keystore C:\Users\db_prod_st...
Trying to connect to DB2 database through DBeaver (DB2 for LUW) using SSL certificate on Windows 11 machine. I have the SSL certificate which I have converted to .jks file using the command keytool -importcert -trustcacerts -alias -file C:\Users\db_prod_certificate.cer -keystore C:\Users\db_prod_store.jks -storepass and add the below parameters in driver properties sslConnection = true, sslTrustStoreLocation = C:\Users\db_prod_store.jks , sslTrustStorePassword = however the following error comes up while trying to test the connection Connection failed: could not establish a SSL connection with the server. The connection has been configured to use hostname validation and the servers TLS certificate does not contain a hostname or IP address which matches the value configured by the client. ERRORCODE=-20576, SQLSTATE=08001 Log details - DBeaver-debug.log 2025-07-15 01:31:18.521 - System suspend detected! Reinitialize all remote connections. 2025-07-15 07:11:17.549 - System suspend detected! Reinitialize all remote connections. > Start Log View [org.eclipse.ui.views.log 1.4.400.v20240424-0956] > Start DBeaver Data Transfer [org.jkiss.dbeaver.data.transfer 2.0.118.202407071610] 2025-07-15 07:31:14.873 - Service 'org.jkiss.dbeaver.runtime.ui.UIServiceSecurity' not found 2025-07-15 07:31:17.473 - Connect with 'jdbc:db2://reportdb.dev.suite.maximo.com:30641/BLUDB' (db2-1980e48522b-28b563d6124cdf25) 2025-07-15 07:31:17.475 - Execution context opened (jdbc:db2://reportdb.dev.suite.maximo.com:30641/BLUDB; Main; 3) 2025-07-15 07:31:18.044 - [jcc][t4][4.34.30] Connection failed: could not establish a SSL connection with the server. The connection has been configured to use hostname validation and the servers TLS certificate does not contain a hostname or IP address which matches the value configured by the client. ERRORCODE=-20576, SQLSTATE=08001 com.ibm.db2.jcc.am.SqlNonTransientConnectionException: [jcc][t4][4.34.30] Connection failed: could not establish a SSL connection with the server. The connection has been configured to use hostname validation and the servers TLS certificate does not contain a hostname or IP address which matches the value configured by the client. ERRORCODE=-20576, SQLSTATE=08001 at com.ibm.db2.jcc.am.b5.a(b5.java:800) at com.ibm.db2.jcc.am.b5.a(b5.java:66) at com.ibm.db2.jcc.am.b5.a(b5.java:133) at com.ibm.db2.jcc.t4.b.ak(b.java:8427) at com.ibm.db2.jcc.t4.b.completeConnect(b.java:723) at com.ibm.db2.jcc.t4.b.a(b.java:488) at com.ibm.db2.jcc.t4.b.a(b.java:434) at com.ibm.db2.jcc.t4.b.(b.java:372) at com.ibm.db2.jcc.DB2SimpleDataSource.getConnection(DB2SimpleDataSource.java:259) at com.ibm.db2.jcc.DB2SimpleDataSource.getConnection(DB2SimpleDataSource.java:215) at com.ibm.db2.jcc.DB2Driver.connect(DB2Driver.java:491) at com.ibm.db2.jcc.DB2Driver.connect(DB2Driver.java:117) at org.jkiss.dbeaver.model.impl.jdbc.JDBCConnectionOpener.run(JDBCConnectionOpener.java:109) at org.jkiss.dbeaver.model.impl.jdbc.JDBCConnectionOpener.run(JDBCConnectionOpener.java:83) at org.jkiss.dbeaver.model.impl.jdbc.JDBCDataSource.openConnection(JDBCDataSource.java:222) at org.jkiss.dbeaver.ext.db2.model.DB2DataSource.openConnection(DB2DataSource.java:286) at org.jkiss.dbeaver.model.impl.jdbc.JDBCExecutionContext.connect(JDBCExecutionContext.java:106) at org.jkiss.dbeaver.model.impl.jdbc.JDBCRemoteInstance.initializeMainContext(JDBCRemoteInstance.java:102) at org.jkiss.dbeaver.model.impl.jdbc.JDBCRemoteInstance.(JDBCRemoteInstance.java:61) at org.jkiss.dbeaver.model.impl.jdbc.JDBCDataSource.initializeRemoteInstance(JDBCDataSource.java:120) at org.jkiss.dbeaver.model.impl.jdbc.JDBCDataSource.(JDBCDataSource.java:104) at org.jkiss.dbeaver.model.impl.jdbc.JDBCDataSource.(JDBCDataSource.java:95) at org.jkiss.dbeaver.ext.db2.model.DB2DataSource.(DB2DataSource.java:133) at org.jkiss.dbeaver.ext.db2.DB2DataSourceProvider.openDataSource(DB2DataSourceProvider.java:101) at org.jkiss.dbeaver.registry.DataSourceDescriptor.openDataSource(DataSourceDescriptor.java:1390) at org.jkiss.dbeaver.registry.DataSourceDescriptor.connect0(DataSourceDescriptor.java:1260) at org.jkiss.dbeaver.registry.DataSourceDescriptor.connect(DataSourceDescriptor.java:1050) at org.jkiss.dbeaver.runtime.jobs.ConnectJob.run(ConnectJob.java:78) at org.jkiss.dbeaver.runtime.jobs.ConnectionTestJob.run(ConnectionTestJob.java:103) at org.jkiss.dbeaver.model.runtime.AbstractJob.run(AbstractJob.java:117) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
max092012 (101 rep)
Jul 15, 2025, 12:41 AM • Last activity: Jul 15, 2025, 01:38 PM
2 votes
1 answers
59 views
DBeaver @include using a variable for filename not working
I am trying to write a script to run in DBeaver (Version 24.0.0) it determines what schema update scripts to run based on a table in the database that records the schema updates already run. It then tries to use the dbeaver @include to run the needed update scripts. It looks something like: ** **@se...
I am trying to write a script to run in DBeaver (Version 24.0.0) it determines what schema update scripts to run based on a table in the database that records the schema updates already run. It then tries to use the dbeaver @include to run the needed update scripts. It looks something like: ** **@set db_dir = '' do $$ DECLARE file upgrade_file%ROWTYPE; file_location text; BEGIN FOR file in (select * from upgrade_files) loop file_location = ${db_dir} ||file.filename; raise info 'file: %', file_location; @include ${file_location} end loop; end $$**; ** If I run this I get "Syntax error at or near @".If I comment out the @include statement in the for loop it runs fine and prints out the correct filenames, including path, to be run. Any help figuring out what I am doing wrong or another approach would be appreciated.
Sarah Holley (21 rep)
Jun 26, 2025, 05:09 PM • Last activity: Jun 26, 2025, 05:49 PM
2 votes
1 answers
1796 views
Is it possible to run MongoDB javascript scripts in DBeaver
[DBeaver's wiki][1] shows a simple query against a Mongo database but what about admin scripts? It would be great to develop these in DBeaver but I've tried a few permutations to no avail. Here's an example of a maintenance script: var cursor = db.album.find({}, {"k": 1 }) var albumKeys = [] while(...
DBeaver's wiki shows a simple query against a Mongo database but what about admin scripts? It would be great to develop these in DBeaver but I've tried a few permutations to no avail. Here's an example of a maintenance script: var cursor = db.album.find({}, {"k": 1 }) var albumKeys = [] while( cursor.hasNext() ){ albumKeys.push( cursor.next()['k']); } cursor = db.song.find({ "alb" : { $not : { $in : albumKeys } } } ) var songsWithMissingAlbum = [] while( cursor.hasNext() ) { songsWithMissingAlbum.push(cursor.next()) } printjson(songsWithMissingAlbum)
Rob Shepherd (131 rep)
May 10, 2017, 10:46 AM • Last activity: Jun 25, 2025, 08:06 AM
2 votes
2 answers
4594 views
How to solve repetitive ORA-2391 error in DBeaver 4.3.3.1
I can't seem to find the way to avoid ORA-2391 "exceeded simultaneous SESSIONS_PER_USER limit" when working with DBeaver 4.3.3.1. Everytime my session goes idle and I need to recconect I'm getting this error. I'm not sure if this is a DBeaver issue or I am missing something in my Oracle connection c...
I can't seem to find the way to avoid ORA-2391 "exceeded simultaneous SESSIONS_PER_USER limit" when working with DBeaver 4.3.3.1. Everytime my session goes idle and I need to recconect I'm getting this error. I'm not sure if this is a DBeaver issue or I am missing something in my Oracle connection configuration. I already talked with DBA and he showed me that whenever I connect to my database DBeaver creates two sessions (two rows in table v$session) and when he tries to kill them, they hang out for a while until they finally go away and I can connect again. I am sure I don't have any other session opened with any other tool. My goal is to keep working with DBeaver since this tool has some amazing features, but without having to bother my DBA everytime I can't connect due to simultaneous sessions. If there could be any way to stop DBeaver from creating more than one session for just one connection, I will appreciate any help. PS:(I hope I'm clear with my question, English is not my native language)
Wendy (61 rep)
Feb 12, 2018, 07:21 PM • Last activity: Jun 9, 2025, 05:45 AM
2 votes
2 answers
1769 views
push using git integration in DBeaver
I am using the git plugin for DBeaver. While I can commit, I am not seeing an option to push the commit over to master. Am I missing something?
I am using the git plugin for DBeaver. While I can commit, I am not seeing an option to push the commit over to master. Am I missing something?
Saqib Ali (121 rep)
Feb 5, 2020, 02:15 AM • Last activity: May 8, 2025, 11:00 AM
0 votes
0 answers
13 views
DBeaver hide left and bottom pane
See image below. Is there a shortcut to toggle the left pane (yellow rectangle) and bottom pane (green rectangle). Also, is there a way for the left pane to automatically resize based on the expanded elements' text width? [![Reference image][1]][1] [1]: https://i.sstatic.net/TMTekDaJ.png
See image below. Is there a shortcut to toggle the left pane (yellow rectangle) and bottom pane (green rectangle). Also, is there a way for the left pane to automatically resize based on the expanded elements' text width? Reference image
Matej Vesel (1 rep)
May 8, 2025, 11:00 AM
2 votes
2 answers
1566 views
PgAdmin4 unusable when database has lots of schemas
I have a production database with 60K database schemas. PgAdmin4 is unusable, I cannot even open "Query Tool" window. I suppose that PgAdmin tries to load database metadata, so that's the reason why it's so slow. Is that true and can it be disabled? Can I do anything to speed it up? I tried to use o...
I have a production database with 60K database schemas. PgAdmin4 is unusable, I cannot even open "Query Tool" window. I suppose that PgAdmin tries to load database metadata, so that's the reason why it's so slow. Is that true and can it be disabled? Can I do anything to speed it up? I tried to use other DB clients like DBeaver or TablePlus and I have the same problem.
elBastarde (285 rep)
Dec 3, 2018, 02:23 PM • Last activity: May 1, 2025, 07:09 PM
1 votes
1 answers
6836 views
DBeaver connection to Postgres server stuck on "Read Data from Container"
I am currently trying to view a postgres database. However, it is stuck on `"Read Data from Container"` for several hundred seconds. This all happened after I deleted a table and recreated it. Any ideas what this could be? At some points DBeaver will end up crashing. My fetch size is only 200.
I am currently trying to view a postgres database. However, it is stuck on "Read Data from Container" for several hundred seconds. This all happened after I deleted a table and recreated it. Any ideas what this could be? At some points DBeaver will end up crashing. My fetch size is only 200.
boomersooner (11 rep)
Jun 22, 2023, 07:11 PM • Last activity: Apr 28, 2025, 02:02 PM
0 votes
0 answers
15 views
Setting the connection.type value for new mysql connection created via dbeaver cli
I have a script that creates a new dbeaver connection using the dbeaver [command line utility][1] (on osx), and I'm having a hard time creating it with a custom `connection.type`. I've tried a few different things: 1. Defining it in the connection string using multiple different keys/names: - `...|t...
I have a script that creates a new dbeaver connection using the dbeaver command line utility (on osx), and I'm having a hard time creating it with a custom connection.type. I've tried a few different things: 1. Defining it in the connection string using multiple different keys/names: - ...|type=prod|... - ...|connectionType=prod|... - ...|connection.type=prod|... - ...|prop.type=prod|... - ...|prop.connectionType=prod|... - ...|prop.connectiontype=prod|... 2. Tried using a params.properties file: /Applications/DBeaver.app/Contents/MacOS/dbeaver -vars params.properties -connect "driver=mysql|..." with the contents:
connection.type=prod
connectionType=prod
type=prod
connectionType=prod
connection.type=prod
I also deleted the existing connection just to make sure this gets created (instead of modifying an existing connection). None of the above seemed to work. Does anyone know how to set the connection.type from the _dbeaver_ command?
J H (1 rep)
Jan 28, 2025, 04:31 PM
0 votes
0 answers
119 views
Launch DBeaver with custom configuration/connection
I am working in several projects where every one has its own database connections. So far, I have been using DBeaver, adding the connections by hand, but at the end, having the connections, data, SQL scripts, tabs, etc. for all the projects in the same place results in a chaotic environment. So, I a...
I am working in several projects where every one has its own database connections. So far, I have been using DBeaver, adding the connections by hand, but at the end, having the connections, data, SQL scripts, tabs, etc. for all the projects in the same place results in a chaotic environment. So, I am trying to create a tool able to launch DBeaver which the configuration (i.e. connections) specific to a project. Looking at the [docs](https://dbeaver.com/docs/dbeaver/Command-Line/#command-line-parameters) , it should be an easy task, but I can not get it to work. I have tried multiple combinations of parameters for the -con argument (create, save, connect, openConsole, url, folder, database, etc.) but I am not able to open dbeaver UI with a new connection. For instance:
dbeaver-ce   \
  -data .    \
  -con "driver=sqlite|database=one.sqlite|folder=/home/salva/projects/one|name=one|openConsole=true|connect=true|save=true|create=true" \
  -f
I am unable to find the exact spell that would make it work and would appreciate any advice on the matter! **Update**: It seems it was a PEBCAK, I had not noticed I already had a DBeaver instance open in another workspace, and because of that, nothing was apparently happening when I run the command with the new connection, I found that adding the -f flag (without its required argument), would made DBeaver to appear but then, -con was not handled, probably because of the broken -f! In any case, it is working now!
salva (101 rep)
Nov 11, 2024, 03:41 PM • Last activity: Nov 14, 2024, 11:58 AM
11 votes
2 answers
10149 views
DBeaver launch script from file
I'm trying to find a good alternative to SQL Developer for performing queries and scripts on Oracle instances. I find ***DBeaver*** to be an interesting tool, it has a lot of great features, ***BUT*** it seems to lack an essential element: The possibility to launch scripts from the filesystem of the...
I'm trying to find a good alternative to SQL Developer for performing queries and scripts on Oracle instances. I find ***DBeaver*** to be an interesting tool, it has a lot of great features, ***BUT*** it seems to lack an essential element: The possibility to launch scripts from the filesystem of the client machine in a batch-like way. For example, in SQL Developer I simply put a file called *delta_script.sql* that contains: @script1.sql @script2.sql @script3.sql I execute it as a script and the software executes all of the files in the correct order (provided that they are in the same directory as the delta_script.sql file). On DBeaver, this does not happen, instead I get a * **ORA-00900**: invalid SQL statement.*. How can I manage this to work as expected? I have tried the following in the delta_script.sql file with no luck: - @@ scriptN.sql - @/tmp/folder/scriptN.sql - @"/tmp/folder/scriptN.sql" - @"scriptN.sql" They're all giving the same error, so I think there's a problem with the "@". I have tried from SQLPlus with the synthax I use on SQL Developer without errors.
Samuryte (111 rep)
Mar 3, 2016, 12:56 PM • Last activity: Oct 1, 2024, 05:56 PM
0 votes
1 answers
1702 views
DBeaver, how to duplicate a (postgres) schema?
DBeaver is a great tool, but if you "copy" and "paste" a schema it does not include the tables. If you backup the whole database using the backup tool, restore will overwrite the DB, you cant specify a new database or schema name, which is a significant limitation. Also backup creates a .sql script,...
DBeaver is a great tool, but if you "copy" and "paste" a schema it does not include the tables. If you backup the whole database using the backup tool, restore will overwrite the DB, you cant specify a new database or schema name, which is a significant limitation. Also backup creates a .sql script, but restore expects a .backup script which is odd. We cant use database CLI tools as we don't have direct access to the DB (it's RDS). There is an "export data" option at the table level, but we want to copy the entire schema, not just tables (so include all functions, sequences, views, sequences etc, etc.)
John Little (223 rep)
Jul 16, 2024, 09:43 AM • Last activity: Sep 16, 2024, 02:05 PM
2 votes
1 answers
2318 views
How do I connect to a Cassandra cluster from DBeaver community edition?
The DBeaver Cassandra driver is only available in the Pro version. How do I connect to a Cassandra cluster if I'm using the Community Edition?
The DBeaver Cassandra driver is only available in the Pro version. How do I connect to a Cassandra cluster if I'm using the Community Edition?
Erick Ramirez (4600 rep)
Jun 21, 2024, 09:20 AM • Last activity: Sep 13, 2024, 06:15 AM
0 votes
1 answers
120 views
FoxPro ODBC/OLEDB in SSIS result inconsistencies
I am using SSIS to extract data from a .dbf-based ERP system. In SSIS, I have the Visual FoxPro OLEDB provider as a source and SQL Server OLEDB provider as a destination. The data copies quickly from the files into the sql table, but I have found that my results differ slightly depending on the Data...
I am using SSIS to extract data from a .dbf-based ERP system. In SSIS, I have the Visual FoxPro OLEDB provider as a source and SQL Server OLEDB provider as a destination. The data copies quickly from the files into the sql table, but I have found that my results differ slightly depending on the Data Access Mode I use in the OLEDB source tool. - When I opt for the "Table or view" setting and then select the table I want from the dropdown, I get 49,725 rows. - When I opt for the "SQL command" setting and then use a SELECT * FROM [Table] query, I get 49,705 rows. - The results are consistent between runs. Looking in the folder that contains all the .dbf files, I find matching .cdx files for each table. Apparently .cdx files contain indexing and schema information for their accompanying .dbf? Is one of these access methods (select * vs. table dropdown) utilizing the .cdx while copying data, therefore producing more accurate results? While validating with an ancient revision of DBeaver: - I have found that the 49,705 rowcount dataset is missing some rows that are found if you use WHERE clause to locate them individually - I have found that the 49,725 rowcount dataset produces some rows that look like duplicates save a few columns, and looking these rows up individually returns just one of the rows
funkyman50 (1 rep)
Feb 28, 2024, 04:38 PM • Last activity: Jun 26, 2024, 07:00 PM
2 votes
1 answers
16027 views
How to connecto DBeaver with Db2 using SSL self-signed certificate?
On Db2 v11.5.7.0 Linux/x86 server I have configured SSL using self-signed certificate following official IBM documentation https://www.ibm.com/docs/en/db2/11.5?topic=transit-tls-configuration-db2 I have tested this connection on my Windows PC using CLI and connection works fine. I assume Db2 server...
On Db2 v11.5.7.0 Linux/x86 server I have configured SSL using self-signed certificate following official IBM documentation https://www.ibm.com/docs/en/db2/11.5?topic=transit-tls-configuration-db2 I have tested this connection on my Windows PC using CLI and connection works fine. I assume Db2 server is configured correctly to support SSL. Now I would like to establish the same with Java application like DBeaver. On my Windows where DBeaver 22.1.3 is installed I imported SSL certificate with: keytool -import -trustcacerts -alias myalias -file C:\Programs\DBeaver\db2_ssl_tls\server.arm -keystore C:\Programs\DBeaver\db2_ssl_tls\mynewdbclient.jks Then I configured DBeaver connection to Db2 using SSL. I did like described in: https://selcukc.medium.com/dbeaver-create-ssl-connection-to-db2-72bd0948b6d4 or https://www.ibm.com/docs/en/fci/6.5.1?topic=application-connecting-db2-over-ssl-port like this: enter image description here When I click on Test Connection button I get error: [jcc][t4][4.31.10] A communication error occurred during operations on the connection's underlying socket, socket input stream, or socket output stream. Error location: Reply.fill() - socketInputStream.read (-1). Message: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target. ERRORCODE=-4499, SQLSTATE=08001 PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target unable to find valid certification path to requested target unable to find valid certification path to requested target I have searched a lot of documentation on web, but all it seams to point to import CA certificate. But I am using self-signed certificate that does not need CA. Questions: 1. Do I need to setup something else? 2. Does DBeaver support self-signed certificates?
folow (523 rep)
Jul 29, 2022, 04:33 AM • Last activity: Apr 4, 2024, 01:25 PM
1 votes
2 answers
4290 views
SQL Error [1242] [21000]: Subquery returns more than 1 row (AMATEUR)
Basically, everything works in the brackets by itself. The statement in the brackets bring back 4 different values all on different rows. How can I get around the fact that I need to apply the sql statement outside the brackets to the 4 values returned from the statements in the brackets when subque...
Basically, everything works in the brackets by itself. The statement in the brackets bring back 4 different values all on different rows. How can I get around the fact that I need to apply the sql statement outside the brackets to the 4 values returned from the statements in the brackets when subqueries can only return 1 row? SELECT to2.Name, to2.PhoneNum FROM tbl_operatordesc to2 WHERE to2.operatorID = (SELECT to3.operatorID FROM tbl_operatorrouterelation to3 WHERE to3.routeID = (SELECT tr.routeID FROM tbl_route tr WHERE tr.Start = (SELECT tb.busstopID FROM tbl_busstop tb WHERE tb.Description = 'Durham Estate') OR tr.Destination = (SELECT tb.busstopID FROM tbl_busstop tb WHERE tb.Description = 'Durham Estate'))) Thanks!
7up234 (19 rep)
Dec 2, 2020, 07:32 PM • Last activity: Nov 30, 2023, 09:08 AM
2 votes
2 answers
6695 views
DBeaver does not recognize declared variable when executing SQL script on SQL Server
We are using DBeaver Community Edition (v23.2.0.202309041200) as a client connecting to Microsoft SQL Server 2016 (v13.0.5101.9). The issue happens when executing the below SQL statements in DBeaver as a script. ```sql declare @option as int = 2; select @option; ``` The action "Execute SQL script",...
We are using DBeaver Community Edition (v23.2.0.202309041200) as a client connecting to Microsoft SQL Server 2016 (v13.0.5101.9). The issue happens when executing the below SQL statements in DBeaver as a script.
declare @option as int = 2;

select @option;
The action "Execute SQL script", or by DBeaver hot key Alt+X, always fails on the selecting statement, with error message saying SQL Error [S0002]: Must declare the scalar variable "@option".. The error does not happen if we highlight the two SQL statements and go with action "Execute SQL query", or by DBeaver hot key Ctrl+Enter. The error does not happen either if we use Microsoft SQL Server Management Studio, so we do not believe the issue is related to SQL Server. **Our Question:** Is there any way we can use declared variables in DBeaver when executing a SQL script on MSSQL (Microsoft SQL Server)? We highly appreciate any hints and suggestions.
James (149 rep)
Oct 3, 2023, 11:11 PM • Last activity: Nov 23, 2023, 08:22 PM
0 votes
1 answers
38 views
PostgreSQL create table char error
I just started learning PostgreSQL. I tried to create a table: ``` create table diagnosis( mkb10 char(5), opis varchar(100) not null, constraint pk_diagnosis primary key (mkb10) ); ``` But I get this error: > ERROR: syntax error at or near "char"
I just started learning PostgreSQL. I tried to create a table:
create table diagnosis(
	mkb10 char(5),
	opis varchar(100) not null,
	constraint pk_diagnosis primary key (mkb10)
);
But I get this error: > ERROR: syntax error at or near "char"
spjvn (3 rep)
Nov 12, 2023, 09:04 PM • Last activity: Nov 12, 2023, 10:31 PM
-1 votes
1 answers
3062 views
DBeaver is failing to execute any on SQLite. "[SQLITE_ERROR] SQL error or missing database"
I'm trying to use DBeaver to manipulate an SQLite database and, pretty much any operation I try on the database schema, like creating a table or column, it fails with: ``` SQL Error [1]: [SQLITE_ERROR] SQL error or missing database (near ")": syntax error) [SQLITE_ERROR] SQL error or missing databas...
I'm trying to use DBeaver to manipulate an SQLite database and, pretty much any operation I try on the database schema, like creating a table or column, it fails with:
SQL Error Referenced image: [SQLITE_ERROR] SQL error or missing database (near ")": syntax error)
  [SQLITE_ERROR] SQL error or missing database (near ")": syntax error)
Do you have any idea on how to fix it? enter image description here
andrerpena (981 rep)
Oct 3, 2022, 06:37 AM • Last activity: Nov 7, 2023, 06:00 PM
Showing page 1 of 20 total questions