1

I have to meet the requirement to log on a database all the requests made by my application to an external WCF service. I was suggested to create a kind of a "log table" on my application's support database, isolated from all the other tables, where the logs of this activity could go. However, I wonder if this is really a good practice, i.e., to keep an isolated "logging" table on a database which is supposed to be relational. What would you recommend in this case?

DotNetStudent
  • 889
  • 9
  • 24

1 Answers1

4

Why not? After all relational databases operate on matematical set theory which is not relational at all, it is just that when the standards were designed we added a special type that represents a foreign key.

Special types were also made to make it easier and more efficient to store dates, but that doesn't mean a database is designed badly if a table has no rowes with dates in them.

If your log statements genuently don't have any relations, then the database table in which they are stored shouldn't have either.

tomjen
  • 3,779
  • 3
  • 29
  • 35