rdbms

Check for changes to an SQL Server table?

前提是你 提交于 2019-11-28 03:07:19
How can I monitor an SQL Server database for changes to a table without using triggers or modifying the structure of the database in any way? My preferred programming environment is .NET and C#. I'd like to be able to support any SQL Server 2000 SP4 or newer. My application is a bolt-on data visualization for another company's product. Our customer base is in the thousands, so I don't want to have to put in requirements that we modify the third-party vendor's table at every installation. By "changes to a table" I mean changes to table data, not changes to table structure. Ultimately, I would

How does noSQL perform horizontal scaling and how it is more efficient than RDBMS scaling

社会主义新天地 提交于 2019-11-28 02:28:08
I was reading about noSQL and relational DBMSs. After going through many posts, I am not able to find out exactly how noSQL systems perform horizontal scaling and how it is more efficient than RDBMS scaling. After all, RDBMSs also do replication and sharding. How this is fast in case of NoSql? First of all, there is no technology or product called "NoSQL." NoSQL is a broad category describing dozens of different technologies , which each work differently. Please don't use the term "NoSQL" as if it's a single implementation. Most NoSQL products achieve some scalability improvements by

Should I normalize my DB or not?

家住魔仙堡 提交于 2019-11-27 18:09:29
When designing a schema for a DB (e.g. MySQL) the question arises whether or not to completely normalize the tables. On one hand joins (and foreign key constraints, etc.) are very slow, and on the other hand you get redundant data and the potential for inconsistency. Is "optimize last" the correct approach here? i.e. create a by-the-book normalized DB and then see what can be denormalized to achieve the optimal speed gain. My fear, regarding this approach, is that I will settle on a DB design that might not be fast enough - but at that stage refactoring the schema (while supporting existing

Why is it recommended to avoid unidirectional one-to-many association on a foreign key? [duplicate]

依然范特西╮ 提交于 2019-11-27 18:02:44
Possible Duplicate: Hibernate unidirectional one to many association - why is a join table better? In the Hibernate online documentation, under section 7.2.3 One-to-many, it's mentioned, that: unidirectional one-to-many association on a foreign key is an unusual case, and is not recommended. You should instead use a join table for this kind of association. I would like to know why? The only thing that comes to my mind is, it can create problems during cascade deletes. For example, Person refers to address on a one to many relationship on a foreign key, and the address would refuse to be

Is this a good way to model address information in a relational database?

删除回忆录丶 提交于 2019-11-27 17:32:09
I'm wondering if this is a good design. I have a number of tables that require address information (e.g. street, post code/zip, country, fax, email). Sometimes the same address will be repeated multiple times. For example, an address may be stored against a supplier, and then on each purchase order sent to them. The supplier may then change their address and any subsequent purchase orders should have the new address. It's more complicated than this, but that's an example requirement. Option 1 Put all the address columns as attributes on the various tables. Copy the details down from the

What is the difference between DBMS and RDBMS?

∥☆過路亽.° 提交于 2019-11-27 17:27:15
After reading some answers on different websites I am confused now. So, it would be helpful to mention the key difference between DBMS and RDBMS and any relation between them. haccks Since this question become popular on Stack Overflow, I am posting an answer which answers this question for me. I found this answer on udemy website . Hope this will help future users and newbies searching for a good answer on this topic. Key Difference between DBMS and RDBMS : The key difference is that RDBMS (relational database management system) applications store data in a tabular form, while DBMS

What are database constraints? [closed]

自古美人都是妖i 提交于 2019-11-27 16:52:29
What is a clear definition of database constraint? Why are constraints important for a database? What are the types of constraints? Ziga Kranjec Constraints are part of a database schema definition. A constraint is usually associated with a table and is created with a CREATE CONSTRAINT or CREATE ASSERTION SQL statement. They define certain properties that data in a database must comply with. They can apply to a column, a whole table, more than one table or an entire schema. A reliable database system ensures that constraints hold at all times (except possibly inside a transaction, for so

Does MS-SQL support in-memory tables?

邮差的信 提交于 2019-11-27 15:56:02
问题 Recently, I started changing some of our applications to support MS SQL Server as an alternative back end. One of the compatibility issues I ran into is the use of MySQL's CREATE TEMPORARY TABLE to create in-memory tables that hold data for very fast access during a session with no need for permanent storage. What is the equivalent in MS SQL? A requirement is that I need to be able to use the temporary table just like any other, especially JOIN it with the permanent ones. 回答1: @Keith This is

How universal is the LIMIT statement in SQL?

为君一笑 提交于 2019-11-27 14:41:10
I'm in the process of generalizing a Django DB replication app and it uses the statement: SELECT %s FROM %s LIMIT 1 to fetch 1 row and use the Python DBAPI to describe the fields, it works fine with ORACLE and MySQL but, how cross platform is the LIMIT statement? BoltBait http://en.wikipedia.org/wiki/Select_(SQL)#Limiting_result_rows lists all of the major variants of the select command. I believe the best way to do this is to use the SET ROWCOUNT command before your SELECT statement. So, for you: SET ROWCOUNT 1 SELECT %s FROM %s LIMIT has become quite popular with a variety of Open Source

Update specific field on SOLR index

喜欢而已 提交于 2019-11-27 13:37:22
I want to using solr for search on articles I have 3 table: Group (id , group name) ArticleBase (id, groupId, some other field) Article(id, articleBaseId, title, date, ...) in solr schema.xml file i just define all article field that mixed with ArticleBase table (for use one index on solr) like this: (id, articleBaseId, groupId, ...) problem : Admin want to change group (ArticleBase), therefore i must update (or replace) all indexed article in solr. right ? can i update groupId only in solr index ? have any solution ? Note :Article table contains more than 200 million article, and i using solr