Solved

database source ddl

Posted on 2010-08-12
6
243 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
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

Performance is the key factor for any successful data integration project, knowing the type of transformation that you’re using is the first step on optimizing the SSIS flow performance, by utilizing the correct transformation or the design alternat…
Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
Viewers will learn how the fundamental information of how to create a table.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

762 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

19 Experts available now in Live!

Get 1:1 Help Now