database

How do I check if the same tag was already in database with PHP and Mysql?

I want this script to check to see if the same word has been entered if so it should add it to the count not add a duplicate tag. And if the tag entered is a new tag then let it add it to the database. Can some one help me fix this? $tag = mysql_real_escape_string($_POST['tag']); $query = "INSERT INTO tags (tag, count) VALUES ('$tag',...

Tools for graphicaly representing database structure.

I have been asked to create a graphical representation of our database, I have looked at tools such as, lucidcharts. Are there any good tools that I can use to graphically represent the database and it's relationships? ...

couldn't open database

i have my c# application in c:\program files\app\ folder i am using sqllite database my code working perfectly while logging via windows administrative user, if i change window user account to limited, i couldn't open my database public void OpenDB() { SQConnectionString = "Data Source=" + DBPath +";Pooling=true;FailIfMissing=false"...

storing long text

what is the best way to store long texts (articles) in a database? it doesnt need to be searchable. i want to allow ppl to read the first chapter of every book in my bookstore. dumping it into a database field makes it difficult to style paragraphs using css.. EDIT: access database ...

MS Access: how to compact current database in VBA

Pretty simple question, I know. ...

How would you arrange an XML file for an Event/Item which occurs on a range of multiple Dates?

For instance, I have a movie/item. It opens on Jan 1 2010 and finishes on Jan 10 2010. Do I create an entry for each date that the movie/item occurs, repeating all the data for each date? or do I create two nodes within the movie/item specifying a start date and end date and create an argument to provide all the data as needed? I want t...

What does it mean to say that "the where clause of select statements can perform >, >=, <, <= operations on one column only"?

According to the Wikipedia article on Google App Engine: The where clause of select statements can perform >, >=, <, <= operations on one column only. Therefore, only simple where clauses can be constructed. What does this mean? ...

MS Access - "You don't have permission to read [REPORT NAME]", object owner <unknown>

A client is receiving a "You don't have permission to read [REPORT NAME]" error message when attempting to launch a report in a MS Access database. When I go to the “Change Owner” tab under Tools > Security > User Groups and Permissions, the owner is <unknown>. If I attempt to change the owner, I get a "You don't have permission to cha...

Multivalued Fields a Good Idea?

I have recently been introduced to the new Access 2007 feature which is multivalued fields. My initial impression is that it is a bad idea to make use of multiple values in a single field. Traditionally if you wanted to allow for a record to have several values for a field you would create another two tables and link them with foreign ...

Linq to SQL error : An order by expression can only contain non-constant scalars...

I'm using a GridView and a LinqDataSource to view the Categories table. I set the Gridview to enable sorting. Sorting generally works except when i clicked on the header of the Description column. "An order by expression can only contain non-constant scalars that are order comparable by the server. The expression with type 'NText' is no...

Do I need multiple cursor objects to loop over a recordset and update at the same time?

So I've got a large database that I can't hold in memory at once. I've got to loop over every item in a table, process it, and put the processed data into another column in the table. While I'm looping over my cursor, if I try to run an update statement it truncates the recordset (I believe because it's re-purposing the cursor object)....

MySQL two column timestamp default NOW value problem

I have table as shown below. In order to workaround one default now column restriction of MySQL I used the tip as shown here CREATE TABLE IF NOT EXISTS mytable ( id INT NOT NULL AUTO_INCREMENT , create_date TIMESTAMP NULL DEFAULT '0000-00-00 00:00:00' , update_date TIMESTAMP NULL DEFAULT NOW() ON UPDATE NOW() , PRIMARY KEY (`p...

Weblogic 10.0: advantages with database connectivity and gotchas?

What advantages (if any) does Weblogic 10.0 provide in terms of database connectivity (to any database) over open source or commercial alternatives? Are there any Weblogic specific gotchas with using a Weblogic database connection? I'm a J2/JEE, Weblogic newbie so please excuse the simple questions. ...

Good methods for human-readable & human-maintained databases

So this is the scenario: You have a bunch of data that needs to end up in SQL. It needs to entered by hand. It is not an "enter once and you're done" scenario: it will need to be modified and expanded by humans in an ongoing iterative way. Comments will be associated with entries. It is also useful for data entry people to be able to ...

Best way to deploy user defined functions to multiple databases in SQL 2005

Hi, I manage a server with around 400+ databases which have the same database schema, i wish to deploy a custom clr/.net user defined function to them all, is there any easy way to do this, or must it be done individually to each database? Best Regards, Wayne ...

What are the advantages & disadvantages of using XML based database ?

Hi all, I came across a CMS known as GetSimple. It uses XML for storing all its internal data. In a way it is using XML as a database. Now could anyone explain me the advantages & disadvantages of using XML as a database. Thanks in Advance. Tanmoy ...

SQL 2005 Trigger Not Firing Reliably

I'm currently using Microsoft Sync Framework and everything is working fine except the SQL triggers which don't appear to fire sometimes. Here is the trigger code generated by the framework. It works 90% of the time but occasionally the CreationDate is NULL after an insert. Could there be some date issue that I'm overlooking? set ANS...

How does Firebird client/server compare to DB2 Express C

I was about to use Firebird for a project, when someone told that DB2 Express C is also free, and with plethora of tools, and is also mature. I read Firebird is also good for use as enterprise client/server database. Then how does it compare to DB2 Express C? Could the experienced ones shed some light on this. ...

C# Silverlight - Defining a join between database tables?!!?

Currently I have a c# silverlight business application. The application is hosted in Asp.net using the ADO.Net entity framework and a domain service class to read/write to/from my sql server database. The structure of the database is as follow. I have three tables. Job, Audit & Image. One Job can have many Audits, and One Image can have...

Android. How to protect your database?

Hi, do you know any ways how to protect your database in Android? I consider following ways, but don't know whether it is possible to do: access to database has only application owner (which created and serves it) restrict or deny access to database to all applications during the usage session of DB owner application are there any wa...