Database Administrators Stack Exchange Community Digest

Top new questions this week:

Could BEGIN/END really be used inside CASE in SQL Server 2005?

The (still online) documentation for MS SQL Server 2005 states that BEGIN...END blocks can be used within CASE when it needs to execute a sequence of statements: The BEGIN and END statements are used ...

sql-server t-sql syntax  
user avatar asked by Dai Score of 5

Querying sys.databases in a peculiar way results in "transport-level error has occurred when receiving results from the server" error

On three different production servers, the following query against sys.databases: USE master; GO SELECT name FROM sys.databases WHERE name NOT IN ('master','tempdb','model','msdb'); Results in this ...

sql-server  
user avatar asked by Joe Obbish Score of 3

MERGE causes unique constraint violation when source contains key multiple times

Given two tables counter and cnt_source defined like this: create temporary table counter (key bigint, count bigint); create unique index counter_key_uniq on counter (key); create temporary table ...

postgresql unique-constraint merge  
user avatar asked by DS-Charlie Score of 3
user avatar answered by Charlieface Score of 2

Stale View Metadata on AlwaysOn Secondary Replica After Table Re-creatio

We encountered an issue with view metadata becoming stale on a readable secondary replica in an AlwaysOn Availability Group. The views on the primary replica worked fine after a fix, but the secondary ...

sql-server availability-groups view metadata  
user avatar asked by adam.g Score of 2
user avatar answered by Charlieface Score of 2

BULK INSERT from a CSV file not working

I am a newcomer to Stack Exchange who is a beginner self-studying SQL. I need help troubleshooting an issue related to bulk inserting data from CSV files into SQL tables. Environment: SQL Express SQL ...

sql-server ssms  
user avatar asked by 0.5stepdown Score of 2
user avatar answered by Sean Gallardy Score of 3

MSSQL Performance gain when clearing out (large size) filestore-table records?

On MSSQL (our DB size is 520g), there is one filestore table that holds tons of files. 65-70% of this 520g is sitting in there. So essentially, it's a 200g database with 320g worth of files in this ...

sql-server query-performance database-size  
user avatar asked by James Johnson Score of 1
user avatar answered by Rohit Gupta Score of -1

Safe process to update production data?

We have multiple webshops with 500.000+ customers, it sometimes occur data becomes faulty due to a bug or a failed import. We currently fix this by executing queries correcting the data directly on ...

mysql  
user avatar asked by O'Niel Score of 1
user avatar answered by Bill Karwin Score of 1

Greatest hits from previous weeks:

List the database privileges using psql

I'm in the middle of a database server migration and I can't figure (after googling and searching here) how can I list the database privileges (or all the privileges across the server) on PostgreSQL ...

postgresql ubuntu permissions psql  
user avatar asked by pedrosanta Score of 315
user avatar answered by DrColossos Score of 236

ODBC Data Source SQL Server Connection - Login Failed For User

I have moved my database from an SQL 2005 to a server with SQL 2008. I am now trying to create an ODBC Data Source. I am using "With SQL Server authentication using a login ID and password ...

sql-server-2008 sql-server-2005 odbc logins  
user avatar asked by jpsnow72 Score of 15

How do I list all schemas in PostgreSQL?

When using PostgreSQL v9.1, how do I list all of the schemas using SQL? I was expecting something along the lines of: SELECT something FROM pg_blah;

postgresql schema postgresql-9.1  
user avatar asked by Stéphane Score of 454
user avatar answered by eppesuig Score of 452

sqldeveloper ORA-12505. TNS: listener does not currently know of SID given in connect descriptor

There are similar questions asked and answered in this network related to the error message given in the question, however this problem is a little different from each. I have installed oracle 12c in ...

oracle ubuntu sqlplus oracle-sql-developer  
user avatar asked by pranphy Score of 6
user avatar answered by Philᵀᴹ Score of 9

Granting access to all tables for a user

I'm new to Postgres and trying to migrate our MySQL databases over. In MySQL I can grant SELECT, UPDATE, INSERT, and DELETE privileges on a low privileged user and enable those grants to apply to all ...

postgresql best-practices postgresql-9.1  
user avatar asked by PlaidFan Score of 217
user avatar answered by András Váczi Score of 234

Why Does the Transaction Log Keep Growing or Run Out of Space?

This one seems to be a common question in most forums and all over the web, it is asked here in many formats that typically sound like this: In SQL Server - What are some reasons the transaction log ...

sql-server transaction-log shrink auto-growth recovery-model  
user avatar asked by Mike Walsh Score of 299
user avatar answered by Mike Walsh Score of 365

List all columns for a specified table

I'm looking for a precise piece of information in a database which I have no knowledge about. The database is on a separate machine, but I can log into it, and launch a psql command line, with ...

postgresql metadata information-schema catalogs  
user avatar asked by Stephane Rolland Score of 580
user avatar answered by bhamby Score of 700

Can you answer this question?

How does GridDB ensure read consistency when a TimeSeries container expands its partition during high-frequency writes?

I'm evaluating GridDB Cloud for a high-throughput IoT workload and encountered behavior that I can’t fully explain using the available documentation. I have a TimeSeries container using default ...

griddb  
user avatar asked by VIK Score of 1
You're receiving this message because you subscribed to the Database Administrators community digest.
Unsubscribe from this community digest       Edit email settings       Leave feedback       Privacy
Stack Overflow

Stack Overflow, 14 Wall Street, 20th Floor, New York, NY 10005

<3