Questions tagged [database-management]

109 questions
97
votes
13 answers

Listing information about all database files in SQL Server

Is it possible to list information about the files (MDF/LDF) of all databases on an SQL Server? I'd like to get a list showing which database is using what files on the local disk. What I tried: exec sp_databases all databases select * from…
M4N
  • 90,223
  • 44
  • 210
  • 255
23
votes
6 answers

Visual Studio vs. SQL Server Management Studio - Your Pick

Just to preface: I work in a small company that does ASP.NET development and uses SQL Server 2005 for all of our database needs. I was curious as to what were the pros and cons of using Visual Studio or SQL Server Management Studio for our…
TheTXI
  • 36,035
  • 10
  • 82
  • 110
21
votes
12 answers

Should we have separate database instance for each developer?

What is the best way for developing a database based application? We can have two approaches. One common database for all the developers. Separate database for all the developers. What are the pros and cons of each? And which one is better…
Amitabh
  • 51,891
  • 40
  • 102
  • 154
19
votes
4 answers

How can I list all tables in a database with Squirrel SQL?

I use Squirrel SQL to connect to a JavaDB/Derby database on my desktop. I can run SQL queries. But how can I list all tables in the database? And preferably all column and column types.
14
votes
2 answers

Single Table Inheritance (Database Inheritance design options) pros and cons and in which case it used?

Today, I studied about about 2 database design inheritance approaches: Single Table Inheritance Class Table Inheritance In my student opinion, Single Table Inheritance makes a database smaller vs other approaches because it uses only 1 table. But…
Ben
  • 23,101
  • 33
  • 104
  • 161
10
votes
5 answers

Code & data tracking / deployment

For a long time now, we've held our data within the project's repository. We just held everything under data/sql, and each table had its own create_tablename.sql and data_tablename.sql files. We have now just deployed our 2nd project onto Scalr and…
10
votes
5 answers

Map existing Database table for Laravel

I am looking for a way to map existing tables in a project with the Eloquent ORM and use them in code. I use a MySQL database and plan to migrate to MSSQL. Any way points are appreciated.
Sangoku
  • 1,560
  • 2
  • 19
  • 47
10
votes
3 answers

MySQL Database Connection Management In PDO

I'm very new to PHP/MySQL and I'm learning things as I go. One of the newer things I've learned is that there is a maximum number of connections that can be made to a database for a given username. When I first started building my website on…
user1562781
  • 369
  • 1
  • 9
  • 20
8
votes
2 answers

Insert BLOB test string bigger than 2000 or 4000 bytes

I have a table in oracle with a BLOB column, that can store XMLs and as well XMLs zipped. These are requirements from the customer and can't be changed. The tables will be created and I have to read and work with some information inside the BLOBs.…
Weslor
  • 21,424
  • 2
  • 17
  • 31
8
votes
2 answers

Spring cannot propagate transaction to ForkJoin's RecursiveAction

I am trying to implement a multi-threaded solution so I can parallelize my business logic that includes reading and writing to a database. Technology stack: Spring 4.0.2, Hibernate 4.3.8 Here is some code to discuss…
nyxz
  • 5,910
  • 8
  • 44
  • 62
7
votes
3 answers

Semantics of the Boolean and comparison operators in the context of three-valued-logic

Professor ask me this question: What is the semantics of the Boolean and comparison operators in the context of three-valued-logic? I'm not sure what he meant by that. What is comparison operator? Is that the same as relational operator? Semantics?…
DB Student
  • 71
  • 2
5
votes
2 answers

How to modify the duplicate form in the database manager?

I want to add some other field to this form that can be accessed from the Database Manager in Odoo The data is sent to this controller: @http.route('/web/database/duplicate', type='http', auth="none", methods=['POST'], csrf=False) def…
ChesuCR
  • 8,522
  • 4
  • 37
  • 89
5
votes
2 answers

Phpmyadmin vs Jetbrains Datagrip for database management

I have been working with Phpmyadmin for quite some time and recently i came across Jetbrains Phpstorm and Intellij which i both really liked. Now i found the database environment Datagrip. I wanted to know objectively: what are the advantages of…
TheDoctor
  • 1,708
  • 4
  • 17
  • 35
5
votes
2 answers

How to Handle Database Connections in Qt?

Here my problem; in such a case it complains about duplicate connections with same connection name: Test::Test(QString connectionName) { db=QSqlDatabase::addDatabase("QMYSQL",connectionName); } int main(int argc, char *argv[]) { QString…
metdos
  • 8,991
  • 13
  • 62
  • 101
3
votes
5 answers

What is "SQLiteDatabase created and never closed" error?

I have closed the database in my adapter class, so whay is this error showingup on logcat but my application is not forcr closing but only error is showing on log cat..where i shuold have to close the database for ignoring this error...? my errors…
shyam
  • 1,218
  • 4
  • 23
  • 49
1
2 3 4 5 6 7 8