473,387 Members | 1,532 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

create database: programmatically vs app-tools

Just wondering if anyone knows the pros/cons between creating a database
programmatically vs using the application's tool windows/features that come
with SQLServer, Access, Oracle, etc...

Is it the same? Does it really matter? I have created databases with .NET
programmatically and it works fine, but why would anyone want to do all this
typing when they can easily point and click inside the program?

It took a few hours of typing for me to create the database and all its
tables. I am very certain that if i just point and clicked inside the
program it would've been done in less than an hour. So why do people
programmatically use SQL? Is it only on an as-needed basis or do many people
ALWAYS use this practice because it makes it more efficient/declarative?
Nov 16 '05 #1
3 3687
Once you've typed the syntax once ... you can save it in a .sql or text file
and reuse it over and over and over. Once it's written, no more clicking -
just modify for the new database, and then execute. Moreover, there are a
myriad of configuration issues that affect performance, security, etc., that
sometimes are easy to overlook in the GUI, and would have to be addressed by
reading through BOL to write the syntax yourself. Consider it a "healthy"
excercise that will treat you well over the long haul.

Good luck.

Mark
www.dovetaildatabases.com

"R Reyes" <RR****@discussions.microsoft.com> wrote in message
news:89**********************************@microsof t.com...
Just wondering if anyone knows the pros/cons between creating a database
programmatically vs using the application's tool windows/features that come with SQLServer, Access, Oracle, etc...

Is it the same? Does it really matter? I have created databases with ..NET programmatically and it works fine, but why would anyone want to do all this typing when they can easily point and click inside the program?

It took a few hours of typing for me to create the database and all its
tables. I am very certain that if i just point and clicked inside the
program it would've been done in less than an hour. So why do people
programmatically use SQL? Is it only on an as-needed basis or do many people ALWAYS use this practice because it makes it more efficient/declarative?

Nov 16 '05 #2
It's easier to migrate changes through development -> Test -> Production
servers if the database is created in script. Just apply the script to
a different server/database and you're set.

If you use the GUI tools (which, I admit, are nice and easy) you have to
manually change each database.

Mark wrote:
Once you've typed the syntax once ... you can save it in a .sql or text file
and reuse it over and over and over. Once it's written, no more clicking -
just modify for the new database, and then execute. Moreover, there are a
myriad of configuration issues that affect performance, security, etc., that
sometimes are easy to overlook in the GUI, and would have to be addressed by
reading through BOL to write the syntax yourself. Consider it a "healthy"
excercise that will treat you well over the long haul.

Good luck.

Mark
www.dovetaildatabases.com

"R Reyes" <RR****@discussions.microsoft.com> wrote in message
news:89**********************************@microsof t.com...
Just wondering if anyone knows the pros/cons between creating a database
programmatically vs using the application's tool windows/features that


come
with SQLServer, Access, Oracle, etc...

Is it the same? Does it really matter? I have created databases with


.NET
programmatically and it works fine, but why would anyone want to do all


this
typing when they can easily point and click inside the program?

It took a few hours of typing for me to create the database and all its
tables. I am very certain that if i just point and clicked inside the
program it would've been done in less than an hour. So why do people
programmatically use SQL? Is it only on an as-needed basis or do many


people
ALWAYS use this practice because it makes it more efficient/declarative?


--
to reply, remove .s.p.a.m. from email
Nov 16 '05 #3
Thanks for the replies.

From now on I think I will be creating all my databases with reusable
scripts.

Sounds like its definitely worth it.

"Ben Bloom" wrote:
It's easier to migrate changes through development -> Test -> Production
servers if the database is created in script. Just apply the script to
a different server/database and you're set.

If you use the GUI tools (which, I admit, are nice and easy) you have to
manually change each database.

Mark wrote:
Once you've typed the syntax once ... you can save it in a .sql or text file
and reuse it over and over and over. Once it's written, no more clicking -
just modify for the new database, and then execute. Moreover, there are a
myriad of configuration issues that affect performance, security, etc., that
sometimes are easy to overlook in the GUI, and would have to be addressed by
reading through BOL to write the syntax yourself. Consider it a "healthy"
excercise that will treat you well over the long haul.

Good luck.

Mark
www.dovetaildatabases.com

"R Reyes" <RR****@discussions.microsoft.com> wrote in message
news:89**********************************@microsof t.com...
Just wondering if anyone knows the pros/cons between creating a database
programmatically vs using the application's tool windows/features that


come
with SQLServer, Access, Oracle, etc...

Is it the same? Does it really matter? I have created databases with


.NET
programmatically and it works fine, but why would anyone want to do all


this
typing when they can easily point and click inside the program?

It took a few hours of typing for me to create the database and all its
tables. I am very certain that if i just point and clicked inside the
program it would've been done in less than an hour. So why do people
programmatically use SQL? Is it only on an as-needed basis or do many


people
ALWAYS use this practice because it makes it more efficient/declarative?


--
to reply, remove .s.p.a.m. from email

Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jorge Cecílio | last post by:
Hi all! How can I create a report from a Java application? I've been developing a (small) JDBC app that retrieves invoice data giving its number. (I'm using a Swing GUI) The app works fine...
3
by: G rumpy O ld D uffer | last post by:
This is probably a 'Low-Level' question to all the ACCESS experts but I've only been using ACCESS for a couple of weeks. I've been given 30+ (and counting) separate 'Weekly' Databases which all...
4
by: Manu | last post by:
I would like to create a database for my application when it is deployed. This database can be from different types depending on the tool installed on the customer computer and will be chosen...
5
by: Jacob | last post by:
Happy New Year! I'm writing a program that will need to store large amounts of data from several DataSets that I create at runtime (for information like email, calendar, etc...). The trick is...
7
by: Tim Smith | last post by:
Hi, Is it possible to create a progam to mimic the following action a) drag oledbadapter to form1.cs b) select my oracle ole connection c) enter 'select * from mytable' d) create adapter for...
3
by: Bradford | last post by:
I have an Windows application that displays lots of different colored lines in a Panel by using the Graphics.DrawLine method. The location and length of each line comes from a database query that...
0
by: joey.powell | last post by:
We have a website with hundreds of users. The users have each registered with their email addresses and other information, and these are stored in a Microsoft SQL Server database. The user accounts...
14
by: mistral | last post by:
Need php script to create mySQL database programmatically; since hosting configuration may not allow create database from script, script also need eliminate/rewrite all restrictions in appropriate...
11
by: =?Utf-8?B?UGV0ZXIgSw==?= | last post by:
I am working with Visual Studio or alternately with Expression Web. I need to create about 50 aspx pages with about 1200 thumbnali images, typically arranged in three to four groups per page,...
10
by: AAaron123 | last post by:
I want to create a database with one table on the host. I can't user SQL Server Management Studio to do it so I guess I have to do it programmatically. I have in mind that in the session start...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.