Solved

database source ddl

Posted on 2010-08-12
6
264 Views
Last Modified: 2012-05-10
Is the above term referred to the CREATE scripts to create all the objects in a db?

thanks
0
Comment
Question by:anushahanna
  • 3
  • 3
6 Comments
 
LVL 7

Accepted Solution

by:
Cboudroz earned 500 total points
ID: 33422466
DDL = Data definition Language (http://en.wikipedia.org/wiki/Data_Definition_Language)

create, drop, alter,


DML = Data manipulation language (http://en.wikipedia.org/wiki/Data_Manipulation_Language)

select, insert, update, delete.

Now we start also talk about DCL = Data control language (http://en.wikipedia.org/wiki/Data_Control_Language)

GRANT - REMOVE (for security)
0
 
LVL 6

Author Comment

by:anushahanna
ID: 33422511
so, "source" DDL probably means the scripts needed to reproduce the database entirely (only the schema)?
0
 
LVL 7

Assisted Solution

by:Cboudroz
Cboudroz earned 500 total points
ID: 33422628
that refer to all the object in script to CREATE each object.  normally you put these script in VSS or SVN to kept control on the objects history.

You can not really version your Database.mdf but you can do it with the DDL script in txt format.

Example:
- one folder by object type
- one txt file by object that include DDL statement to create the object


When I want to change a DATABASE object I change the txt file in my SVN server and after used RedGate SQL compare to synh the change made in the txt file to the real object in the database.

SQL compare will convert my create proc in alter proc if the proc already exists and will kept.

After the changes are successfully deployed on live server I can commit my change in SVN whit comment on the changes (now I can see the proc history in SVN)



 
DATABASE-DDL-source.jpg
0
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

 
LVL 6

Author Comment

by:anushahanna
ID: 33422719
OK. you can always version nicely like that on the schema, but never on the data, right?
0
 
LVL 7

Assisted Solution

by:Cboudroz
Cboudroz earned 500 total points
ID: 33422752
yes you can, redgate SQL DATA compare can do it for you.


you need to save text file like :

insert into test (test1, test2,test3) value '1', '2', '3'
insert into test (test1, test2,test3) value '1', '2', '3'
insert into test (test1, test2,test3) value '1', '2', '3'
insert into test (test1, test2,test3) value '1', '2', '3'
insert into test (test1, test2,test3) value '1', '2', '3'
0
 
LVL 6

Author Comment

by:anushahanna
ID: 33422777
Thanks very much for your very informative input.
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Access denied running PowerPivot -SQL Server 2014 on Windows Server 2012 10 28
How to share SSIS Package? 6 35
Get the latest status 8 29
SQL Update trigger 5 16
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

813 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

12 Experts available now in Live!

Get 1:1 Help Now