Page 1 of 1

Pagesave(type=ODBC)

Posted: Wed Mar 04, 2020 3:48 am
by fi99ggb
Hello

I am using the following code to save an EViews page on SQL database:

pagesave(type=ODBC) C:/Eviews/SARASEviews.dsn ev_depot_demand @all keep x1 x2 x3

The problem is that the table is saved with double quotes ("ev_depot_demand"). Do you know why this is the case and a way around it? I am using EViews 11.

Thanks
George

Re: Pagesave(type=ODBC)

Posted: Wed Mar 04, 2020 9:53 am
by EViews Steve
That’s really strange. Most databases don’t allow you to have double quotes in the table name.

What kind of database are you writing to? SQL server, Oracle, MySQL, etc?

Also, how do you know the table name has quotes around it? Can you provide a screenshot of what your seeing that shows the quotes?

Steve

Re: Pagesave(type=ODBC)

Posted: Mon Mar 09, 2020 7:37 am
by fi99ggb
Hi Steve

I attach the image. When we call the table without quotes around the table name there is no table available. Is this helpful?

The database is Oracle.

Another perhaps unrelated subject is related to the variable names. Do you know why some variables have quotes around them and are in lower case? Everything is saved in lower case.

Thanks
George

Re: Pagesave(type=ODBC)

Posted: Mon Mar 09, 2020 3:04 pm
by EViews Steve
I took a close look at our ODBC code and we use quotes around any names that have an underscore in the name (table names & column names).

This was due to some ODBC clients requiring this, but not Oracle. I turned this off for Oracle so this will be available in the next patch. In the meantime, you can avoid using underscores in the workfile and object names to avoid this problem.

I think the column names are appearing in different cases because we push all lowercase names, but the ones that are quoted are kept in that format while the others are reformatted to Oracle default uppercase.

We'll try to release a patch with this fix sometime next week.

Steve

Re: Pagesave(type=ODBC)

Posted: Tue Mar 10, 2020 2:35 am
by fi99ggb
Hi Steve

Great, thanks for this (I thought I was going crazy..).

George