Top new questions this week:
|
I recently came across an issue where tSQLt tests were taking a long time to run. The procedure under test was doing a 38 table (!) join (with 37 faked tables and a table valued parameter). Only two …
|
I have several identical (near as I can tell) SQL Servers where I’ve recently added sp_WhoIsActive (showing some folks how much I like this tool) but one of them will not let me create the stored …
|
Postgres 13 I am looking for a way to search UTF-8 text that may have variant character representations ( what is the proper term for this? ie 𝐋𝐈𝐅𝐄 vs life ) within postgresql. I am running into …
|
Good afternoon everyone I found just one post here within the last year about this, but it doesn’t help my situation. I have been working with MySQL and trying to improve my knowledge of recursive CTE….
|
I have to premit that i am a programmer, and i am trying to learn a bit about DBA even if i don’t have the same background. I am trying to understand what security provide, and how to use, encryption …
|
using the following sample: CREATE TABLE tbl( x integer, y integer ) INSERT INTO tbl SELECT g AS x FROM generate_series(1, 10) AS g; Which gives: x | y —-+— 1 | 2 | 3 | …
|
I have some data stored in a table in XML format: <AccountTypes xmlns=””> <Id>1003</Id> <Id>2</Id> <Id>3</Id> <Id>1004</Id> &…
|
Greatest hits from previous weeks:
|
I have a table: CREATE TABLE names (id serial, name varchar(20)) I want the “last inserted id” from that table, without using RETURNING id on insert. There seem to be a function CURRVAL(), but I don’…
|
Let’s say I have a Oracle database. I have a username = x, password = y, database = z. Also I know the port = a, SID = b, Hostname = c. So how do I need to connect correctly? I used many options like:…
|
SQL Server is consuming 87.5 % of my server RAM. This recently caused a lot of performance bottlenecks such as slowness. I researched this issue. One common solution I could find on the internet is to …
|
We need to write the SELECT query results to a csv file. How can it be done using T-SQL in SQL Server 2008 r2? I know that it can be done in SSIS, but for some reasons, we don’t have this option. I …
|
This is driving me nuts! I want to rename a column from read-more to read_more in my blog table I tried all this: ALTER TABLE blog RENAME COLUMN read-more to read_more; ALTER TABLE blog CHANGE …
|
I have 2 table in my database. Table #1 ————————————————————————- | name | family | phone | email | gender | phone2 | address | birthdate | ———–…
|
I need to remove a database from a PostgreSQL DB cluster. How can I do it even if there are active connections? I need sort of a -force flag, that will drop all connections and then the DB. How can I …
|
Can you answer these questions?
|
I have an API that is used to query for data about programs and other forms of content. We have a few tables that I need to join on to fullfil an ad-hoc query, and I am running into trouble speeding …
|
When accessing external webservices via HTTPS via the Oracle database you need to add the corresponding certificate to a database wallet to prevent a certificate validation error. When one creates an …
|
Background: I’ve been using Postgres full-text search and it has met my needs quite well. Though there is some unexpected behavior that I cannot seem to wrap my head around. It has to do with the full-…
|