database

Remember object state in PHP between requests

I am writing an application and I will have some dictionary values in many different languages. I know I could use GetText, but AFAIR files have to be compiled after editing, and I want to let user edit dictionary, and I can't recompile .mo files on the server. I don't know how many languages will be used, so solution must be elastic. I...

mySQL - Table locking vs Row locking

Application Description I have a table which stores id's which represent area's on a map. Each map contains 1000 areas. A territory is any number of area's of a map that are touching. Users fight for ownership of different areas of the map. Database Design Currently I have a table of maps, a table of territories and a table of areas....

php multiple databases problem

Hi, i've set two database conections as below $con1 = mysql_connect("localhost", "root", "pwd") or die (mysql_error()); $con2 = mysql_connect("localhost", "wordpress", "pwd", true) or die(mysql_error()); mysql_select_db("lab_ancp", $con1) or die(mysql_error()); mysql_select_db("wordpress",$con2) or die(mysql_error()); and it works...

Accessing a local access database from Flash (or AIR)

Is it possible for Flash or possibly Adobe AIR to have access to a local Access database? I will have either a Flash EXE or AIR application running on a local PC (WinXP). The PC will also have a local Access database. I need my Flash application to get the data from this Access database. How would I do this? I doubt it can be done with...

What is better extra query or extra column in database?

What is better extra query or extra column in database for data that will be available very less time. Example: In Case of sub user management either i add one extra column super_user_id in main users table and make enrty if users types are sub_user and the default column value is -1 or i create new table and manage sub user in that tab...

how to access two different database from single web application

how to access two different database from single web application using asp.net . can u suggest me a solution ...

Move some (not all) users from one ASP.NET Membership database to another

Does anybody know if it is possible to move some (not all) users from one ASP.NET membership database to another? (for the purposes of migrating some users to another database on another machine, but not all). ...

mySQL - Should I denormalise?

Overview (Sorry its vague - I think if I went into more detail it would just over complicate things) I have three tables, table one contains an id, table two contains its own id and table one's id and table three contains its own id and table two's id. I have spent a lot of time pondering and I think it would be more efficient for tabl...

Database problem: how to diagnose and fix the problem?

Hi, I created an application which stores values into the database and retrieves the stored data. While running an application in run mode everything seems to work fine (the values are stored and retrieved successfully) but when I run in the debug mode the process throws IllegalStateException and so far haven't found a cause. The metho...

When it is time for a table to change from MyISAM to InnoDb?

This question is like a continuation of my previous question: http://stackoverflow.com/questions/1722155/am-i-right-that-innodb-is-better-for-frequent-concurrent-updates-and-inserts-than/ But this time I have concrete questions. We know that MyISAM is faster than InnoDb when we don't have many concurrent updates (inserts). When we have ...

Users asking for denormalized database

I am in the early stages of developing a database-driven system and the largest part of the system revolves around an inheritance type of relationship. There is a parent entity with about 10 columns and there will be about 10 child entities inheriting from the parent. Each child entity will have about 10 columns. I thought it made sense ...

How to emulate tagged union in a database?

What is the best way to emulate Tagged union in databases? I'm talking about something like this: create table t1 { vehicle_id INTEGER NOT NULL REFERENCES car(id) OR motor(id) -- not valid ... } where vehicle_id would be id in car table OR motor table, and it would know which. (assume that motor and car tables have nothing in com...

Anyone know of a music api and database?

Does any one know of a music API other the yahoo's (http://developer.yahoo.com/music/) Thanks, Eden I should have clarified a bit. I know of other APIs but I would really like to know how was your experience with your API of choice. Especially with the ability of recognizing Artists' names and Tracks' name. I work a lot with Yahoo's...

Modify unique constraint in Oracle

I need to update an existing constraint in Oracle database to add a new column there. ALTER TABLE MY_PARTNER_DETAILS MODIFY CONSTRAINT UQ_MY_PARTNER_DETAILS UNIQUE(PARTNER_CODE,PGOOD_CODE,SITE_CODE,PARTNER_PLACEMENT,PARTNER_PARTICIPATION) Gives: Error at line 1 ORA-00933: SQL command not properly ended What's the problem with that? ...

what is sqlserver database remark returned fom sp_databases?

The sp_databases stored proc in sqlserver returns a remarks column. Where does this information come from, and can I edit it? ...

Can I set up a filtered, star-pattern database replication?

We have a client that needs to set up N local databases, each one containing one site's data, and then have a master corporate database containing the union of all N databases. Changes in an individual site database need to be propagated to the master database, and changes in the master database need to be propagated to the appropriate ...

How can I store attachments on the filesystem instead of in the DB in XWiki?

Right now, attachments get stored in the DB instead of on the filesystem. Is there a configuration option or a plugin that can be used to change XWiki to store and read attachments from disk? I see that there are hooks in xwiki.cfg file for swapping out the Java class that implements attachment storage. So far I've come across this us...

Manage data structures in the database or in code?

I've always had a difficult time deciding where the best place is to manage my "master" set of data structures for my data access layer. Traditionally, I've always started with a database and used a code generation tool to get a set of code models (i.e. ActiveRecord in SubSonic). Lately, however, I've been attracted by the idea of mana...

DOS Database - help needed to recognize what is it

Hello, today I got a copy of an old system from which I need to import data. The system is written in C and runs in DOS. It uses some kind of database. The file format seems to be rather simple(1 file = 1 table, header contains some description and then records, fields are delimited by 0 ASCII character, but it's not that simple as it se...

What is the difference between an Index and a Foreign Key?

I want to create a database with 3 tables. One for posts and one for tags and one that links posts to tags with the post_id and tag_id functioning as foreign key references. Can you explain what an Index would be in this scenario and how it differs from a Foreign Key and how that impacts my database design? ...