Sorry, this content is no longer available

Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question
2

Error in reading sql output

asked 8 years ago

Dinosaver's avatar

updated 7 years ago

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?

Preview: (hide)

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  ( 8 years ago )

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  ( 8 years ago )

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

rpg777's avatar rpg777  ( 8 years ago )
Dinosaver's avatar Dinosaver  ( 8 years ago )

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

rpg777's avatar rpg777  ( 8 years ago )

2 Answers

Sort by » oldest newest most voted
1

answered 8 years ago

Yi Zhang's avatar

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.

Preview: (hide)
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  ( 8 years ago )
0

answered 8 years ago

updated 8 years ago

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.

Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: 8 years ago

Seen: 598 times

Last updated: Jun 06 '16