database

Replicating / Cloning data from one MS SQL Server to another

Hi, I am trying to get the content of one MSSQL database to a second MSSQL database. There is no conflict management required, no schema updating. It is just a plain copy and replace data. The data of the destination database would be overwritten, in case somebody would have had changed something there. Obviously, there are many ways t...

Database Design: replace a boolean column with a timestamp column?

Earlier I have created tables this way: create table workflow ( id number primary key, name varchar2(100 char) not null, is_finished number(1) default 0 not null, date_finished date ); Column is_finished indicates whether the workflow finished or not. Column date_finished is when the workflow was finished. Then I had ...

How to export MS SQL database to MYSQL?

I'm trying to convert from a MSSQL .bak database to MYSQL. This question and answers have been very useful, and I have successfully imported the database, but am now stuck on exporting to MYSQL. The MYSQL Migration Toolkit was suggested, but seems to have been replaced my the MYSQL Workbench. Is it possible to use the MYSQL Workbench to...

MySQL date range SELECT + JOIN query using column with CURRENT_TIMESTAMP

I am using this query: SELECT p.id, count(clicks.ip) FROM `p` LEFT JOIN c clicks ON p.id = clicks.pid WHERE clicks.ip = '111.222.333.444' To select clicks from table "c", that has "pid" = "p.id". The query seems to work fine, but now I want to use that query with date ranges. The "c" table has a column "time" that uses MySQL CURRENT_T...

MySQL: How to select and display ALL rows from one table, and calculate the sum of a where clause on another table?

I'm trying to display all rows from one table and also SUM/AVG the results in one column, which is the result of a where clause. That probably doesn't make much sense, so let me explain. I need to display a report of all employees... SELECT Employees.Name, Employees.Extension FROM Employees; -------------- | Name | Ext | ------------...

Good database for large table with simple key access

I have a few large databases, greater than 100 million records. They consist of the following: A unique key. An integer value, not unique, but used for sorting the query. A VARCHAR(200). I have them in a mysql isam table now. My thought was, hey, I'll just set up a covering index on the data, and it should pull out reasonably fast....

Could I buy a domain name to increase traffic to my site like this?

Lets say I have a domain already, for example www.automobile4u.com (not mine), with a website fully running and all. The title of my "Website" says: <title>Used cars - buy and sell your used cars here</title> Also, lets say I have fully SEO the website so when people searching for the term buy used cars, I end up on the second or f...

Actual C# Program Example

I am in the process of learning C# (using Visual Studio 2010) to design some stand-alone applications for desktop users. Almost all of my programming experience is with Java for web development. I have read a few books now on C# and am comfortable with the programming but would like to see an example of building an actual program using...

What is the difference between using a cross join and putting a comma between the two tables?

What is the difference between select * from A, B and select * from A cross join B ? They seem to return the same results. Is the second version preferred over the first? Is the first version completely syntactically wrong? ...

Creating a cloud database?

As cloud computing seems to be one of the most popular topics, It got me thinking, And as i dont know much about the topic excuse me for any ignorance in the question. What exactly is a cloud database and how would this service even be created. Would it simply be a MySQL database with a web frontend that would allow users to create thei...

Optimizing use of database queries

Is it faster to do a single database query that finds all the results you need for a page, then do several loops through it with if/else statements to extract what you want to show in each section, or to do several database queries selecting the exact data you require and then just loop through each one separately? For instance: @compl...

Why does InnoDB do a full scan for COUNT(*)?

In a table with 5 millions rows, a SELECT count(*) FROM table would be instant in MyISAM but would take several seconds in InnoDB. Why is this that way? Why haven't they optimise count in InnoDB like MyISAM? Thanks. ...

Unknown database, how to access?

I am examining a Windows application that uses a database of unknown type. The database consists of several files with file extensions, .i, .iz, .b1, .p and .bi. Is there an API that can be used to view the design, tables and contents of this database? The ambition is to migrate the data to a MySQL environment. ...

How To Return All Instances Within ## Mile Radius of a List of Zipcodes

SQL Server 2008 has added some cool new Spacial types and given SQL Developers a lot more powerful ways of manipulating spacial data but it still eludes me how to efficently return, for example, only the locations that are within ## mile radius of a long list of zips (20 to maybe 15 thousand distinct zipcodes). Is there a simple way to ...

Visual Studio 2010 Project on shared folder: fatal error C1033: cannot open program database

I am running Windows 7 inside VMWare on a Mac as I am working on a cross plattform project. I want to keep all my plattform independent files in the same folder - that's why I want to organize everything in a folder on the mac and share it with windows that's running in the VM. When I try to compile the project in the shared folder, I ge...

relational database schema

Can we define a string and a number both as a primary Key in table? ...

Data Structure behind LDAP Database

What kind of Computer Data Structure is being used internally in a LDAP Database? Is it Binary Tree, B+ tree or Trei or something else? ...

document oriented databases

Possible Duplicate: What's the Attraction of Schemaless Database Systems? What are the advantages of document oriented databases over relational databases? Where should i use document oriented databases? ...

Find a value in all databases in a database server

Hi all, I need a stored procedure to search for a string in any database in a database server. For Eg there are 5 databases in a database server and i want to search for string "sooraj" in all tables of all databases in that server. Kindly let me know if this is possible. Thanks Sooraj ...

Is there any way given a column, which table it belongs using SQL Query?

Is there any way given a column, which table it belongs using SQL Query? ...