Solved

SQL database viewer, or how to get contents of DB file?

Posted on 2004-09-22
7
341 Views
Last Modified: 2008-03-17
I am beginning to write a program on Windows using .NET C# and Sqlite. I have an existing .db file from another application...I assume this is a SQL database. Forgive me for my ignorance, but I'm not familiar with databases much at all.

Anyway my first problem is...what is in this .db file? Is there a freeware/opensource viewer I can use to see the contents? OR, can I get the contents programmatically? Of all the examples and tutorials I have found about SQL databases, I haven't found a query string that just gets all of the table names, and their column names, etc. It's like you have to already know that. But I didn't create the database though.

Any help would be appreciated, thanks!
0
Comment
Question by:gunn
7 Comments
 
LVL 19

Expert Comment

by:NickUpson
Comment Utility
You first have to find out what database this file comes from, without that there is
very little you can do. When you know the answer that will probably tell you that installation of that product is necessary
0
 

Author Comment

by:gunn
Comment Utility
Hmmmm, ok. All I have been told so far is that they (Snapstream BeyondTV developers) are using SQLite. I'll ask around more on their forums...
0
 
LVL 2

Expert Comment

by:ngolovin
Comment Utility
Here: http://bobmanc.home.comcast.net/sqlitecc.html

should be exactly what you need.

"SQLite Control Center is a visual tool for working with SQLite database files"
0
 

Author Comment

by:gunn
Comment Utility
Great, thanks. I'll check it out.
0
 
LVL 4

Accepted Solution

by:
ndegioia earned 125 total points
Comment Utility
If you are using Visual Studio.NEt you can connect to you database file with ease.  Use the Server Explorer and the SQL adapters.  Then create a datagrid to load the table.  With the right tutorial it will take you miniutes.  You can View and Edit you DB file.  Build the program and use it as an edit utility.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

This article describes some very basic things about SQL Server filegroups.
CCModeler offers a way to enter basic information like entities, attributes and relationships and export them as yEd or erviz diagram. It also can import existing Access or SQL Server tables with relationships.
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…

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now