23 questions
0
votes
0
answers
32
views
Unable to get Mongo database script output to standard output
I'm able to to see the output of the count() on a DB collection like below:
docker exec -ti STG-mongo-rs mongo --port 27065 --authenticationDatabase '$external' --authenticationMechanism PLAIN -u ...
2
votes
1
answer
2k
views
How to script and load assemblies list to SQL Server?
My SQL CLR procedure depends on log4net, it depends on System.Web.dll.
When I upload this System.Web.dll :
create assembly [System.Web]
from 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\System.Web....
0
votes
0
answers
29
views
Sql Server Back Up
I'm using the below to backup a db from a SQL job. Can someone tell me how to add the current date to the output filename? Preferably in YYYYMMDD format.
0
votes
1
answer
293
views
Do inherited keys need some kind of creation in SQL creation scripts?
I'm trying to represent inheritance (I know) in creating a database. I have it figured out, but I'm not sure if I need to represent the PK that my tables inherit when creating tables.
I have a ...
0
votes
1
answer
241
views
Maintaining Database Scripts
We have a long running project and we have continuous database scripts included in the project. Currently we use a manual way to run those scripts which I think does not work in a long run and the ...
6
votes
2
answers
40k
views
How to partition an oracle table by a date column?
I have a table in oracle:
CREATE TABLE transaction (
id INT NOT NULL,
accountnumber VARCHAR NOT NULL,
stmtvaluedate DATE NOT NULL,
...
)
And I want to partition this table by the ...
1
vote
2
answers
342
views
Google ScriptDB: How to retrieve a Key Value Pair using a variable?
I am using Google UI Apps and ScriptDB, and I have a map object similar to this:
myMapObject = {record_id: projectA,
apple : 316,
orange : 956,
banana : ...
0
votes
0
answers
441
views
Database script not executing
In my sqlserver 2008 R2
I have a database script which generate successfully, but when I am trying to execute that script its only shows Executing query message and nothing happen.
I had waited at-...
4
votes
1
answer
7k
views
how to get DB backup script from Remote Server in MySQL using command-line utility?
Can anybody tell me that how to get DB backup script from Remote Server in MySQL using command-line utility?
I'm using a command as follows, but not working:
C:\>mysqldump -h <server ip> -u ...
26
votes
2
answers
46k
views
Create database using script at the default path?
I've generated a script of a database in SQL Server 2008. The generated script has the hardcoded path of where the database would be created. I don't want this path to be hardcoded, I want this path ...
3
votes
2
answers
3k
views
Managing database scripts in your solutions
I usually create a solution folder in Visual Studio and put my DB scripts in them. I always use at least this set of scripts:
Drop model
Create model script
User functions
Stored procedures
Static ...
1
vote
1
answer
2k
views
Design SQL schema in Visual Studio and auto-generate SQL script to create and upgrade database
I don't know much about SQL but this is what I want:
Visually design an SQL database schema in Visual Studio
Let VS generate a create script for this database
Track modifications to my schema and ...