Click here to Skip to main content
16,004,828 members
Home / Discussions / Database
   

Database

 
QuestionOne Way Merge Replication Pin
Abdul Rahman Hamidy27-Feb-09 22:12
Abdul Rahman Hamidy27-Feb-09 22:12 
AnswerRe: One Way Merge Replication Pin
Abdul Rahman Hamidy3-Mar-09 19:59
Abdul Rahman Hamidy3-Mar-09 19:59 
Questioncache problem Pin
Aman786Singh27-Feb-09 15:42
Aman786Singh27-Feb-09 15:42 
Questionhelp reagrding multi valued field Pin
sana1727-Feb-09 10:23
sana1727-Feb-09 10:23 
AnswerRe: help reagrding multi valued field [modified] Pin
Ahmed Charfeddine1-Mar-09 9:16
Ahmed Charfeddine1-Mar-09 9:16 
QuestionCreating db scripts for any changes...mantaining SQL incremental scripts for db revisions. Pin
pzn3xq27-Feb-09 9:35
pzn3xq27-Feb-09 9:35 
AnswerRe: Creating db scripts for any changes...mantaining SQL incremental scripts for db revisions. Pin
kriskomar27-Feb-09 9:53
kriskomar27-Feb-09 9:53 
AnswerTreat your db scripts like source code Pin
David Mujica27-Feb-09 10:15
David Mujica27-Feb-09 10:15 
You should think of your db scripts like source code and create a SQL folder in your source structure that you check in and out of your version control system. (You are using one ? Right ?) You can then see what the differences are between your 1.0 and 1.1 create table scripts are. Smile | :)

Then consider this:
1) Create a base set of scripts called "create_XXX" where the "XXX" is the database object like tables, views, trigger, sproc, index. These scripts should be designed so that you could create an entire database schema from a blank database instance.

2) Create a script called "upgradeSchema" which will contain all of the alter table, alter index, create view, etc that may have changed from one release to another. You should design this upgradeSchema script in such a way that it could be run more than once on a database and have no undesireable effects. In other words, make no assumptions about the current schema state, test to see if a column already exists, is the data in the column null, etc. Lots of error checking going on here ...

Also you may want to consider 2 other areas:
System data - This script would insert values into lookup tables in order for the system to function.

Sample data - This might be enough data in tables so that you can publish a student guide showing some basic operations of your application.

What I've presented isn't a complete solution, but it should give you something to think about ...

If you are not using a version control system, your asking for trouble. Look into Subversion http://subversion.tigris.org[^]
Or if you a small Windows shop, you could always use Visual Source Safe, from Microsoft.
GeneralRe: Treat your db scripts like source code Pin
pzn3xq27-Feb-09 10:39
pzn3xq27-Feb-09 10:39 
GeneralRe: Treat your db scripts like source code Pin
David Mujica27-Feb-09 11:10
David Mujica27-Feb-09 11:10 
AnswerRe: Treat your db scripts like source code Pin
pzn3xq27-Feb-09 11:35
pzn3xq27-Feb-09 11:35 
QuestionTrying to understand the relationship between a db login and a db user? Pin
pzn3xq27-Feb-09 8:30
pzn3xq27-Feb-09 8:30 
AnswerRe: Trying to understand the relationship between a db login and a db user? Pin
goodideadave2-Mar-09 7:53
goodideadave2-Mar-09 7:53 
QuestionMSSQL 2005 and row_count() Pin
alex.barylski27-Feb-09 7:25
alex.barylski27-Feb-09 7:25 
AnswerRe: MSSQL 2005 and row_count() Pin
kriskomar27-Feb-09 9:55
kriskomar27-Feb-09 9:55 
GeneralRe: MSSQL 2005 and row_count() Pin
alex.barylski27-Feb-09 14:24
alex.barylski27-Feb-09 14:24 
QuestionDataset containing nullable datetime values does not like a null datetime? Pin
kriskomar27-Feb-09 5:51
kriskomar27-Feb-09 5:51 
QuestionAccess mdb Pin
trev777727-Feb-09 2:50
trev777727-Feb-09 2:50 
AnswerMore Background info Pin
David Mujica27-Feb-09 3:39
David Mujica27-Feb-09 3:39 
AnswerRe: More Background info Pin
trev777727-Feb-09 4:01
trev777727-Feb-09 4:01 
AnswerRe: More Background info Pin
trev777727-Feb-09 4:03
trev777727-Feb-09 4:03 
QuestionRe: Access mdb Pin
Eddy Vluggen27-Feb-09 4:52
professionalEddy Vluggen27-Feb-09 4:52 
AnswerRe: Access mdb Pin
trev777727-Feb-09 8:47
trev777727-Feb-09 8:47 
AnswerRe: Access mdb Pin
trev777727-Feb-09 8:57
trev777727-Feb-09 8:57 
GeneralRe: Access mdb Pin
Eddy Vluggen27-Feb-09 9:27
professionalEddy Vluggen27-Feb-09 9:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.