Solved

How is the actual database created?

Posted on 2011-03-07
2
356 Views
Last Modified: 2012-05-11
I have this code (below)... my question is: if the database file does NOT exist, which one of these statements creates it?  (not the tables, but the actual file 'r64.sdb')  Is it the SQLiteConnection statement?
dbPath = Environment.GetFolderPath (Environment.SpecialFolder.MyDocuments);
	        db = Path.Combine (dbPath, "r64.sdb");
	        
			bool exists = File.Exists (db);  //  check to make sure it exists
			
			conn = new SqliteConnection("Data Source=" + db);

Open in new window

0
Comment
Question by:rmmarsh
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Accepted Solution

by:
CHutchins earned 500 total points
ID: 35062877
It has to be making a call to another script to create the file from what I can tell form the last line.
the last line looks like a Connection creation and data source - + db is making a call to a variable
0
 

Author Closing Comment

by:rmmarsh
ID: 35063180
By trial and error I figured it out... conn.Open creates the database, based on the contents of db.  Thanks for your help... I appreciate it.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
This post contains step-by-step instructions for setting up alerting in Percona Monitoring and Management (PMM) using Grafana.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question