First time here? Check our help page!
2

Error in reading sql output

E+ provides the results in .sql format for SQLite 3 database. But when I try to launch this sql to get a real database in .sqlite format it returns me a syntax error. Just opening works fine, but I need to process data further, so I'd like to have a real database... What may be the problem?

Dinosaver's avatar
990
Dinosaver
asked 2016-05-27 10:17:40 -0500
__AmirRoth__'s avatar
4.4k
__AmirRoth__
updated 2017-05-08 18:21:42 -0500
edit flag offensive 0 remove flag close merge delete

Comments

I think we need some more information, here. Could you share your command statements and any standard or error messages returned?

rpg777's avatar rpg777 (2016-05-27 16:53:23 -0500) edit

I use DB Browser for SQLite (the same with some others). The message is "Error in statement #1: near "SQLite": syntax error

Dinosaver's avatar Dinosaver (2016-05-28 10:20:39 -0500) edit

Hmmm, can you put a copy of the DB on Dropbox or similar, and provide a download link?

rpg777's avatar rpg777 (2016-06-01 09:49:02 -0500) edit
Dinosaver's avatar Dinosaver (2016-06-03 13:15:42 -0500) edit

This file opens fine in OpenStudio's ResultsViewer app, and SQLite Browser.

rpg777's avatar rpg777 (2016-06-03 16:29:42 -0500) edit
add a comment see more comments

2 Answers

1

The eplustbl.sql file is a SQLite database. It is not a SQL command file. So you should open it in DB browser and then do queries using your own SQL command.

Yi Zhang's avatar
1.2k
Yi Zhang
answered 2016-06-04 04:13:10 -0500
edit flag offensive 0 remove flag delete link

Comments

Ok, I got it. I just open it in DB Browser, dump to and .sql and then import that dump into an empty database with .db extension. Now it works. Thx everyone.

Dinosaver's avatar Dinosaver (2016-06-10 09:30:02 -0500) edit
add a comment see more comments
0

Sorry, I misunderstood your question initially. Just putting your conundrum into the Googleizer, I found a few UOIs (urls of interest) that may help, here, here, and here. YMMV.

rpg777's avatar
7k
rpg777
answered 2016-06-06 14:31:09 -0500, updated 2016-06-06 17:39:57 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments