Unable to access Snowflake Table - sql

I have access to a snowflake table on the snowflake ui, but when I try to access the same table in r through the obdc query, I'm getting an error saying that I'm not authorized to access the table.
The weird thing is that I'm able to access the table in another query in r.
Any idea how to debug?
Error in new_result(connection#ptr, statement, immediate) :
nanodbc/nanodbc.cpp:1374: 42S02: SQL compilation error:
Object 'CIQSECURITY' does not exist or not authorized.

Related

Trouble querying a hive database through dbeaver

I am having trouble querying a hive database with dbeaver, using trino. I've connected it using the same settings as the admin - and he showed me a few examples of it working on his computer through a screenshare meeting. I have used sql before and want to get to know the databases right now - I am trying select * from database.schema.table_name (real names not used) - and getting the following error:
SQL Error [1]: [SQLITE_ERROR] SQL error or missing database (near ".": syntax error)

Unable to create table in ibm sql query,

In IBM SQL Query, simple table creation query is not working, its give error -
No viable alternative at input 'CREATE TABLE'
I take query(for create table) from official site and its also give the same error.
Attached below (official site query) screenshot url
https://i.ibb.co/n78BrPd/officalsiteexample.png
The IBM SQL Query service allows you to run queries (SELECT statements) against data. The syntax reference only has SELECT, not CREATE TABLE. Thus, seeing the syntax error is expected.

How to write LegacySQL in Excel ODBC connection to BigQuery?

I am trying to get data from a LegancySQL View in BigQuery using the Excel ODBC Simba Connection, but it is saying "Cannot reference a legacy SQL view in a standard SQL Query". However, I can't seem to be able to write it as LegacySQL. Adding in #legacySQL at the start of the query gives another error saying that legacySQL is not allowed, however, in their documentation it says it is used by default..?
What can I do?
Thanks,
Benji

Create table error with Apache Derby database: Syntax error: Encountered "AUTO_INCREMENT"

I've created a datasource in the Coldfusion Administrator interface for an embedded Apache Derby database. The queries, such as select, work fine. However, I can't find a way to create a new table in my database. I couldn't find interface for that, such as in phpmyAdmin, either. that. I've tried to create it by using a SQL query, but then builder complains about syntax errors:
Error Executing Database Query.
Syntax error: Encountered "AUTO_INCREMENT" at line 1, column 38
Screen shots:

Read access violation SQL

I am facing a read access violation error on SAS when running proc sql.
the error is
The SAS task name is [SQL]
ERROR: Read Access Violation SQL
Exception occurred at (2868651F)
Task Traceback
What could be the problem.
The libname used is a usual libname and just accessing the data from a normal library.
libname xxx "location";
If you are using SAS in a working environment and you are not the administrator, then you may have a meta engine that you are not aware of. Among other things, it can be used to set the access rights for various user groups. You may be in conflict with administrator defined user group permissions. See http://support.sas.com/documentation/cdl/en/lrmeta/60739/HTML/default/viewer.htm#a003162997.htm