Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Error creating table "table": Cannot perform CREATE TABLE.

Basheer
7 - Meteor

Hi Team,

 

I going load data from SAP table to snowflake. am getting below error and also i have checked in snowflake db table was creating, But through Alteryx through error.

Can any one help out on this.

 

Error :

Output Data (2) Error creating table "table": Cannot perform CREATE TABLE. This session does not have a current database. Call 'USE DATABASE', or use a qualified name.¶CREATE TABLE "table" ("LOG_TIME" datetime,"LOG_LEVEL" varchar(10),"LOG_MESSAGE" varchar(16777216),"SYS_PK" NUMBER(35, 0))

6 REPLIES 6
TheOC
15 - Aurora
15 - Aurora

hi @Basheer 

Does your user account have privileges on that database and subsequent objects.?

Using here as reference:
https://community.snowflake.com/s/question/0D50Z00008Uvt1wSAB/select-statement-issue

You may just need to change a couple permissions to allow yourself access through the Alteryx Tool

Hope this helps!
TheOC


Bulien
Basheer
7 - Meteor

@TheOC 

 

thanks for answer,

 

I am able to create tables in snowflake DB, but DB schema am calling in Alteryx side thronging an above error,

TheOC
15 - Aurora
15 - Aurora

hi @Basheer 

You may have to try the following, at the start of your SQL:

https://docs.snowflake.com/en/sql-reference/sql/use-database.html

 


Bulien
danilang
19 - Altair
19 - Altair

Hi @Basheer 

 

From your error message.  This session does not have a current database. Call 'USE DATABASE', or use a qualified name 

Modify your query to use the fully qualified name <database_name>.<schema_name>.<object_name>.  

 

Dan

Ab3111
5 - Atom

Hi @danilag,

 

I am getting the same error. Were you able to find a solution to this?

 

Ankur

flordels
5 - Atom

I am seeing folks write about this error or type of error quite frequently. It has to do with the connection being used. In my case that is odbc but there will be analogous configuration properties.

 

When creating the odbc connection to be used within alteryx it is critically important to point to the database when configuring the default database property. 

 

in a given workflow in order to connect to two different databases but same instance of sql server I need two odbc connections with each connection specifying the databse I want to connect to. Make sense?

Labels
Top Solution Authors