1
vote
1answer
243 views

Views missing on MySQL database

We have a MySQL database that was restarted a few hours ago When it restarted, the views were missing. The tables all seem intact, and a check on the mysql tables seems all good. Any ideas what ...
0
votes
0answers
30 views

Duplicate Customer Records for SQL Query from ODBC with Joins and Group Bys [duplicate]

Possible Duplicate: SQL Query with ODBC, Joins and Group Bys I am getting duplicate customer records with the query below. The main purpose of the query is to pull a list of customers into an ...
2
votes
1answer
179 views

Need some help with this query get all status and their associated comments of me and all my friends

I've several days dealing with this query but can't get it to works as I want. This post is related to this one Several values from different tables in which I tough found the solution but I was ...
3
votes
1answer
162 views

Architectural Question about Data analytics

I understand that in many OLTP architectures there is some ELT stuff which creates a OLAP Data warehouse model and then you can run data analytics on this. However, this can take some time to ...
3
votes
2answers
2k views

Character Set Database Migration

This is a follow-up question to a previous thread I had posted. We're in the process of migrating to a new character set. Now, I am a programmer and we have DBA's who will be performing the work but I'...
2
votes
1answer
201 views

Cassandra upgrade/repair issues in migration

I wanted to migrate part of the column families in a cluster to a new cluster. I made a snapshot of the source cluster and copied the data, made a new cluster with the same name, same number of nodes ...
1
vote
3answers
2k views

Where can I get this nice phpMyadmin features for mongodb

In phpmyadmin Say I browse a table, or do anything. I will be told the actual sql command that I should run to execute the query. Say I want to do a query and then I want to do something else ...
2
votes
2answers
4k views

How to display query result in rockmongo by using execute method

I executed a command in mongo.exe > db.tablebusiness.find({"_id": "the-simmons-paradise__41.85_-87.88"}); I got results: Now I try similar command in rockmongo. If I execute db.tablebusiness....
1
vote
2answers
114 views

how to change drive for Partitioned tables

I have a large table should have been partitioned in different derives but all of them in one drive (D:\sql\import2006.ndf), (D:\sql\import2007.ndf).how can i move them in to their own drives like ...
5
votes
2answers
321 views

SQL Server: Look for column headers

I'm reviewing a database server, the problem is that there are about 40 databases with each hundreds of tables. I'm looking for tables with a column name containing a specific word. Is there a way I ...
2
votes
1answer
110 views

What are practical hurdles in making protein interaction database?

Following are some protein interaction databases: http://string-db.org/ http://dip.doe-mbi.ucla.edu/dip/Main.cgi As a newbie what are the practical aspects of database that I must understand before ...
1
vote
1answer
1k views

Create unique numeric token on PostgreSQL

I have a database where I want to generate unique tokens of six numeric characters. These tokens should be generated each time an invoice number is inserted in the invoice_no column. This would mean ...
2
votes
2answers
186 views

Beginner problems administering users on mysql

Very new MySQL user here. Two questions for the community. I seem to have created an account that I can't delete/drop. I can't seem to get MySQL to actually require newly created accounts to require ...
4
votes
4answers
6k views

Over use of Oracle With Clause?

I'm writing many reporting queries for my current employer utilizing Oracle's With clause to allow myself to create simple steps, each of which is a data oriented transformation, that build upon each ...
5
votes
2answers
876 views

Partition Function vs. Clustered Index

We have a table that is clustered on identity/datetime2. It is partitioned on the same datetime2. Are there any reasons to cluster on datetime2/identity instead? I understand the reasoning behind ...
6
votes
4answers
6k views

T-SQL command to log in as a different user?

Is there a T-sql command, like the Oracle "Connect" which lets me change the user that I am logged in as?
1
vote
3answers
25k views

How To Remove Leading Characters in SQL

I have a table in SQL 2012 which we can call 'Table' for instance. It has items like this in it, Column _one _two three_blah four_blah I would like to be able to do this, select * from Table ...
2
votes
2answers
1k views

Why restoring a large sql file via SSH seems to quit partially through the process

I have a large (~5GB) .sql file I am attempting to restore via SSH, it seems to quit in the middle of the restore process. When I come back hours later after issuing the command (the file has 7 ...
45
votes
1answer
5k views

Commonly Used Acronyms by Database Administrators

What are the most commonly used acronyms among database administrators and what are their correlated meanings? This is for the community and those searching for meanings of commonly used terms and ...
3
votes
3answers
517 views

Is this database fine for calculation?

I am doing an application called as Invoice Application.For that I have my database is like this. Now my problem comes when I am taking the tax part in my database.As I have made tax as an option ...
3
votes
1answer
3k views

DB2: Is it good to create the index table space to use 32 KB data page

I found our DB2 server configs all the index into one table space. And it then defines the table space to use 32kb data page. Is this good? How to judge it? Any advice is welcome.
2
votes
1answer
587 views

DB2: Is it good to create the LONG table space to use 32 KB data page

Our DB2 database(V9.7) has only defined one table space to store all the big object like xml. And xml size could be different. Some are about 2kb average. And some are 7kb average. So does it make ...
7
votes
2answers
160 views

Can I get the union of the a Postgres fulltext index?

I have a fulltext index on a table. Is it possible to retrieve the set of terms used in the index (gist or gin)? With weights if possible? To clarify: If I have the following table: create table "...
4
votes
2answers
1k views

mongoDB rs.initiate hangs

I am having trouble setting up replication on a new mongoDB installation. Everything works fine when I run without replication but when I run mongod with the --replSet option, and run rs.initiate(), ...
2
votes
0answers
282 views

How to TRIM and CONCAT at the same time [closed]

I have a query am working on where I want to Trim a leading character and the concat other three characters my query is as follows SELECT CONCAT ('255', TRIM(LEADING '0' FROM `mobile`) FROM ...
1
vote
1answer
651 views

PostgreSQL hot standby promotion, multiple hot standbys

I'm trying to work out failover and disaster recovery procedures for a cluster of three servers. Streaming replication is being used with a high wal_keep_segments, no log shipping is happening. I need ...
12
votes
2answers
1k views

How can I generate a random bytea

I would like to be able to generate random bytea fields of arbitrary length (<1Gb) for populating test data. What is the best way of doing this?
3
votes
1answer
10k views

how to fetch different data on compare rows of two tables

I have two tables in my database, one is user_app table in which user info are stored, table are as: +--------------+--------------+------+-----+-------------------+-----------------------------+ | ...
3
votes
1answer
3k views

Optimizing MySQL for Read-Only?

We have 14 GB worth of CSV's which total 138 million rows. I imported this into a MySQL table first with InnoDB, and then tried again with MyISAM. In both cases, a simple SELECT on primary key (...
3
votes
1answer
442 views

Help on designing SSAS Dim and Fact table

I am having a problem designing a Dim and Fact Table for the following problem. I have a Pivot Grid with data as below : USER | RELATED USER | RELATIONSHIP | PHONE NUMBER ---------------------------...
4
votes
3answers
432 views

How does the QUEUE_DELAY option for Server Audits work

I am working through how SQL Server Audits work and would like some clarity on how the QUEUE_DELAY options works. BOL defines the options as: Determines the time, in milliseconds, that can ...
0
votes
0answers
133 views

Being careful about additional records being added in a duplicate record merge?

We have a multi-user MS-Access 2003 database. Connecting to it using SQuirrel SQL, and the JDBC/ODBC bridge, I've managed to eek transactions of some sort out of JET by turning off autocommit. I've ...
8
votes
1answer
10k views

Mongo cannot find my collection

My mongodb server has a database named villageContents It has a collection named tablebusiness If I run mongo I saw MongoDB shell version: 2.0.7 connecting to: test > I wonder what "test" is. ...
0
votes
2answers
3k views

java.sql.SQLException: Login failed for user 'sa'

I am having trouble connecting to my Microsoft SQL Server database through a jTDS connection: Connection conn = DriverManager.getConnection("jdbc:jtds:sqlserver://localhost:1433 /MnA;instance=...
2
votes
2answers
3k views

java.sql.SQLException: Login failed for user 'sa'

I am having trouble connecting to my SQL Server database through a jtds connection: Connection conn = DriverManager.getConnection("jdbc:jtds:sqlserver://localhost:1433/MnA;instance=SQLEXPRESS", "sa","...
2
votes
3answers
4k views

How do I calculate COUNT(*) for a range without needing to use multiple queries in mysql

I am using MySQL and I need help using COUNT(*) for a range of values within a table. I have a table named PERSON (In the live system I expect several hundred thousand records or more). Name ...
2
votes
1answer
137 views

Several values from different tables

I'm totally lost here and not know how to get this to work and hope any can help me here. I have several tables: default_users, default_profiles, default_status, default_comment and latest ...
3
votes
2answers
2k views

FORALL on Nested Collections

Suppose I have the following two tables in my Oracle database: create table a (num number); create table b (val varchar2(30); and in my PL/SQL program I have declared a nested collection as follows:...
5
votes
1answer
4k views

Trouble Creating AG Listener: The WSFC Cluster could not bring the Network Name resource

We are trying to create an AG Listener and it errors out on us: It does however seem to create both the DNS entries and the virtual computer object in AD. However, because of this error message SQL ...
1
vote
1answer
4k views

Oracle 10g Listener problem

In Oracle 10g I have a listener problem, Here is tnsnames.ora : MYTNS = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (HOST = testiold) (PORT = 1521) ...
4
votes
1answer
757 views

Issues with Indexed Views in SQL Server 2008r2 on a table with persisted columns and with low DML activity

I am issues with using indexed views. I have a product catalog and a stored proc reads the data in the rows according to various filters on the data. At the same time, the data needs to remain in XML ...
1
vote
1answer
1k views

“Mysql has gone away” heavy multiple insert

I am stuck because Mysql server will go away after executing this part of code this function will update the database with the new RSS feeds which are stored in ToUpdate but Mysql stops working. Every ...
7
votes
3answers
2k views

Performance of Inline-TVF vs. Views

I have a database where i am using inline TVFs (table value functions) instead of views. For example, I might have two tables called [car model] and [car manufacturer] that I'm joining together ...
1
vote
2answers
869 views

User defined function performance disadvantages

I have a database with a lot of UDFs that are called by a long running process involving lots of data manipulation and calculations. My thinking in using UDFs is to separate out logical units of ...
16
votes
3answers
825 views

Setting up a central CLR stored procedure / function respository library for internal stored procs in other databases to use?

I would like to use code that I developed in C# CLR to be used in all of the databases on the system so that I don't have to set each to trustworthy and turn CLR on and keep a bunch of the same code ...
1
vote
1answer
440 views

Which RDBMS best fits my need? [closed]

I realise this may be come a subjective mess, but I'm hoping for some objective information on the subject. I also don't want to go shopping, I just want to know 'what to shop for'. I'm very new to ...
2
votes
2answers
1k views

Error on Oracle calling external procedures

I have a C library which should be called from a pl/sql function so I make a .so library and after that I create a pl/sql function to call it. the C source(libcprog.c) is like this: int exec_hmmftg (...
5
votes
2answers
5k views

Find out what setting were used for a given stored procedure

As a follow-up to my previous question: is there a way to need to find out what the ANSI_NULLS and ANSI_PADDING etc. settings where when a given procedure was created in my database ? It seems my ...
2
votes
1answer
810 views

SQL Server 2005: Full-text search on a multi-lingual table

I have an articles table as follows. +-----------+--------------+---------+ | uid | int | PRIMARY | | articleId | int | UNIQUE | | lang | varchar(2) | UNIQUE | | ...
8
votes
1answer
7k views

Starting PostgreSQL server after a HDD crash results in FAILED STATE

I am using Fedora 15 with PostgreSQL 9.1.4. Fedora crashed recently after which: An attempt to start the PostgreSQL server : service postgresql-9.1 start gives Starting postgresql-9.1 (via ...

15 30 50 per page