Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

database source ddl

Posted on 2010-08-12
6
Medium Priority
?
290 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
[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
  • 3
  • 3
6 Comments
 
LVL 7

Accepted Solution

by:
Cboudroz earned 2000 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 2000 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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 2000 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

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

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

The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

661 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