Renaming Columns in DB Table: Apex SQL or Examine Dependenci

AI Thread Summary
When renaming tables or columns within a database, using tools like Apex SQL can help automate dependency checks, but manual review may be necessary for complex changes. Modern relational database management systems (RDBMS) treat database names as arbitrary parameters, making renaming less problematic. However, renaming can still trigger warnings and errors if not managed properly, especially if business logic is tightly coupled with the database structure. It's crucial to separate the business logic layer from the data storage layer to minimize issues during schema alterations. For project resources, database model schemas can be found at databaseanswers.org, which may be useful for modifications.
WWGD
Science Advisor
Homework Helper
Messages
7,679
Reaction score
12,490
Hi All,
Just curious as to what those with experience in creating databases believe is the best method when
renaming databases: using Apex SQL , which (supposedly) automatically checks for dependencies or
just sitting down , looking at the dependencies and doing the changes one by one as needed? This is
for a class project. Also, can anyone recommend a good source for schemas to use , maybe
make changes to (EDIT: The project is for a company)?
 
  • Like
Likes Silicon Waffle
Technology news on Phys.org
Renaming databases is not an issue in modern RDBMSs as we work with connections in which the name of the database is an arbitrary parameter. Do you mean renaming tables and/or columns within databases?

In the real world (e.g. for a company), business logic is implemented in code which is linked to database structure. Ideally this is abstracted so that the business logic layer is separated from the data storage layer by at least one level, so alterations to the database schema need only be dealt with by altering the relevant code in the Data Access Layer (DAL)/Data Access Objects (DAO)/Object Relational Models (ORM)/whatever the paradigm you are using.
 
  • Like
Likes jim mcnamara and WWGD
MrAnchovy said:
Renaming databases is not an issue in modern RDBMSs as we work with connections in which the name of the database is an arbitrary parameter. Do you mean renaming tables and/or columns within databases?

In the real world (e.g. for a company), business logic is implemented in code which is linked to database structure. Ideally this is abstracted so that the business logic layer is separated from the data storage layer by at least one level, so alterations to the database schema need only be dealt with by altering the relevant code in the Data Access Layer (DAL)/Data Access Objects (DAO)/Object Relational Models (ORM)/whatever the paradigm you are using.

Thanks, Anchovy, I do mean renaming within a database. I did get a warning message from my MSSQL2014 in that respect for some reason after I renamed a table within a database. And there were error messages even when I "inverted" the renaming (i.e., I gave the table the original name), I had some. And I guess we use the names DDL (Data Definition Language) and DML (Data Manipulation Language) respectively, and in this case the renaming is done within a DDL , i.e., writing code , not doing within a GUI (Graphical Interface).
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I had a Microsoft Technical interview this past Friday, the question I was asked was this : How do you find the middle value for a dataset that is too big to fit in RAM? I was not able to figure this out during the interview, but I have been look in this all weekend and I read something online that said it can be done at O(N) using something called the counting sort histogram algorithm ( I did not learn that in my advanced data structures and algorithms class). I have watched some youtube...
Back
Top