Query optimization
Can anyone give an example that the sql query optimizer do the following ? outer joins sub-queries aggregation stars and snowflakes indexed views index plans update plans partitioned table elimination correlation elimination …
Connect to SQL server from batch file
Hello, I have a batch file that I use to start application from Win 7 client. It will connect to remote SQL Server and start application. It looks like this pushd \<server>\MITRE\SoftwareReleases\v23-lfhm cmd /c start…
Sql 71501 Error
This is the error i am facing for one week. I don't know how to solve it : SQL71501 :: Procedure: [dbo].[st_feesdata] contains an unresolved reference to an object. Either the object does not exist or the reference is ambiguous because it could refer…
![](https://techprofile.blob.core.windows.net/images/c4mRkDtLdU6n6fSv2i9uBg.png?8D843C)
through remote Linkserver AlwaysON not propery connect to redonly replca
Hi our environment details Server 2016 SP2 EE edition always on enables and AG enable secondary replica "read-intent only" Q1. I am planning to configure linkerver to connect read only replica using AG listener switch between servers…
![](https://techprofile.blob.core.windows.net/images/c4mRkDtLdU6n6fSv2i9uBg.png?8D843C)
How to calculate 90th Percentile on time (either MM:SS or seconds )
SELECT DISTINCT ,DATEDIFF(s,MV_Incident.IncidentStartedDateTime,MV_Incident.IncidentDate) AS CalltakerProcessingTime ,DATEDIFF(s,MV_Incident.IncidentStartedDateTime,MV_Incident.FirstUnitDispatchedTime) AS TotalProcessingTime …
Azure vs AWS
Have the DBA team detailed any improvements managing SQL instances in Azure versus AWS? Would it be possible to leverage a SQL MI (managed instance) DB or DW?
Non-yielding Scheduler
Hello, I have 2 SQL Server 2016 SP2-CU10 Production instances running one server A. Today, i noticed below error in both the instances at the same time. =============================== ***Unable to get thread context for spid 0 * Non-yielding Scheduler…
![](https://techprofile.blob.core.windows.net/images/bE-Pq7f2lUSVB8C4wMY6Tw.png?8D8475)
SSRS - Unable to Hide Rectangle with CountRows Expression
Greetings! I'm trying to hide a rectangle based off on how many rows exist in a dataset but it's indicating that the Hidden Expression has an error. I know it's complaining about security permissions, but I'm pretty sure that is a false flag since…
Error "-2147217900 CREATE VIEW" when getting data from SQL Server
Hello, I'm using Excel VBA to connect to SQL Server and get accounting data from accounting software. There are several databases (companies) in accounting software, but they all look alike. Whenever I connect to database (company) "A"…
![](https://techprofile.blob.core.windows.net/images/c4mRkDtLdU6n6fSv2i9uBg.png?8D843C)
Unable to connect App Service(.net core application) to SQL Server database
I have configured an App Service(hosted on Linux) which is unable to connect to an SQL Server database. Log error: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not…
![](https://techprofile.blob.core.windows.net/images/ctcyKX4BnU-r4fRclNq-Ww.png?8D9AB2)
How do I monitor SQL Data File Space using SCOM?
Hi, I am running SCOM 2016 and SQL 2017. Recently, I observed that SQL reserves the DB space while Indexing; hence, SQL run out of DB space. I have already gone through the following post and Kevin's article regarding DB space monitoring: …
![](https://techprofile.blob.core.windows.net/images/UAj4iP5_AwAAAAAAAAAAAA.png?8D842D)
government ID Cards
Hello, I wanted to take a 462: Administering Microsoft SQL Server 2012/2014 Databases but I have a problem with government IDs. I have requested to renew my work permit in June and I still don't have my card mailed to me. I only have the paper that lets…
Hide dynamically a tablix in SSRS
Hi, I have a SSRS report with 2 tables. There are kind of the same except one has summary data and the other one has details. I am trying to display one table at a time. Basically, when we launch the report, we should only see the summary table. …
![](https://techprofile.blob.core.windows.net/images/EqrQxhN70Uib8KRAQTM31A.png?8D9A5B)
CXPACKET bottleneck.
Hi everyone! Are there any recommendations or good configuration practices for the treatment of the CXPACKET bottleneck? All help is welcome!
![](https://techprofile.blob.core.windows.net/images/iqNKMXROjUGeu5vDzbUzZg.png?8D8451)
![](https://techprofile.blob.core.windows.net/images/wuoLYTAq2ke3-PoHpSOcPg.png?8D88CA)
New server cube processing timing out because the query wont run parallelism, what do i do?
So I am testing upgrading from 2017 to 2019 and one of the cubes keeps timing out after 1 hour. I have tried changing any timeout options on SSAS from 60 to 180, yet it still fails. The query plan on the previous server uses parallelism yet the new…
![](https://techprofile.blob.core.windows.net/images/f5m7qESyDk63s64hMoxBlQ.png?8D8385)
manual create statistics that can improve performance
are there any example that manual create statistics that can improve performance ?
Scalar UDF Inlining
https://learn.microsoft.com/en-us/sql/relational-databases/user-defined-functions/scalar-udf-inlining?view=sql-server-ver15 what does the follow statement means ? Interpreted execution: Each statement itself is compiled, and the compiled plan is…
Parameter sniffing
May I know if Parameter sniffing will only happen on Store procedure (with parameter) and also prepared sql ?? will parameter sniffing happens on adhoc sql ?
SSIS CSV Loading issue
I am looking for a C# solution to use a script task in SSIS so that I can load multiple csv files to SQL Tables Now If I use a data flow task, then I have to create 1 DFT per file as each file has a different metadata ( unless there is some other…
Uninstall SQL drivers
Hello, On my laptop in ODBC console I see 3 SQL drivers installed: The only driver that I need is SQL Server Native Client 11.0. I have to un-install 2 other drivers. In 'Un-install' feature I see the following: My question:…
![](https://techprofile.blob.core.windows.net/images/f3a7f4ee4f8f40d691a550d3840b0327.png)