SQL Server Management Studio 18.x Bug on Open .sql file
Like in any Windows environment you have several options to open a file. Let's say you have all of them in SSMS too. Via internal File->Open menu or by grag-n-dropping a *.sql file to the opened and connected SSMS. The other option is to simply…
Filter statistics and recompile
is it a must to execute the query with recompile in order to use filter statistics ?
memoryclerks vs memoryobject vs memory pools
Hi all , just want to know the difference of memory clerks and memory objects and what's are their relationship ? another question is why virtual_memory_committed_kb is much less than pages_kb?? pages_kb is the size that memory clerks…
Auto Refreshing Data in excel with SQL Database
Hello, Is there a way for me to code my excel workbook that is connected to SQL server to automatically refresh (for example cell A to D) every 1 mins, Friday to Sunday, from 8 am-4 pm, using SQl code, Power query or VBA code. Thanks
Adding new data file to AG
Can you please let me know the best and safest approach to add a new data file to an AG.
max queue depth for transaction log and data file
max queue depth for transaction log should be 32. what about mdf ?? are there any msdn official doc for that ?
subreport spans multiple pages when saved to pdf
hi we run 2016 enterprise. i have a master report calling my subreport multiple times. i should start with the sub. when i run it stand alone and save to pdf, it spans multiple pages which dont want. the sub's report page size shows 8.5in, 11in…
SQL Server Mirroring - Principal Database is not configured for mirroring
Is there any way of figuring out what the real reason is for Mirroring to give up on the Alter Database dbPrincipal Set Partner = 'TCP://Domain + server : Port , etc. There are so many reason why you will get the same error: Principal Database is…
How can I use a AzureAD account as administrator for SQL Server Master Data Services
I have tried setting up master data services on my Windows 10 laptop with a SQL Server 2019 Developer edition. On the step of creating the database, I tried using my AzureAD account, as this is the user I use to login to WIndows, but the installer…
Question about obtaining MCSE: Data Management and Analytics
Dear MS, I have a question about obtaining the MCSE: Data Management and Analytics certification. Currently I am in possession of both a MCSA: SQL Server 2012/2014 and a MCSA: BI Reporting certification. However, the documentation on how to…
Connection string mvc app
I created a Web Application using mvc.app and connection to SQL Server. Application authenticates user via ADFS. How should I form my connection string, so the application will work with the SQL permission granted to the user? i.e. I have a user named…
SCOM 2019 - Reports Missing - Using SQL Server 2016 SSRS
Have reinstalled the reporting services role and using SQL Server 2016 SSRS. Get the Application Monitoring and Windows Server Reports folders but then nothing else after that. I know there is a fix for this on SQL Server 2017 SSRS but that option is…
pulling a calculated field from two separte fields
Hello, I have a table that is fed by a dataset. The dataset is a stored procedure that returns two lines associated with each employee. They are sorted by the indicator so line 1 is always followed by line 2. For example: …
Tirning off the usage of Buffer Pool Extension
We are using the SQL Server 2016 Standard with Buffer Pool Extension enabled on SSD drive. For external nightly maintenance we need to turn off an extensive writing on this SSD. So we have scheduled the turning off BPE. Checked it on the testing…
DBCC memory : Current commited vs Page free vs Page allocated vs pages in uses
Current commited vs Page free vs Page allocated vs pages in uses~~~~ <<< What are their relationship
Display all employee.
Below is data and query attached21355-q.txt, i want to display all employee from #tbl_employee_Master ,but asd.sal_ID is null from #tbl_assign_Allowance_Deduction ,means that emp_ID exit or not in #tbl_assign_Allowance_Deduction table ,
Avoiding CSV injection vulnerability in SSRS
I'm trying to find a way to avoid CSV injection when i export a report to CSV format is SSRS (Microsoft Reporting Services). The "manual way" to do it is to add an apostrophe (') to each cell. That will "convert" everything to text…
Querying SQL Server 2012 Training Kit
Apologies in advance, this is very new to me. My boss wants me to start learning SQL queries to assist with reports at work, and the company uses SQL Server 2012. I've been given the Querying Microsoft SQL Server 2012 Training Kit book (textbook and…
Move on-prem SQL server VM to azure SQL VM
I am moving a clients servers to azure. We have been using ASR for past migration and plan to do the same. We dont have SA on SQL server licensing. The issue is when you move all the servers with ASR i do not see an option to make the migrated server…
sys.dm_db_log_stats :log_truncate_holdup_reason : OLDEST_PAGE
for full mode database, I did some transaction , and then backup the transaction log . and then I will see sys.dm_db_log_stats :log_truncate_holdup_reason : OLDEST_PAGE there is some definition on the following but I am still a bit confused of this…