aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Notes/Tango.Notes/DB
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2019-02-27 01:44:38 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2019-02-27 01:44:38 +0200
commit88a73106e8113a4a6ce224f9205e11219939798e (patch)
tree138bd817e9164192aea5297770ec090ae612c3a7 /Software/Visual_Studio/Notes/Tango.Notes/DB
parent3871e96b254db8ce93e294d4eb74f54d51552e2a (diff)
downloadTango-88a73106e8113a4a6ce224f9205e11219939798e.tar.gz
Tango-88a73106e8113a4a6ce224f9205e11219939798e.zip
Started working on Sql Dependency and EF Cache.
Diffstat (limited to 'Software/Visual_Studio/Notes/Tango.Notes/DB')
-rw-r--r--Software/Visual_Studio/Notes/Tango.Notes/DB/SQL Dependency.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Notes/Tango.Notes/DB/SQL Dependency.txt b/Software/Visual_Studio/Notes/Tango.Notes/DB/SQL Dependency.txt
new file mode 100644
index 000000000..d46f10bd7
--- /dev/null
+++ b/Software/Visual_Studio/Notes/Tango.Notes/DB/SQL Dependency.txt
@@ -0,0 +1,18 @@
+-- Set user as db owner --
+USE Tango
+GO
+SP_DROPUSER Developer
+GO
+SP_CHANGEDBOWNER Developer
+
+
+-- Maybe this one also ? --
+ALTER AUTHORIZATION ON DATABASE::Tango TO Developer;
+
+
+-- Get state of broker service on each database --
+SELECT NAME, IS_BROKER_ENABLED FROM SYS.DATABASES
+
+
+-- Enable broker service --
+ALTER DATABASE Tango SET ENABLE_BROKER; \ No newline at end of file