dialog listlengths 4 30 | title stringlengths 15 150 | category stringclasses 14 values | dialog_time stringdate 2016-01-21 01:59:30 2018-07-01 01:34:46 |
|---|---|---|---|
[
{
"message": "I cannot for the life of me get ubuntu to install on my macbook pro. 5,2...I am trying to install via these instructions.<a href=\"https://help.ubuntu.com/community/MacBookPro5-1_5-2/Natty\" rel=\"nofollow noreferrer\">https://help.ubuntu.com/community/MacBookPro5-1_5-2/NattyI have rEFIt working, ... | Missing Operating System when Installing from USB | askubuntu | 2017-06-10T09:21:17.670 |
[
{
"message": "I'm trying to do some troubleshooting and installing dnscrypt(-proxy) on my Laptop. I want to find out which DNS servers effectively are used by my standard Ubuntu installation (w/ NetworkManager and dnsmasq, of course). However I found the configuration of dnsmasq a maze. I couldn't find out whic... | Which upstream nameservers do dnsmasq/NetworkManager use really? | askubuntu | 2017-06-10T12:52:18.010 |
[
{
"message": "I have connected the bluetooth <a href=\"http://www.riitek.com/product/i8x.html\" rel=\"nofollow noreferrer\">keyboard Rii mini i8+ to my Ubuntu 16.04 running on a NUC. I can find the keyboard, connect it, but it simply wont act as keyboard or mouse/trackpad.Tried it on different hardware like Win... | How to get Rii mini BT keyboard to work under 16.04 | askubuntu | 2017-06-10T15:39:31.920 |
[
{
"message": "I am running Ubuntu 17.04 on a Dell desktop computer.I have not been able to update ClamAV/ClamTK virus signatures for some time. The antivirus signatures number is \"23296.\"When I try <code>sudo freshclam</code> I get the following error messages:<pre><code>ERROR: Can't open /var/log/clamav/fres... | Unable to update virus definitions in ClamAV/ClamTK | askubuntu | 2017-06-10T20:15:28.073 |
[
{
"message": "Ubuntu 14.04 LTS, ATI HD4850 graphics card, radeon driver.Chrome has been my browser for years, but for the past few months, YouTube videos and page scrolling have become choppy. By choppy, I mean there are horizontal lines appearing either in the video that I am watching or on the page that I am ... | YouTube video choppy on Chrome, fine on Firefox | askubuntu | 2017-06-11T02:12:30.267 |
[
{
"message": "So, I've been trying to get my wireless connection to work most of today. The only solutions I can find tell me to download various drivers or updates, usually as a first step. Some guides even tell me to wget scripts just for the diagnostics step.This is not possible. I cannot connect via. ethern... | Is there any way to install updates/drivers from USB? | askubuntu | 2017-06-11T14:26:05.150 |
[
{
"message": "I recently bought a notebook with HDD+SSD, Ubuntu came installed on SSD part and I only have access to this. The HDD I can not access.My main concern is, when I want to save any file on the HD I can not find it, I've already use the gparted and could format it, I formated as fat32, ext4 and ntfs b... | HDD+SSD on notebook Ubuntu 16.04 | askubuntu | 2017-06-11T19:01:15.050 |
[
{
"message": "I have a dual boot system. Windows 8.1 and Linux Ubuntu 16.04 on separate drives. In my Windows system, i hit the super key and search for something that i want to find. I couldn't be happier with Windows search especially if i properly enable the indexing capabilities. Now Linux isn't that good i... | Ubuntu / Linux Search - How to list all files on all Drives? | askubuntu | 2017-06-11T22:27:39.527 |
[
{
"message": "Newbie to Linux and am trying to Share a folder on Ubuntu 16.04LTS with a Windows 7 Pro desktop. The Windows Machine sees the Ubuntu machine when I go to Computer> Network, however when I click on the folder I receive the error message \"Windows cannot access \\HALCYONIDEAS\\UNTITLEDFOLDERYou do ... | Windows 7 Access Denied when Accessing Shared folder on Ubuntu Machine | askubuntu | 2017-06-12T01:01:16.683 |
[
{
"message": "Data~5M documents, would love to have ~223M, with the text of ~10-1000 words each. It must be utf8 and support any spoken language. All words in a text are unique and I can also order them or do whatever needed to have better performance. Full text is saved in another location. Data is almost read... | Search 200M documents of text by keyword in text | dba | 2017-02-18T12:57:58.947 |
[
{
"message": "I'm new to Mysql, and i'm reading this in a book: \"A large log buffer allows large transactions to run without a need to write the log to disk before the transactions commit. Thus, if you have big transactions, making the log buffer larger saves disk I/O.\"Ok...Perfect.. so i'm going to issue thi... | Mysql innodb_log_buffer_size change | dba | 2017-02-19T22:29:49.540 |
[
{
"message": "I run <a href=\"https://mongoaud.it\" rel=\"nofollow noreferrer\">mongoaudit on a server. Those are the <code>failed</code> results:<a href=\"https://i.stack.imgur.com/bXSDa.png\" rel=\"nofollow noreferrer\">I don't wish to hide my version number. In my opinion this is <a href=\"https://en.wikiped... | mongoaudit: Security through obscurity and how to limit connections from a specific subnet? | dba | 2017-02-20T14:32:36.760 |
[
{
"message": "I have a mysql (Percona) 5.7 instance with over 1Million tables. When I start the database, it can take more than an hour to start. Errorlog doesn't show anything, but when I trace mysqld_safe, I found out that MySQL is getting a stat on every file in the DB.Any idea why this may happen? Also, ple... | MySQL can take more than an hour to start | dba | 2017-02-20T16:28:03.100 |
[
{
"message": "I'd like to select the most recent row in a MS SQL Server 2008 R2 database based on a couple of factors. I've seen a lot of people want to do the same thing online, and a lot of different proposed solutions, but most seem overcomplicated, and I can't get anything to work properly or do what I wan... | Select most recent row by some other column | dba | 2017-02-20T17:33:38.307 |
[
{
"message": "My project is upgrading from SQL Server 2008 to 2012, but old version consisting table partition. is this feature will work same as in 2012 also ?",
"role": "user"
},
{
"message": "If you're talking about <a href=\"https://msdn.microsoft.com/en-us/library/ms190787.aspx\" rel=\"nofollow... | How to upgrade SQL Server 2008 to 2012 with table partition? | dba | 2017-02-21T11:47:31.270 |
[
{
"message": "The new cardinality estimator (CE) in SQL Server 2016 has an unfortunate regression which hits our deployment hard. The query in question is a run-of-the-mill Hibernate generated update; however the updated table is also part of an indexed view. This is a one-row update that will typically also af... | Ascending keys getting bad plans in SQL 2016 (new CE), replacement for TF 4139 et al.? | dba | 2017-02-21T14:16:32.467 |
[
{
"message": "I have inherited a database the following relationships:<code>Product >--< Option --< OptionValue</code>So, for example, a <code>Desk</code> might have <code>Colour</code>, <code>Width</code>, and <code>Height</code> as Options, with <code>Colour={Oak,Beech,Walnut}</code>, <code>Width={90... | Show all options with many-to-many and many-to-one | dba | 2017-02-21T14:25:27.183 |
[
{
"message": "In new SQL Server environment, I am trying to setup an performance baseline for some of the counters. Let me explain what I am doing.I captured the performance counters through the performance monitor and get the data (in CSV format) for around a month's time and use it to find the average which w... | SQL Server performance baseline benchmark | dba | 2017-02-21T15:31:41.867 |
[
{
"message": "I'm baffled by the fact that this is addressed in the official docs (or at my inability to track it down). From the <a href=\"https://docs.mongodb.com/manual/core/replica-set-arbiter/\" rel=\"nofollow noreferrer\">3.4 docs:<blockquote> Only add an arbiter to sets with even numbers of voting memb... | MongoDB replica set node failure without arbiter | dba | 2017-02-21T18:34:25.387 |
[
{
"message": "I have heard textbook definitions of how to design a star schema regarding what goes in the fact table and what goes in the dimension tables, such as:<blockquote> The fact table should contain core information about an object and dimensions should contain information about the facts</blockquote>(... | Building slowly changing dimension on a Fact/Dimension Star Schema | dba | 2017-02-21T19:43:40.747 |
[
{
"message": "I'm trying to better understand how SQL server does log buffering and flushing in order to better balance costs and performance. I know that unless you use <code>delayed durability</code>, log entries for a transaction will be flushed all the way to disk at commit time. However, what I'm really ... | SQL Server Log Entry Gathering? | dba | 2017-02-21T22:17:40.947 |
[
{
"message": "I didn't realize but it appears you can put switches on your job to run a maintenance plan. Am I correct on that?We have 3 jobs that are running the same maintenance plan but doing different things with it.The first two jobs succeed, and the 3rd job fails. Here are the jobs .I cannot figure out wh... | Maintenance Job Failing | dba | 2017-02-21T22:44:28.533 |
[
{
"message": "SetupI've set up an example on <a href=\"http://rextester.com/ZTCECJ51955\" rel=\"nofollow noreferrer\">rextester and <a href=\"http://dbfiddle.uk/?rdbms=sqlserver_next&fiddle=fa1966bf9efdd5093f56f12cbc5c9886\" rel=\"nofollow noreferrer\">dbfiddle. ScenarioPrice list: Its the products price li... | Updating open orders from a price list within a range of dates | dba | 2017-02-22T00:00:22.707 |
[
{
"message": "I have the following info in my database:<pre><code>+-----------------------+-------------+| USERNAME TRUST | |+-----------------------+-------------+| DeaDTerra | 390 || OgNasty | 322 || Blazed | 303 || monbux ... | Using RANK function, how can I return the rank of one record vs the entire table? | dba | 2017-02-22T03:34:22.200 |
[
{
"message": "We currently have a SQL Server 2008 and SQL Server 2005 participating in one-way transactional replication of a single database.If possible we would like to set this up as a Two-way replication. What would be the preferred method of replication to achieve this? There is a moderately high latency b... | Two-way replication between SQL Server 2005 and SQL Server 2008 | dba | 2017-02-22T07:11:36.500 |
[
{
"message": "Using Always Encrypted we are attempting to encrypt one column of type varchar(50) in a table that contains 5.5 million rows with the deterministic encryption. After a while the wizard returns failure due to the following error:<pre><code>Exception of type 'System.OutOfMemoryException' was thrown.... | Always Encrypted - Out of Memory Exception when attempting to encrypt a column in a table | dba | 2017-02-22T20:50:44.537 |
[
{
"message": "Given this schema:<pre><code>CREATE TABLE #TEST_COALESCE( Id int NOT NULL, DateTest datetime NOT NULL, PRIMARY KEY (Id, DateTest));INSERT INTO #TEST_COALESCE VALUES(1, '20170201'),(1, '20170202'),(1, '20170203'),(2, '20170204'),(2, '20170205'),(2, '20170206');</code></pre>If I use COALESC... | Why COALESCE within a subquery returns NULL? | dba | 2017-02-23T12:31:58.537 |
[
{
"message": "I have a MySQL master server and slave became corrupt because of space issues on the master. Binary logs are potentially corrupt and I don't trust them. The databases are using MyISAM tables. I want to create a new slave, but I can't afford to take the master down or lock the tables for a mysqldum... | How do I create a MySQL slave server of a bunch of MyISAM databases on a master | dba | 2017-02-23T18:03:23.230 |
[
{
"message": "I have a query which produces data similar to the following:<pre><code>a_key | a_timestamp | a_value---------------------------------345223452 | 2016-03-07 | 1029370982 | 2017-01-12 | 1984656834 | 2017-02-03 | 1928459238 | 2014-08-06 | 2298338793 | 2015-07-10 | 2203897932 | 2015-09-12 | ... | Omit max entry from each group in postgres? | dba | 2017-02-24T04:41:24.223 |
[
{
"message": "I have scoured the internet looking for something even close to what I'm wanting to do, and all I can find is how to get around security controls to be able to grant sysadmin to a login. (!!!)Here's the situation; I'm a veteran DBA at a new company that has never had a DBA before, so everyone and... | Method (Policy Based Management, DDL Trigger, whatever) to prevent logins with sysadmin from granting sysadmin to other logins | dba | 2017-02-24T16:01:43.250 |
[
{
"message": "I'm almost certain this has come up before but I couldn't find anything regarding it.My problem is that I've a database and a database server (and every table and column inside) set to latin1/latin1_general_ci.Curiously when I connect with a client (for example HeidiSQL) client specific variables ... | German umlaute represented by questionmarks when latin1 is used | dba | 2017-02-24T16:53:52.293 |
[
{
"message": "Is it possible to open two <code>psql</code> sessions that use the same database connection?My goal is to show that a second user on the same connection can see uncommitted <code>INSERT</code>s, wherease a user on a different connection can't see <code>INSERT</code>s until the first connection run... | Can I have two `psql` sessions use the same database connection? | dba | 2017-02-25T13:14:26.660 |
[
{
"message": "I have 3 tables (<code>devices</code>, <code>shops</code>, <code>device_shops_versions</code>). <code>devices</code> can have many <code>device_shops_versions</code>.<code>device_shops_versions table</code>:<pre><code>+----+---------+-----------+---------+---------------------------+| id | version... | Avoid duplication when using other table in WHERE and JOIN clause in Postgres | dba | 2017-02-26T17:03:27.050 |
[
{
"message": "I am currently Building a table for message where user can send a message with different types of attachment,Sender can:send text per messagesend one location per messagesend one or multiple images per messagesend one or multiple videos per messageCurrently, this is my table design,<pre><code>mess... | Best Way to design a table with different types of attachment | dba | 2017-02-27T03:33:51.747 |
[
{
"message": "I have a table with historical data about cars <code>AutoData</code> with combined clustered key <code>Cas</code> (DateTime) + <code>GCom</code> (Car ID). One record contains various indicators, like fuel level, vehicle state etc.Intervals between individual records for one car in <code>AutoData</... | Using table variable instead of temp table makes query execution slow | dba | 2017-02-27T13:17:36.917 |
[
{
"message": "I have the following query to get the size of tables in all databases.<pre><code>DECLARE @DBName varchar(200)DECLARE @CMD varchar(max)DECLARE @TV TABLE ( name_table varchar(500),ROWSCOUNT int, reserveder varchar(50), datasize varchar(50), indexsize varchar(50), unused varchar(50))declare @tv2 tabl... | Query returns duplicate records | dba | 2017-02-28T08:05:01.183 |
[
{
"message": "I have the following query to get the size of tables in all databases.<pre><code>DECLARE @DBName varchar(200)DECLARE @CMD varchar(max)DECLARE @TV TABLE ( name_table varchar(500),ROWSCOUNT int, reserveder varchar(50), datasize varchar(50), indexsize varchar(50), unused varchar(50))declare @tv2 tabl... | Query returns duplicate records | dba | 2017-02-28T08:05:01.183 |
[
{
"message": "We are currently implementing a new software package which has one part of its system using database replication (but doesn't support AlwaysOn Availability Groups) replicate from another database that does support AOAG's. Currently, they only support replication setup via their installer, which cr... | Pausing AlwaysOn Availability Group replication for failover | dba | 2017-03-01T10:19:41.190 |
[
{
"message": "I realized recently that I was using <code>--master-data</code> to dump a backup from a replication slave when what I really wanted was <code>--dump-slave</code>. After switching to <code>--dump-slave</code>, I see that <code>mysqldump</code> will stop the slave SQL thread during the backup (which... | Why does mysqldump stop the slave SQL thread for the entire backup? | dba | 2017-03-01T16:06:42.980 |
[
{
"message": "I have 2 tables that involve this query.<pre><code>Table : Discussions Table : Comments-------------------- -------------------------------------|id | content | | id | d_id | content | timestamp |-------------------- ---------------------------------... | Sort MySQL select from another table data | dba | 2017-03-02T14:14:46.927 |
[
{
"message": "I have several database servers that use the same basic maintenance task to do daily full backups over night. Intermittently the backup job which normally takes 4 or 5 hours will suddenly take 13 to 15 hours. At first I figured the network was busy or the operations team started their nightly proc... | Database Full Backup Maintenance Task has large delay between databases | dba | 2017-03-02T17:05:12.967 |
[
{
"message": "I am trying to understand a paragraph from my notes, re Users and Groups in Active Directory. The phrase is: <blockquote> Users and Groups Sign in, they do not login.</blockquote>Now, what I (think I) understand is that logins give access to SQL server, Users are given access to specific database... | Difference Between Sign In and Login (Users and Groups) | dba | 2017-03-02T20:46:25.423 |
[
{
"message": "I have a procedure <code>TheNotificationProcedure</code> that makes a cross-database call to msdb.dbo.sp_send_dbmail.It gets invoked (indirectly) from a service broker queue:<pre><code>CREATE QUEUE [Blah].[TheQueue]WITH ACTIVATION (STATUS = ON, PROCEDURE_NAME = [Blah].[TheQueueProcedure], MAX_QUEU... | Can't use msdb.dbo.sp_send_dbmail when in service broker - executes as guest? | dba | 2017-03-02T22:47:54.613 |
[
{
"message": "Requirements and situationWe're currently using a JSONB column to speed up somewhat arbitrary searches in our database and this is working fine so far. When updating the data the requirement is as follows:Any new value will overwrite any existing value. This includes nulls and arrays.Any (nested) ... | PostgreSQL 9.4 deep merge jsonb values | dba | 2017-03-03T13:39:17.810 |
[
{
"message": "I want to make a website which will have approximately 10M+ users. My MySQL database will be huge! Because the users will chat, post, share etc.I will use dreamhost. They can provide me unlimted databases but they told me to keep the database size below 2-3GB. I'm afraid if I use a single database... | Does it make sense to create a new database for every user? (MySQL) | dba | 2017-03-04T07:51:22.837 |
[
{
"message": "I am working with multiple databases which have the same structure and are on the same server. All of them are MySQL databases and I'm using MySQL Workbench (community version!) to connect to them.I need to retrieve data from all (or some) of them and compare the results. sometimes I need to store... | How to create Relationship between multiple databases? | dba | 2017-03-05T12:11:54.050 |
[
{
"message": "Prehistory: I wanted to see how mysql handles in tables with millions of rows. So, I started to insert bunches of rows in one table. After ~80 millions mysql server has gone away and didn't start after. Then I installed mariadb and later removed it. Somehow installed mysql-server again. Lost any p... | Can't start mysqld after crash | dba | 2017-03-06T09:18:43.213 |
[
{
"message": "I'm an accidental DBA and need help determining a course of action regarding transaction log files on several databases. I ran Brent Ozar's sp_blitz to see what areas of concern there might be on an instance of SQL Server 2012 and one of the things I saw was transaction log files that are bigger t... | Transaction Log Files Larger Than Data Files | dba | 2017-03-06T13:28:59.330 |
[
{
"message": "My applications often need an accurate but perhaps imperfect row count. Billion-row tables often get frequent writes, so \"perfect\" is a matter of definition and timing.Microsoft SQL keeps very good metadata, allowing a query such as:<pre><code>SELECT SUM(rows) FROM sys.partitionsWHERE object_id ... | Oracle and MS-SQL-like row counts | dba | 2017-03-06T21:04:46.080 |
[
{
"message": "With two databases A and B on the same SQL Server 2014 instance, I've written a series of scripts trying to do the following (written in very high level pseudo code):User Updates table <code>A.dbo.Main</code><code>A.dbo.Main</code> has a trigger on <code>UPDATE, DELETE, INSERT</code> that calls a ... | Permissions not allowing Update or Select on a trigger executed function | dba | 2017-03-06T22:45:25.047 |
[
{
"message": "I've installed LocalDb server on my PC. I am trying to create a connection to the LocalDB server in Navicat Premium. I am unable to get the correct Host Name/IP Address for the LocalDB server. I noticed by default LocalDB server always creates an instance named MSSQLLocalDB when started. I've se... | Unable to Connect LocalDB Server in Navicat Premium | dba | 2017-03-07T14:31:48.877 |
[
{
"message": "I have added a new windows account <code>[PROD\\apdf]</code> and given it the dbcreator role. The user initiates a restore from an app server. The database restores correctly. Under database properties it shows the prod\\apdf user as the database owner. However, that user is not granted access... | dbcreator role member not able to access database it just restored | dba | 2017-03-07T15:43:14.293 |
[
{
"message": "Problem 1:I have one file with 567 rows and 16,382 columns, most of which are floating point numbers. I have another file with 117,493 rows but only 3 columns. The contents deal with biology and genetics.I have no idea what the numbers mean in the files mean. This is a college project where I have... | Optimal database for large number of columns or rows | dba | 2017-03-08T09:38:00.657 |
[
{
"message": "I noticed that clustering can take a long time and lock the table entirely, even for reads.Index Organized Tables and incremental clustering would be perfect, but sadly they aren't supported by PostgreSQL.Now I realize that it also lock the replicas' tables, so apparently there isn't a way to clus... | Cluster command locking read only queries on replica | dba | 2017-03-08T16:14:28.357 |
[
{
"message": "I have a report that reads from many tables, one of which is 48GB. To help with performance I planned to create a table which stored a subsection of values from this large table. However, whenever I read from this table, disk queue length goes from 0.1-0.5 to 10-100. I've also tried <code>bcp</co... | Read from large table without causing disk queue length issues | dba | 2017-03-08T21:33:17.937 |
[
{
"message": "I am trying to deploy a 8 machine MySQL NDB Cluster with 2 Management Nodes, 2 SQL Nodes and 4 Data Nodes. The base operating system is Ubuntu 16.04 and the MySQL Cluster software version is 7.5.4. Running everything on dedicated servers.I am using private networking and have defined all hosts wit... | MySQL Node not Connecting to Management Nodes in NDB Cluster | dba | 2017-03-09T12:14:16.677 |
[
{
"message": "I'm trying to get a better handle on what locked out a specific user when multiple Oracle databases are involved using database links.Setup:<pre><code>sqlplus kjohnston@db2create user testuser identified by \"Dummypass1\";grant create session to testuser;exit;sqlplus kjohnston@db1create public dat... | Auditing authentication issues in a distributed environment | dba | 2017-03-09T16:25:42.957 |
[
{
"message": "I'm trying to get a fast, simple sql query to update only one row at a time while using join too.I have tried <code>LIMIT</code>, but to no success.Query:<pre><code>UPDATEtable1JOINtable2 ON table2.col=table1.colSET table1.row1='a value'WHEREtable1.row2 LIKE '%something%' LIMIT 1</code></pre>Messa... | UPDATE Only one row (using update and join) | dba | 2017-03-09T18:18:37.010 |
[
{
"message": "I'll start this off by saying I'm very new to availability groups.Looking at information on availability groups, it looks like you can't add system databases to a group. MSDN seems to indicate that we should manually replicate logins, jobs, etc. Are there any consequences of restoring system datab... | Restoring system databases on Availability group replicas | dba | 2017-03-09T21:31:48.543 |
[
{
"message": "I've searched the forums here at dba.se and other places on the Net and haven't found a specific answer. I know this question looks similar to many, but the ones that I've found only address how to shrink a log file, which I already know how to perform.I happen to be in one of those unique positi... | How to shrink over sized logs in Database Mirroring? | dba | 2017-03-09T21:45:23.940 |
[
{
"message": "I'm currently evaluating encrypting data in-transit for an Oracle SE2 12.1 Amazon RDS instance in accordance with HIPAA requirements.Specifically, I'm considering the use of Oracle Native Network Encryption [1,2] (the alternative option being Oracle SSL [3,4]). I'm trying to piece together the doc... | Oracle HIPAA/FIPS-Compliant Encrypted Connections | dba | 2017-03-09T21:51:35.247 |
[
{
"message": "I have already created a database XE on my linux desktop.Please find the below information about the database.<blockquote> ORACLE_SID=XE ORACLE_BASE=/u01/app/oracle ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe</blockquote>I have to create another database,eg: database name is DB1. My quest... | create additional oracle 11g database in linux | dba | 2017-03-10T07:25:19.143 |
[
{
"message": "My database in Production has 28ndf files in different Drives.And on T drive test_audit20.ndf to test_audit23.ndf files only. and file test_audit20 and test_audit21.ndf autogrowth is none.<br> While executing checkdb command on test_audit db I am getting error : <blockquote> Msg 1823, Level 16, S... | DBCC CHECKDB returning space issue error | dba | 2017-03-10T19:02:07.293 |
[
{
"message": "I am using SQL Server Management Studio 2016 on Windows 10. I'm tired of using shift/ctrl+up/down/right/left keys to select the code I want to run. I'm wondering whether there are shortcuts/snippets to select a block of code that separated from other code by blank lines?Here is a code example:<pre... | Shortcuts/Snippets to select a block of code | dba | 2017-03-10T20:27:49.340 |
[
{
"message": "I'm trying to pull information on repeat dispatches and can't seem to come up with a simple solution to pull my data for a report.I have the following table:tblMaster15<pre><code> ID | Equipment---------------- 1 | Sink---------------- 2 | Grill</code></pre>And another table with location in... | How to select * if sets of data in two columns matches >= 4 times | dba | 2017-03-11T18:05:12.287 |
[
{
"message": "I need a script to create a table . The problem is my select for creating the table contains equal values in some rows. I need to use distinct for these columns. The other columns' values can come from any matching row.My current result table has data like this:<pre><code>| CITY | STREET |... | PostgreSQL - Create table as select with distinct on specific columns | dba | 2017-03-12T10:24:42.140 |
[
{
"message": "I cleared my stats and ran my query. The actual execution plan has a total estimated cost of 0.61. I used the <code>total_worker_time</code> column from the <code>dm_exec_query_stats</code> dmv to calculate an average of 20858 microseconds of CPU time:<pre><code>(SUM(query_stats.total_worker_time)... | Actual Query Plan Estimated Cost and dm_exec_query_stats worker time do not gel | dba | 2017-03-13T14:59:54.427 |
[
{
"message": "We are looking to do Column encryption on some of our DBs.So creating the keys and encrypting is all good.My boss is wanting to use Vault by Hashicorp to store the keys.So I am wondering if anyone knows how you go about exporting the keys from SQL 2008 and then store them in Vault?",
"role": "... | SQL 2008 Column level encryption | dba | 2017-03-13T16:26:50.493 |
[
{
"message": "Trying to tidy up my SQL script with SQLCMD mode and I ran into an issue:<pre><code>:setvar db_suffix \"some_suffix\":setvar some_db \"some_db_$(db_suffix)\"print 'some_db: $(some_db)'</code></pre>The output of that is:<pre><code>some_db: some_db_$(db_suffix)</code></pre>However, what I expected w... | Variable inside another variable in SQLCMD mode | dba | 2017-03-13T21:40:08.907 |
[
{
"message": "I am trying to write a script that will combine specific survey results based on the demographs used in the survey. I have been able to write a script that adds demographs together to create a new demograph e.g. M18+ and F18+ = A18+ which works perfectly however when trying to create a script that... | Insert Into with Select works in once instance, but not the other. Subquery error or incorrect data | dba | 2017-03-14T00:53:06.697 |
[
{
"message": "I have installed MySQL Workbench on my Mac. I am trying to connect the MySQL. I am not able to connect.I have attached the screenshot.I am getting Access denied for user 'root'<a href=\"https://i.stack.imgur.com/SNPmp.png\" rel=\"nofollow noreferrer\">",
"role": "user"
},
{
"message": ... | Unable to create connection on MySQL Workbench Edition in Mac? | dba | 2017-03-14T17:42:37.840 |
[
{
"message": "As we are building a multi-tenant app, we will be using one DB only approach, and having a column with customer_id to isolate accounts data.The question is, is it possible in postgres to shard data based on a range of column values? (ex: customer_id > n & < n+ 100 )thus not having all custo... | Sharding based on a range of ids? | dba | 2017-03-15T07:57:44.807 |
[
{
"message": "I have a field with an address in it (ex. <code>68 TIDAL BREEZE DR</code>) and this regular expression gets everything before the last sequence (ex. <code>68 TIDAL BREEZE</code>):<pre><code>substring (address from '(.*) ')</code></pre>My question is, how do I modify this expression to get everythi... | How to Get the Second Sequence of Characters using Regular Expressions | dba | 2017-03-15T12:32:38.507 |
[
{
"message": "I have a question in regards to Enterprise Edition to Standard Edition Upgrade. I need to move a SQL Cluster based on couple of SQL Evaluation Enterprise Edition to a licensed Standard Edition. How do I use the new license key?OS: Windows Server 2012 Std EditionSQL Server: SQL Server 2012",
"r... | Make Edition Upgrade in a SQL cluster scenario | dba | 2017-03-15T13:12:35.130 |
[
{
"message": "I'm working on a database server hardening project for a client of mine. I'm getting into ownership issues when it comes to the following:<blockquote> .mdf & .ldf<br> executables<br> HKEY--> tree from Microsoft SQL Server on down </blockquote>So my question is.....who should own the above... | Ownership of SQL Server Files, Register Entries & Executables | dba | 2017-03-15T16:21:56.457 |
[
{
"message": "I'm using Postgres 9.3, and I need to prevent inserts into a table based on a count of specific rows already in the table. Here's the table:<pre><code> Table \"public.team_joins\" Column | Type | Modifiers... | How to perform conditional insert based on row count? | dba | 2017-03-15T17:58:35.453 |
[
{
"message": "We use a SQL Server 2016 Availability Group (AG) on a Windows Server 2012 multi-subnet failover cluster for HA/DR. There are two nodes in our New York datacenter (10.7.x.x subnet) and one node in our Colorado datacenter (10.8.x.x subnet). The Colorado server is primarily for Disaster Recovery or e... | Availability Groups using Multi-Subnet Clustering: Preferred Owners for Roles and Possible Owners for AG Listener IPs | dba | 2017-03-15T20:01:04.613 |
[
{
"message": "I have a SQL Server CE database in which I have column that takes values of json strings. These json strings are above 9kb as a result of which I am unable to use <code>varchar</code> or <code>char</code>. I guess I could tackle this through the usage of <code>ntext</code>. But in SQL Server, this... | Storing a json string that is 10 kb in size in a SQL Server CE cell | dba | 2017-03-16T05:05:37.607 |
[
{
"message": "In PostgreSQL 9.3.10 (Ubuntu 14.04 OS), I have a table called <code>groupseen</code> whose size is as follows:<pre><code> Table | Size | External Size ----------------------------------+---------+--------------- links_groupseen | 394 MB | 362 MB</cod... | External size of table still not released (as disk space) after issuing truncate command | dba | 2017-03-16T06:05:22.347 |
[
{
"message": "In PostgreSQL 9.3.10 (Ubuntu 14.04 OS), I have a table called <code>groupseen</code> whose size is as follows:<pre><code> Table | Size | External Size ----------------------------------+---------+--------------- links_groupseen | 394 MB | 362 MB</cod... | External size of table still not released (as disk space) after issuing truncate command | dba | 2017-03-16T06:05:22.347 |
[
{
"message": "I have a month table <code>tbl_month</code> having only one column <code>cal_dates</code> which is list of dates for a month. And another table <code>tbl_employee</code> is having <code>employee_code</code> and <code>attendance_date</code> and it will have entry of employee code and the particular... | Compare two tables and find dates present in one and missing in another | dba | 2017-03-16T12:11:42.513 |
[
{
"message": "I am trying to flatten an EAV style table. But I need to add a couple of columns from other tables. I read online that doing nested selects might be a good approach, though when I am getting an error on the last 2 joins (m6.meta_value and m7.meta_value) \"Multi-part identifier could not be bound\"... | Error on Inner Join from Nested Select Statements | dba | 2017-03-16T19:10:16.760 |
[
{
"message": "Someone told me that running queries on a readable secondary in an AG can slow down (or even block) the primary (no matter if it's in sync or async mode).I do not understand how this is possible. I'll try to explain why I think this is not possible.Sync mode:<br/>Log records are sent to the second... | Can running a query on a readable secondary slow down (block) the primary in AG | dba | 2017-03-17T09:59:15.790 |
[
{
"message": "I have inherited some SQL Server databases. There is one table (I'll call \"G\"), with about 86.7 million rows, and 41 columns wide, from a source database (I'll call \"Q\") on SQL Server 2014 Standard that gets ETL'd over to a target database (I'll call \"P\") with the same table name on SQL Serv... | Detect if any values in NVARCHAR columns are actually unicode | dba | 2017-03-17T19:58:44.517 |
[
{
"message": "Is it possible to set the location of temp file creation for a Postgresql backend (ver 9.3.10)?Here's my scenario: my Postgresql DB resides in a dedicated VM with Ubuntu 14.04 OS. My VM comes with 200GB of temporary high-performance SSD storage <a href=\"https://blogs.msdn.microsoft.com/mast/2013/... | Setting location of temp files for Postgresql backend (9.3.10) | dba | 2017-03-19T08:49:18.970 |
[
{
"message": "I'm experiencing a strange variation of filter performance depending on the value in <code>WHERE</code> condition with this query:<pre><code>SELECT MIN(revenue) AS min_revenue, MAX(revenue) AS max_revenue FROM v_premises_filter WHERE area IS NOT NULL AND v_premises_filter.scat_group_c... | PostgreSQL filter/aggregate performance fluctuates depending on condition value | dba | 2017-03-20T13:34:12.707 |
[
{
"message": "I have a MySQL 5.1 server that is struggling. We have too many rows in some of the tables and we do not have enough RAM - currently only 32 GB RAM. I have RAM begin delivered tomorrow, but I cannot install until Sunday. Between then and now (without deleting rows) I am wanting to understand if ... | MySQL Server Overloaded | dba | 2017-03-20T16:25:35.263 |
[
{
"message": "Is there now, or possibly in the works a way to tell SQL Server to stay inside one NUMA node, either server wide or at the query level? Basically the same functionality as MAXDOP, but MAXNUMA?Right now, unless I am totally missing it, when a query goes parallel it can use all of the processors i... | MAX NUMA/ "Affinity" in SQL Server | dba | 2017-03-20T17:39:08.853 |
[
{
"message": "We have clustered servers, each of which has 32 CPU cores and 512 GB memory. The cluster is home to 7 instances of SQL Server 2012 Standard Edition.With Standard Edition allowing a maximum of 64 GB assigned to any one instance, I was wondering if we should be changing the NUMA setting to maximiz... | NUMA configuration | dba | 2017-03-21T03:19:41.480 |
[
{
"message": "I have some flat files with the following columns; 3 integers, 3 reals, and 1 varchar(20). For querying I need an index that contains both 1 of the integer columns and the varchar column. Each file is around 1.8GB in size with around 38 million rows. Currently I am using a HSQL(Standalone) datab... | Will Derby, H2, or SQLite give faster load time and/or smaller file size than HSQL? | dba | 2017-03-21T12:35:47.687 |
[
{
"message": "I am creating a MS Access <code>*.accdb</code> database with multiple tables and specific relationships.This database will be used for a one time data transport to another system, containing order of a few million entries. A test with 2 million dummy entries already reaches about 1.8GB file size. ... | Bypass MS Access 2GB file size limitation | dba | 2017-03-21T12:36:11.567 |
[
{
"message": "I have 36 Microsoft SQL Server VM's, each with a specific database ending in _Sec as the DB name. There are 2 tables in this database that I need to get data from in a single query: <code>tblConnGroups</code> and <code>tblConnGroupsDet</code>.<code>tblConnGroups</code> has 3 columns that I need t... | Single query to get data from multiple tables in one database | dba | 2017-03-21T14:28:11.397 |
[
{
"message": "I'm querying through 3 joined tables and I'm using CTEs and flattering (converting jsonb to a tabbular form) one of the table's jsonb column then querying through that dynamically made table so I can calculate the individual data in that jsonb column.Using this code:<pre><code>WITH students_query ... | Postgresql: How to optimize performance of a query which uses CTEs and has a jsonb column? | dba | 2017-03-22T12:02:36.707 |
[
{
"message": "Last week we had an incident with our master PostgreSQL server instance which got totally thrashed so, we had to switch to our slave as our one and only DB instance. After the initial chaos was controlled, we tried to create a new slave replica from scratch, according to instructions left by our D... | PostgreSQL replication not working after base backup | dba | 2017-03-22T12:30:28.137 |
[
{
"message": "I have some auto-generated T-SQL, which is probably valid, but I don't really understand.<pre><code>ALTER TABLE [dbo].[MyTable]WITH CHECKCHECK CONSTRAINT [My_FORIEGN_KEY];</code></pre>I know what a foreign key constraint is, but what's the <code>CHECK CHECK</code>?",
"role": "user"
},
{
... | What is a WITH CHECK CHECK CONSTRAINT? | dba | 2017-03-22T12:35:32.973 |
[
{
"message": "My server admin asked me to grant a user SA privileges for the purpose of upgrading our vCenter environment from 5.5 to 6.x and I refused. So I found a <a href=\"https://pubs.vmware.com/vsphere-50/index.jsp#com.vmware.vsphere.install.doc_50/GUID-56DFA839-2148-475B-8D6D-1064F7C3073C.html#GUID-56DFA... | Can I not add VIEW SERVER STATE to a role? | dba | 2017-03-22T12:40:01.113 |
[
{
"message": "I have a MyISAM table with roughly 20M rows for which inserting 1000 rows takes about 40 seconds on the production server (Ubuntu 12.04, MySQL 5.6.35). On the test machine (Windows 8.1, MySQL 5.6.22), the same insert takes less than 1 second which seems a more reasonable timing for me. On the prod... | Which MySQL server parameters should be adjusted to improve INSERT performance for a large MyISAM table? | dba | 2017-03-22T16:54:14.030 |
[
{
"message": "One of my developers is trying to perform insert into a table by selecting from a table.Below is the query that was run. The query takes extremely long time for execution (4hrs odd).Number of records on the table where it is getting imported is 1.2 million.Database - Oracle 12c on Linux with archi... | Insert query optimisation - Oracle | dba | 2017-03-22T17:18:21.660 |
[
{
"message": "I know there are plenty of posts here regarding SQL Server and SSL encrypted connections, however I didn't find any that touched on this particular subject. In <a href=\"https://technet.microsoft.com/en-us/library/ms189067(v=sql.105).aspx\" rel=\"nofollow noreferrer\">this article, it mentions tha... | SQL Server SSL Connection - Performance | dba | 2017-03-23T19:07:41.397 |
[
{
"message": "I have a two databases <code>Source</code> and <code>Target</code> hosted in the same SQL Server 2008 R2 instance. I have a Login which is mapped to Users in both databases. Each mapped User has a Role in its respective database which grants access to all objects in that database.I have a cross-da... | cross database trigger: server principal is not able to access the database under the current security context | dba | 2017-03-24T06:12:18.163 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.