Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Convert SQL Views to SQLite Expand / Collapse
Author
Message
Posted Friday, December 6, 2013 8:16 PM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Tuesday, March 1, 2016 10:54 AM
Points: 19, Visits: 90
What i want to do is migrate my SQL Views to SQLite.
I have tried the following tools:

http://www.codeproject.com/Articles/26932/Convert-SQL-Server-DB-to-SQLite-DB
http://convertdb.com/views_translation

But those tools seem to only migrate my SQL Tables and not my views. Any tool out there to do that?

The big picture is that i need to put a website on a CD that connects to a database. MS Access could not hold my data so i am trying to use SQLite insead.
Post #1520785
Posted Saturday, December 7, 2013 11:58 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 1:58 PM
Points: 14,412, Visits: 37,726
in both SQL and SQLite, a view is a saved select statement.

it's pretty much just CREATE VIEW VIEWNAME AS SELECT.....

where are you having trouble? do you want to materialize the SQL view as a table in SQLite, or still as a view?


Lowell

--
help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!
Post #1520831
Posted Saturday, December 7, 2013 9:25 PM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Tuesday, March 1, 2016 10:54 AM
Points: 19, Visits: 90
I just ended up keeping MS Access on my application and did away with the view that was giving me problems. When you import a SQL View to MS Access it imports the data as a table and it was too large.
My workaround was to replace in my code where i was calling a View, to a dynamic SQL Statement.
Post #1520852
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse