Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Community
Community
Notifications
close
  • Forums
  • Knowledge Center
  • Events & Webinars
  • Ideas
  • Blogs
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Sustainability
Sustainability

Join our "Ask Me About" community webinar on May 20th at 9 AM CET and 5 PM CET to explore cybersecurity and monitoring for Data Center and edge IT. Learn about market trends, cutting-edge technologies, and best practices from industry experts.
Register and secure your Critical IT infrastructure

SQLite Support

SmartConnector Forum

Schneider Electric support forum about SmartConnector applications for integration of other building management systems (BMS) into EcoStruxure Building Operation.

cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Schneider Electric Community
  • EcoStruxure Building
  • SmartConnector
  • SmartConnector Forum
  • SQLite Support
Options
  • Subscribe to RSS Feed
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Invite a Co-worker
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Experts
User Count
JeffBowman
Sisko JeffBowman Sisko
164
ardak
ardak Schneider Alumni (Retired)
34
sesa180908_brid
Commander sesa180908_brid Commander
34
mike_meirovitz
Commander mike_meirovitz
21
View All

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Solved Go to Solution
Back to SmartConnector Forum
Solved
Adam_Summers
Lt. Commander Adam_Summers Lt. Commander
Lt. Commander

Posted: ‎2016-07-29 01:11 PM

1 Like
8
1854
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2016-07-29 01:11 PM

SQLite Support

When deploying SmartConnector on projects we have been challenged if we needed to use MSSQL as the database engine for the SmartConnector service.

I've also had on a couple of occasions the SmartConnector service failing to start as it cannot connect to the database. (I presume MSSQL was slow to boot as simply starting it later worked). *Note perhaps you could make the SmartConnector default to a DelayedStart service to allow a buffer for this?

So with the possibility of supporting EF6 with SQLite or an equivalent self contained "zero config" engine, has it been considered if we could support SQLite in a future version to make simple standalone configurations a little easier to deploy and less dependant upon the MSSQL service engine?

I'd not want to remove the support for MSSQL but wondered if it's possible to support both database targets?

Tags (1)
  • Tags:
  • sqlite
Reply
  • All forum topics
  • Previous Topic
  • Next Topic

Accepted Solutions
JeffBowman
Sisko JeffBowman Sisko
Sisko

Posted: ‎2016-08-01 07:00 AM

0 Likes
2
1661
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2016-08-01 07:00 AM

While SQLite would indeed prove beneficial in some use cases, SQLite is not fully companionable with Entity Framework 6 (EF6). Which would most likely cause significant breaking changes to the data model and/or migrations for SmartConnector.. So it may not be a practical from a development perspective to add this support. The below links describes limitations in SQLite (yes I am aware this is written against EF Core.. but the limitations listed are for SQLite engine and not EF)

SQLite Limitations — Entity Framework Core 1.0.0 documentation

An alternative to SQLite, could be SQL Server Compact, also a single file database, it has full EF6 compatibility. The only benefit I see of SQLite over SQL Server Compact is that is can be up to a 100TB in size.. while SQL Server Compact can only be 4GB...But then again.. if someone is gonna have a database with SmartConnector anywhere near that size.. then we should advise against not using SQL Server.

See Answer In Context

Reply
Replies 8
sesa180908_brid
Commander sesa180908_brid Commander
Commander

Posted: ‎2016-07-29 02:55 PM

1 Like
4
1661
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2016-07-29 02:55 PM

The issue with SmartConnector not starting immediately if the MSSQL service hasn’t started is discussed in the Installation and Configuration (see section 4.3).  We don’t do it by default of course but we’ll consider the delayed start suggestion.

We haven’t tried databases other than what are listed in the Installation and Configuration guide (see section 13.2).  Support for SQLite is something we can certainly consider for the backlog.  Is it just MSSQL that you are getting push back on or is it that and SQLExpress too?

Reply
Benji
Administrator Benji Administrator
Administrator

Posted: ‎2016-07-29 03:33 PM

0 Likes
2
1661
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2016-07-29 03:33 PM

While MS SQL support in my mind is of course a must have, I do think that SQLite would serve the majority of applications just as well, if not even better. Faster startup (no start up), and a smaller installation foot print. Easier. I can only envision MS SQL being a must when shared access with other applications is needed.


Curious why you mention SQLExpress as something else than MS SQL? Sure, I know there's different flavors with different capabilities, but at least in my head, it's all MS SQL.

Reply
Adam_Summers
Lt. Commander Adam_Summers Lt. Commander
Lt. Commander

Posted: ‎2016-08-01 02:15 AM

0 Likes
0
1661
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2016-08-01 02:15 AM

Same thoughts as Benjamin, I had wrapped MSSQL and SQL Express into the same general "MSSQL heading" - not sure if you thought I was referring to LocalDB? (Which I've not yet tried in a deployed system, but still needs some installation to my knowledge, even though this may be less dependant on configuration and lighter on the host for startup)

I'm not getting lots of push back on MSSQL so it's not a high priority for me. Often we can leverage an existing SQL instance or create a new without problems. Nobody has had a problem with this so far, but people have just asked "if we must use MSSQL" so my thoughts were about making it simpler and easier to configure and install without the added SQL footprint on install and giving our consumers choice!

For me supporting a lighter "no install and config" database source is just a nice to have

Reply
JeffBowman
Sisko JeffBowman Sisko
Sisko

Posted: ‎2016-08-01 07:00 AM

0 Likes
2
1662
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2016-08-01 07:00 AM

While SQLite would indeed prove beneficial in some use cases, SQLite is not fully companionable with Entity Framework 6 (EF6). Which would most likely cause significant breaking changes to the data model and/or migrations for SmartConnector.. So it may not be a practical from a development perspective to add this support. The below links describes limitations in SQLite (yes I am aware this is written against EF Core.. but the limitations listed are for SQLite engine and not EF)

SQLite Limitations — Entity Framework Core 1.0.0 documentation

An alternative to SQLite, could be SQL Server Compact, also a single file database, it has full EF6 compatibility. The only benefit I see of SQLite over SQL Server Compact is that is can be up to a 100TB in size.. while SQL Server Compact can only be 4GB...But then again.. if someone is gonna have a database with SmartConnector anywhere near that size.. then we should advise against not using SQL Server.

Reply
MAJLGC
Captain MAJLGC
Captain

Posted: ‎2016-11-14 12:53 AM

0 Likes
1
1661
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2016-11-14 12:53 AM

Sqlite support in latest Entity Framework version:

Entity Framework 7 con SQLite para aplicaciones de C#

Reply
sesa180908_brid
Commander sesa180908_brid Commander
Commander

Posted: ‎2016-11-16 08:08 AM

0 Likes
0
1661
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2016-11-16 08:08 AM

While I am a big fan of what was done in Entity Framework 7 (SmartConnectorServer uses Entity Framework 7), SmartConnector was built on Entity Framework 6.


From experience, the Entity Framework team did take some liberties in their re-design of Entity Framework and the migration path from earlier versions is not something that was recommended - even by them (at least it wasn't in the late beta/RC versions of Entity Framework).


So while getting support for SQLLite would be an added benefit for migrating, I don't think it alone warrants the effort in changing the underpinnings of SmartConnector. 


It is something we will certainly continue to monitor though.  Thanks for the input.




Reply
Anonymous user
Not applicable

Posted: ‎2017-03-31 07:53 AM

0 Likes
1
1661
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2017-03-31 07:53 AM

Benjamin,

I would like to access the extended trend logs in the Enterprise Server database directly through a VB program using SQLite libraries that I am writing.  Is there any way to set (or retrieve) the SQLCipher encryption Password in Workstation in the Enterprise Server?

Steve

Reply
sesa180908_brid
Commander sesa180908_brid Commander
Commander

Posted: ‎2017-03-31 08:00 AM

0 Likes
0
1660
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2017-03-31 08:00 AM

Steve, this post is in the wrong forum.  You may want to repost your request in SmartStruxure Solution forum.

Reply
Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

 
To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2025 Schneider Electric

This is a heading

With achievable small steps, users progress and continually feel satisfaction in task accomplishment.

Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.

of