Solved

What content does .sql file consists

Posted on 2015-02-15
2
96 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
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
xampp tool 12 56
Determining creation & modification dates on MySQL tables 4 45
MySQL Backup Strategy 15 44
mysql query for sum() 3 28
Introduction In this article, I will by showing a nice little trick for MySQL similar to that of my previous EE Article for SQLite (http://www.sqlite.org/), A SQLite Tidbit: Quick Numbers Table Generation (http://www.experts-exchange.com/A_3570.htm…
When table data gets too large to manage or queries take too long to execute the solution is often to buy bigger hardware or assign more CPUs and memory resources to the machine to solve the problem. However, the best, cheapest and most effective so…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

860 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