Quantcast
Channel: Active questions tagged debugging - Database Administrators Stack Exchange
Browsing all 45 articles
Browse latest View live

SQL Server Debugger Permissions without Granting sysadmin to Devs

BOL documentation says sysadmin permission is required to run debugger. I'm 90% certain there is no workaround to this requirement, but thought I would ask just in case someone found a way to grant...

View Article



PostgreSQL: Log statements which do sequential scans

I use this snippet to detect missing indexes:https://stackoverflow.com/a/12818168/633961Example:SELECT relname AS TableName, to_char(seq_scan, '999,999,999,999') AS TotalSeqScan, to_char(idx_scan,...

View Article

mariadb (mysql) innodb not optimizing SELECT for partitions?

I have a table partitioned by on column "level" -- I have logs where level 7 is the verbose info, which is like 20x as many entries as all the other levels.When purging old logs in level 7, it was...

View Article

Image may be NSFW.
Clik here to view.

Object Reference Not Set ... Debugging Stored Procedure in Visual Studio

I'm working on updating a stored procedure that is called to update a user. This stored procedure needs to also create a description of what was updated for auditing purposes. However when debugging in...

View Article

How do I determine why a MongoDB document is failing validation?

How do I determine why a MongoDB document insert is failing validation? All I get back is a writeError that says "Document failed validation", which isn't very helpful.(This happens often, and I'd like...

View Article


Mysterious postgres process pegging CPU at 100%; no running queries

I have a recurring issue where a postgres process is pegging my cpu at > 100%. It's a strange one, you can see below the command is ./Ac2p20853 (surrounded by asterisks, added by me).Running SELECT...

View Article

Is it possible in Oracle to trace SQL statements that result in errors?

We have Oracle 11g in production. Application system is still under active development. It will be very handy to get SQL statements which cause any error.Does Oracle provide a standard function to...

View Article

SQL Server: Failed to start debugger - Data is Null

I'm a developer working on a web application using an instance of SQL Server 2014. I use Visual Studio 2010 sp1 for development. For a task I'm currently working on, I'd like to use the SQL Server...

View Article


SQL Server Management Studio - Debugger buttons greyed

I have for mission to enable Transact SQL from a remote computer. My database is on a server and i'm trying to use the debug from a computer on the same network. My firewalls are all open on both side....

View Article


How to debug INSERT statements

I have issues importing "not-so-small" dumps to MariaDB 10.4.6 in CentOS, but the error log and stderr is empty. I dumped many databases with mysqldump sized around 50MB / 500.000 rows each, and tried...

View Article

Identify mysqldump activity in MySQL log file?

I have a database that is being regularly backed up by mysqldump by... something. It's not a script that I wrote, not sure whose it is. I'm trying to find out more about these dumps, such as what...

View Article

Finding the cause of a stuck "Sending Data" query in MySQL

I'm running MySQL on a 1gb DigitalOcean droplet, and I have a number of scheduled tasks through the Laravel framework that run. One task in particular (seemingly) randomly causes MySQL to sit at 100%...

View Article

Query stuck in mattermost postgresql communication

Ubuntu 18.04PostgreSQL 10.10Mattermost 5.15On mattermost startup process stay forever on {"level":"info","ts":1570609055.2422519,"caller":"sqlstore/supplier.go:223","msg":"Pinging SQL master...

View Article


How to profile the PostgreSQL query planner diagnose what is causing it to...

I'm fighting with a specific "generated" query (the SQL is generated from a proprietary system, and I won't be able to share it or the execution plan here), and running into simply massive memory usage...

View Article

How to get the name of a variable instead of its value in plpgsql?

I write a lot of debugging code in plpgsql along the lines:RAISE NOTICE 'var1 = %', var1;(there can be more than one variable to print out). Is it possible to avoid having to repeat the variable var1...

View Article


Investigating an Oracle 12c outage after the fact, while limited to SQL*Plus

Warning up front: unfortunately I'm limited to using SQL*Plus on remote site, with no other tools available. This is Oracle 12c (12.2.0.1.0) Standard Edition running on Windows Server 2012R2. Over the...

View Article

Image may be NSFW.
Clik here to view.

A workaround for restoring HierarchyId in SQL server 2014

After installing VS 2015 CTP 4, HierarchyID stopped working in SQL Server 2014. This is the bug listed here.I am looking for a workaround.To that end, I have tried reinstalling everything associated...

View Article


Image may be NSFW.
Clik here to view.

How to make SQL Server Agent job history less verbose?

So, I've created a SQL Server Agent job, according to the answer to my prev question:running nightly (at 2:11) according to the schedule:There are 9 .bak files in 3 subdirectory of d:\backup\ source...

View Article

Image may be NSFW.
Clik here to view.

Is it ok for MySQL to always use 18-25% of Memory (I have 2 GB Ram)?

I have MySQL 8 in my Server with Ram of 2GB. And MySQL is always using 18-25% of Ram even when everything is off. Is it normal? If not then plz let me know how to debug it.

View Article

Which tool is best for MySQL Profiling?

I am using Neor Profiler to inspect auto-generated queries for MySQL server. This tool is good but not that flexible. Often it freezes when my application hits with more queries. So I am looking for an...

View Article
Browsing all 45 articles
Browse latest View live




Latest Images