Question I'm designing a MongoDB database for an Uber-like application, but since I'm new to NoSQL concept, I have several doubts.
I have three main collections - users, requests and messages. User can post a ride request, and if other user wants to give him …
Question I have AlwaysOn Availability Group setup for my SQL Server. Now I would like to configure SSIS. How do I do it? Below link provides some information but since I am not DBA it's difficult to understand this article:
Question I need to connect to a SQL Server through UFT (Unified Functional Testing) but the problem is SQL Server is present at different domain whereas QTP (HP QuickTest Professional) is present in a different domain. I am able to connect to SQL Server …
Question So the default location for databases on our server is c:\program files\microsoft sql server\mssql11.mssqlserver\mssql\DATAbut due to space limitations we instead use d:\dataI have now since corrected the default location to be d:\data
However I am …
Question The TRUSTWORTHY setting can be rather dangerous if you aren't careful and except for specific circumstances the recommendation is to keep it turned off. However by default the MSDB database has TRUSTWORHTY set ON by default. I'm curious why?
Question I cannot restore a Microsoft SQL Server database due to lack of hard drive space. The original database was 1.6TB and approximately 1.4TB was deleted from it and a backup was taken without shrinking the database.
The backup file is only 168GB and was …
I’ve published an updated version of this cheat sheet with additional shortcuts and Azure Data Studio coverage. Download the updated PDF. I’ve presented my Shortcuts from an Impatient DBA talk a few times now, and I really love it. Everyone learns something, …
Question Consider the following:
CREATE PROCEDURE dbo.usp_trantest AS SELECT @@TRANCOUNT as trancount; GOWhen I call usp_trantest manually from within SSMS, the trancount is 0. If I run an SSRS report that contains a dataset that queries the same stored …
If you’ve ever looked at sys.sysprocesses or sys.dm_exec_requests (or a number of other DMVs), you’ve noticed there is a column called “sql_handle” that contains some binary gobbledygook. Books Online gives the (un)helpful definition as “Hash map of the SQL …
SQL Server supports two kinds of data compression on rowstore data. Columnstore compression is for a different day. You can compress heaps, clustered indexes (on both tables and views), and nonclustered indexes (on both tables and views).
Compression …