Solved

What content does .sql file consists

Posted on 2015-02-15
2
97 Views
Last Modified: 2015-02-24
Hello,

What does the .sql file consists of exactly. I got .sql file and when I open it in notepad can see table structure for tables and dumping data for that tables.

For table structure for some tables there is no dumping data so what does this mean.
0
Comment
Question by:srinivas2324
[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 3

Expert Comment

by:Leo Alexander
ID: 40611731
The .sql file contains code to create/query a table or tables. There is no dataset/table in the file itself, aside from the instructions/code on what to do with the data.

You would need software in order to execute the script. You could use MySQL  if you do not have a SQL server installed to read the file into.
0
 
LVL 18

Accepted Solution

by:
Simon earned 500 total points
ID: 40611774
>For table structure for some tables there is no dumping data so what does this mean.

When the other person created the file they chose to include structure only for those tables, or deleted the INSERT statements after creating the file.

It sounds like your .sql file is intended to create the database(s), but only provides data for configuration/lookup tables, leaving it ready for you to populate the other tables.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Foreword In the years since this article was written, numerous hacking attacks have targeted password-protected web sites.  The storage of client passwords has become a subject of much discussion, some of it useful and some of it misguided.  Of cou…
I have been using r1soft Continuous Data Protection (http://www.r1soft.com/linux-cdp/) for many years now with the mySQL Addon and wanted to share a trick I have used several times. For those of us that don't have the luxury of using all transact…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

740 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