SQLite and the.NET Framework This PPT:

Slides:



Advertisements
Similar presentations
Introduction to SQLite ISYS 475. Download SQLite – Precompiled Binaries for Windows Create a folder “sqlite” under c:\xampp.
Advertisements

1 Introducing SQL Server  A Relational DBMS  A Powerful Client/Server DBMS Utilities range from:  Simple Database Creation/Maintenance To  Datawarehousing,
Joseph Sangiorgio Computer Science Binghamton University President: Theta Tau Professional Engineering Fraternity.
SQLite is a software library. It is: self-contained + Serverless + zero-configuration transactional = SQL database engine. Most widely deployed. The source.
Computer Monitoring System for EE Faculty By Yaroslav Ross And Denis Zakrevsky Supervisor: Viktor Kulikov.
Software Freedom Day th September 2007 Asia Pacific Institute of Information Technology Colombo, Sri Lanka. Nazly Ahmed Scripting The Web.
Technical Architectures
DRIVOLUTION: RETHINKING THE DATABASE DRIVER LIFECYCLE Emmanuel Cecchet (UMass Amherst) Joint work with George Candea ( )
Fundamentals, Design, and Implementation, 9/e Chapter 14 JDBC, Java Server Pages, and MySQL.
Agenda What is the ASP.NET Web Matrix Project? What is the ASP.NET Web Matrix Project? Who is it for? Who is it for? Web Matrix and Visual Studio.NET Web.
Object-Oriented Application Development Using VB.NET 1 Chapter 13 Introduction to Data Access Classes and Persistence.
IS4401 Project Technology Issues. Introduction This seminar covers Databases When to use a Database What Database to use Development Tools Visual Studio.
Performed by:Gidi Getter Svetlana Klinovsky Supervised by:Viktor Kulikov 08/03/2009.
PHP Scripting Language. Introduction “PHP” is an acronym for “PHP: Hypertext Preprocessor.” It is an interpreted, server-side scripting language. Originally.
Objective In this session we will discuss about : What is ADO. NET ?
SQL Server ® 2008 ® Native Client. Agenda  Introduction to SQL Server Native Client  Building High-Performance Data Access Solutions  Going Beyond.
Virtual techdays INDIA │ august 2010 Building ASP.NET applications using SQL Server Compact Chaitanya Solapurkar │ Partner Technical Consultant,
SQLite BY Jordan Smith Brian Wetzel Chris Hull William Anderson.
Databases Dan Otero Alex Loddengaard
Phil Brewster  One of the first steps – identify the proper data types  Decide how data (in columns) should be stored and used.
Introduction To Databases IDIA 618 Fall 2014 Bridget M. Blodgett.
Anders Karlsson Principal Sales Engineer, MySQL MySQL Embedded - Getting started with libmysqld.
IS 4506 Database Connectivity.  Overview Two and Three-Tier C/S Architecture ASP Database Connection ODBC - Connection to DBMS Overview of transaction.
Object Oriented Databases by Adam Stevenson. Object Databases Became commercially popular in mid 1990’s Became commercially popular in mid 1990’s You.
JDBC Vs. Java Blend Presentation by Gopal Manchikanti Shivakumar Balasubramanyam.
ContentProviders. SQLite Database SQLite is a software library that implements aself- contained, serverless,zero- configuration,transactionalSQL database.
Module 1: Introduction to Microsoft SQL Server 7.0.
A Scalable Application Architecture for composing News Portals on the Internet Serpil TOK, Zeki BAYRAM. Eastern MediterraneanUniversity Famagusta Famagusta.
MySQL GUI Administration Tools Rob Donahue Manager, Distributed Systems Development May 7th, 2001 Rob Donahue Manager, Distributed Systems Development.
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | BDB Java Sample Program Backing enterprise and embedded Java applications with BDB.
How to Configure Informix Connect and ODBC James Edmiston Informix DBA Consultant/Quest Information Systems, Inc. Informix User Forum 2005 Moving Forward.
Session 1 - Introduction and Data Access Layer
Using the WDK for Windows Logo and Signature Testing Craig Rowland Program Manager Windows Driver Kits Microsoft Corporation.
Alternative databases CMSC 461 Michael Wilson. The power of relational databases  It’s often useful to have relational database power in unusual situations.
M1G Introduction to Database Development 6. Building Applications.
Goodbye rows and tables, hello documents and collections.
Web Server Administration Chapter 7 Installing and Testing a Programming Environment.
CS795/895: Introduction. Topics Distributed Systems –Availability –Performance –Web Services Security –Authentication –Authorization –Confidentiality.
SQLite Cole Hoosier Overview  RDBMS –Relational database management system  ACID Compliant –Atomicity, consistency, isolation, durability.
CCP4(i) Database Development Wanjuan (Wendy) Yang CCP4 Annual developer’s meeting March 28, 2006 York.
A Little More Mihail Stoynov mihail.stoynov.com mihail.stoynov.com.
CakePHP is an open source web development framework. It follows Model-View- Controller and is developed using PHP. IT is the basic for user to create.
NoSQL Databases Oracle - Berkeley DB. Content A brief intro to NoSQL About Berkeley Db About our application.
While you are waiting, please install the Windows 10 phone emulators because the installation takes a while and we will be using them during the lab later.
Lesson 2 What is ASP.NET? What is ASP.NET? What is Web Matrix? What is Web Matrix? What are the features of Web Matrix? What are the features of Web Matrix?
DAT602 Database Application Development Lecture 2 Review of Relational Database.
Persistance Android. Adding Persistance SQL Refresher Understand how to create and migrate SQLLite database with android APIs. – Get all tasks – Add a.
INTRODUCTION TO DBS Database: a collection of data describing the activities of one or more related organizations DBMS: software designed to assist in.
7/6/2004 CMS weekZhen Xie 1 POOL RDBMS abstraction layer status & plan Zhen Xie Princeton University.
Windows Azure. Azure Application platform for the public cloud. Windows Azure is an operating system You can: – build a web application that runs.
Introduction Because database applications today reside in a complicated environment, various standards have been developed for accessing database servers.
Getting Started with Oracle Berkeley DB 11gR2 and ADO.NET
CS 440 Database Management Systems Stored procedures & OR mapping 1.
CHAPTER 9 File Storage Shared Preferences SQLite.
1 © 2005 Cisco Systems, Inc. All rights reserved. Cisco Confidential Session Number Presentation_ID Unity Connection Provisioning API Matt Penning Unity.
Data in Windows 10 UWP Andy Wigley XML, JSON, SQLite or EF Core ?
The Holmes Platform and Applications
Integrating Data Lesson 6.
DEPTT. OF COMP. SC & APPLICATIONS
ODBC, OCCI and JDBC overview
Data Virtualization Demoette… ADO.NET Client
Chapter 6 System and Application Software
Database Software.
Module 10: Implementing Managed Code in the Database
OurSQL = MySQL + Blockchain
Chapter 6 System and Application Software
Chapter 6 System and Application Software
Chapter 6 System and Application Software
Mark Quirk Head of Technology Developer & Platform Group
Presentation transcript:

SQLite and the.NET Framework This PPT:

What is SQLite? SQLite is a small C library that implements a self-contained, embeddable, zero-configuration SQL database engine.  Transactions are atomic, consistent, isolated, and durable (ACID) even after system crashes and power failures.  Zero-configuration - no setup or administration needed.  Implements most of SQL92.  A complete database is stored in a single disk file.  Database files can be freely shared between machines with different byte orders.  Supports databases up to 2 terabytes (241 bytes) in size.  Sizes of strings and BLOBs limited only by available memory.

What is SQLite – continued  Faster than popular client/server database engines for most common operations.  Simple, easy to use API.  Bindings for many languages available  Well-commented source code with over 95% test coverage.  Self-contained: no external dependencies.  Sources are in the public domain. Use for any purpose.  There is now a robust SQLite.NET ADO.NET provider!  Small code footprint: less than 30K lines of C code, less than 250KB code space  Installation: Just set “Build Action” to “Content” on Database file!

More SQLite Features Create Database Programmatically in Connection string  No need to distribute or install database  SQL to create database, tables, triggers can be embedded Triggers  Triggers can be used to handle many of the functions of stored procedures. Vacuum  Just like “Compact Database” in MS Access.

The SQLite ADO.NET Provider Conforms to normal ADO.NET Best practices Offers:  SQLiteConnection  SQLiteCommand - all Methods except “Xml”  SQLiteDataAdapter  SQLiteCommandBuilder  Supports NTFS compression of Database File

SQLite 3.0 ODBC Driver This is an experimental open source ODBC driver for the wonderful SQLite 2.8.* and SQLite 3.* (alpha) Database Engine/Library. So far it is more a proof of concept and might contain lots of memory leaks and all other kinds of bugs. Thus I highly appreciate feedback. WIN32 binaries (the ODBC driver DLL, install/uninstall programs) are in werner.de/sqliteodbc/sqliteodbc-win32.zip It works! It is SLOOOOW!

SQLite in Action: A First Look private void CreateDatabase() { SQLiteConnection Conn = new SQLiteConnection(); string strPath=Server.MapPath("blog.db"); Conn.ConnectionString = "Data Source="+strPath+"; Compress=False;Synchronous=Off;New=True;Version=3"; Conn.Open(); SQLiteCommand Cmd = new SQLiteCommand(); Cmd = Conn.CreateCommand(); Cmd.CommandText="CREATE TABLE BlogItems (Blogid integer primary key, title varchar(250), link varchar(300), [description] varchar(8000), pubDate datetime, guid varchar(128), [public] integer )"; Cmd.ExecuteNonQuery();....

Important Scenarios Mobile Code  Device-hosted applications  Database runs 100% on Device  “Zero configuration” installation  NO Client License Fees Server / Desktop Code  Alternative to MSDE, MSAccess, MySql  No installation Required  Fast database engine  MultiThreaded

Mobile Code Scenario Advantages of mobile code database  Executes locally for performance and rich features  Can use a WebService to receive “GetChanges” DataSets to update database on server  No dependency on “what kind” of database is used on the server.  No complicated Server configuration  No Client license fees to use SQLite

Demos!

URLS - Articles and Sample Code! ASP.NET CacheDependency: ASP.NET CacheDependency: SQLite DB and SQLiteBlog: SQLite DB and SQLiteBlog: Forum Control with SQLite: Forum Control with SQLite: SQLite Compact Framework: SQLite Compact Framework: