Having trouble writing a query to include previous revenue
I wrote this query showing number of orders today comparing to the number of orders yesterday. That part works fine. When I revised the query to include the current charges today comparing it to...
View ArticleSetting up AG listeners
Hello everyone. I am relatively knew to MSSQL so please bare with me.My infrastructure is currently in AWS.I have 3 servers running MSSQL. I have a primary replica and two secondary replicas. All three...
View ArticleSSIS custom components in windows 10
My team has recently migrated from windows 7 to windows 10. We have some custom components (dll files) that we need to install and bring into SSIS (SQL server integration services) packages as tool...
View ArticleSQL - Sum field based on two earliest dates
Hello,Is there a generic way to sum up a field based on the two earliest dates?"Table" consists of the following columns:1) Date2) VisitorID3) RevenueBasically, for each unique Visitor ID, I want to...
View ArticleShrinking a SQL 2014 Log File
Hi all,I dont have a fault, more a query....I have SQL 2014 on a svr2012r2 server...I have MS Navision 2018 database ( a test database, and another non-nav database)Database average size is 14gb (25...
View Articleinvalid length parameter passed to the left or substring function
Hi,I', getting the above error when I run the below codeText CASE WHEN PATINDEX('/courses/%/pages/%', url) >= 1 AND PATINDEX('%?%', url) >= 1 THEN SUBSTRING(LEFT(url,CHARINDEX('?',url)),...
View ArticleCombine two SQL queries into 1 with UNION
Hi,Im trying to combine 2 sql queries into 1 possibly with a union but Im unsure.... I appreciate that a union should have the same amount of columns per query but on my occaison there isnt as they are...
View ArticleSSRS and Chrome
SQL Server 2016 SP2 CU12 (13.0.5698.0)Chrome Version 83.0.4103.106I patched SQL Server over the weekend and Chrome was also updated to the versions listed. A user is now showing an issue which was not...
View ArticleSQL log indicates Logon failure, Error 18456, Severity: 14, State: 38....
Hi,Just to be clear, I am not a SQL professional. I need to find out the root of this problem so i can contact whoever is responsible. In the SQL log I discovered a logon error which occurs every...
View ArticleIs it possible to edit the database using Temp Tables in SQL Server?
I want to confirm that is it true that we can recover the database using Temp Tables.
View ArticleRegular Maintenance Tasks
What regular maintenance tasks are recommended for keeping a 1TB database running sweet on SQL Server?I am occasionally getting indexing issues which is usually fixed by running a manual DBCC.Thanks
View ArticleThe Battle of SQL on Prem vs. on Azure – Which is Better For Your Needs?
Recently, we broke down the similarities and differences of SQL Server On Prem or Azure SQL. Although both focus on compatibility and functionality, there are some key differences between the two, such...
View ArticleNew 2012 r2 server & SQL 2012 set up
I'm a novice at best working with servers and SQL so please bare with me as I learn. I've installed Server 2012 r2 on a Dell PowerEdge T320. I believe I have everything needed setup on it but could be...
View ArticleTempDB filling up. How do we find out what is causing this?
Our SQL tempDB is growing in clips of about 350GB almost every day at the same time and if we don't shrink it it will fill up the drive. We can't seem to find out what is causing this. Any tricks or...
View ArticlegMSA accounts for SQL Server
Hi guys,Wanted to ask about some best practices regarding running SQL Server and its different services and gMSAs.From what I read you would create groups based on either the environment, or...
View ArticleDrive size larger than the sum of its files and folder (SQL Logs)
Hello,I spinned a new Windows 2019 server to host a SQL Server 2016. I created 4 additional drives for specific functions such as Data, Backups, Logs, and System_DB drives.I am experiencing an anomaly...
View ArticleSSRS Page Formatting / Field Location
I would really appreciate some guidance on how to get my SSRS report to show correctly on a printed page. We have a 3 part check that has some fields at the top of the page and they need to be in a...
View ArticleBio metrics access control time and attendance and MS SQL
Hi IT peeps Anyone working with bio-metrics time and attendance software and hardware as well as SQL?
View ArticleDoes SQL come with SharePoint?
Hi guysDoes SharePoint Server Standard 2019 license come with SQL Server or does one need to purchase SQL Server license separately?Thanks in advance.Gerry
View ArticleAny problem restoring clustered sql 2014 backup into non-clustered 2014
Hi guysShould I anticipate any problems restoring clustered sql 2014 backup into non-clustered 2014 ?Thanks
View Article