database-administration

Frontend tool to manage H2 database [closed]

时光怂恿深爱的人放手 提交于 2019-11-26 21:45:48
How to use H2 database 's integrated managment frontend? For operations such as create table, alter table, add column, and so on. I like SQuirreL SQL Client , and NetBeans is very useful ; but more often, I just fire up the built-in org.h2.tools.Server and browse port 8082: $ java -cp /opt/h2/bin/h2.jar org.h2.tools.Server -help Starts the H2 Console (web-) server, TCP, and PG server. Usage: java org.h2.tools.Server When running without options, -tcp, -web, -browser and -pg are started. Options are case sensitive. Supported options are: [-help] or [-?] Print the list of options [-web] Start

MongoDB Single Document size limit is 16MB

跟風遠走 提交于 2019-11-26 16:52:14
问题 Known Information: Its is know that MongoDB stores in BSON (Binary JSON) and the maximum BSON document size is 16MB. Question: Why 16MB itself why not 32MB or 64MB or still more and where exactly the limit has been put for 16MB and what are the reasons to depend on exactly 16MB? It is mentioned that during transmission, excessive amount of bandwidth will not be consumed and does not require excessive amount of RAM at server. But What if we can afford the network bandwidth and RAM memory

“Cannot open user default database. Login failed.” after installing SQL Server Management Studio Express

南笙酒味 提交于 2019-11-26 11:29:57
问题 I have a database in a local file that is used by a program. The program has limited functionality and I needed to run some quick queries. I installed SQL Server Management Studio Express 2005 (SSMSE), connected to the SQL Server instance, attached the database file, and ran the queries. Now the original program will no longer connect to the database. I receive the error: Cannot open user default database. Login failed. Login failed for user \'MyComputer\\MyUserName\'. I\'ve gone back into

How to replace a string in a SQL Server Table Column

我是研究僧i 提交于 2019-11-26 03:47:53
问题 I have a table ( SQL Sever ) which references paths ( UNC or otherwise), but now the path is going to change. In the path column, I have many records and I need to change just a portion of the path, but not the entire path. And I need to change the same string to the new one, in every record. How can I do this with a simple update ? 回答1: It's this easy: update my_table set path = replace(path, 'oldstring', 'newstring') 回答2: UPDATE [table] SET [column] = REPLACE([column], '/foo/', '/bar/') 回答3