Quantcast
Channel: Microsoft SQL Server

Need help with payments and offsetting adjustments

I have a sql query question. My data consists of an integer column Encounter Number, a date column Date of Service, an alphanumeric column for CPT Code, another date column Transaction Post Date and...

View Article


SQL Backup Maintenance plan and alternate destination locations

Is it possible to have an alternate second backup location in a SQL maintenance plan via SSMS, if the original backup destination is unavailable/offline/full?E.g. The database backup\s are...

View Article


T-SQL Syntax, COALESCE vs ISNULL question for Daily Challenge

Howdy all,My SQL knowledge is... Lacking to say the least, and we've got a question that seems to have folks split on what the correct answer should be (at least enough for a couple dozen to flag the...

View Article

command to uninstall SQL 2019 expres

I need to know the command to uninstall SQL 2019 express.I tried   Setup.exe /q /ACTION=uninstall /FEATURES=SQL  /IACCEPTSQLSERVERLICENSETERMS But it did not work.This is for a local installation....

View Article

Adding IIS-APP & MSSQL-DB to Network // Best design/deployment?

For our existing setup, we’ve got a large MSSQL database (DB1), and an IIS application (APP1); each has its own respective machine (VM1 & VM2). We are soon adding another MSSQL DB (DB2), and IIS...

View Article


Backup SQL Server - script and TS

Customer is using a vertical market app that does POS, accounting, inventory, etc, and it is running on SQL Server 2019.The software vendor used handle the the local and online backup as part of the...

View Article

Image may be NSFW.
Clik here to view.

Best way to join and query tables without matching data.

I have a temp table (~800 rows) created by querying the customer table.With this...

View Article

How to get common values from multiple tables but keep the row count the same?

need common values from the four tables that occur only as many times they do in one table that is LibraryI want the PartRn and PartNumber, Rev, and the Max return date for the records in the Library...

View Article


Invoke-Sqlcmd produce no result

I have a t-sql (a.sql) as follows:SQLusemaster;DECLARE@countINT;select@count=count(1)fromsys.databases;if((SELECTnameFROMsys.databasesWHEREstate!=0)ISNULL)and@count=20print'All 20 ABC PROD DBs...

View Article


Power BI audit logs

Hi all,Is there any way to extend the audit logs of Power BI from 180 days to 365? if is not possible directly, could we use power automate to periodically download logs every x number of days?Thanks.

View Article

SQL Connectivity Failure

Greetings to the well of knowledge...We had a failure of our two SQL Servers a couple of weeks ago. We recovered quickly but since restoring, I have had a particular SQL Server job that just does not...

View Article

Image may be NSFW.
Clik here to view.

SUM Minutes until Different Value in Different Field

I am appealing to the T-SQL experts in this community for assistance with this query as you have provided excellent guidance in the past...I need to calculate the total amount of time a client waits...

View Article

Do SSMS jobs alter the database?

I have a handful of databases that haven't been altered in a long time.  However, my backup software seems to think they have been and has been backing up unique data for the last ~ 14 days or so (The...

View Article


Image may be NSFW.
Clik here to view.

SQl Server optimising

I got and server 2022 running  SQL 2022 below config on Vmware ESXi7, What should I be doing to optimize the SQL Performance from a Windows prospective, please can some one advise me on this . 

View Article

SQL Login

We have two servers that are part of the SAME, and only existing domain.From Server1, we are trying to connect remotely to SQL Server 2019, which is installed on Server2. We are using Mix mode...

View Article


Dynamic SQL

OK, I'm not new to SQL exactly, but i am new to dynamic SQL which i thought would help me declare a variable column name in a select...

View Article

HyperV cluster with the VMs on a separate cluster that has SOFS

Hello I am having this very serious canadrum we are trying to deploy a HyperV cluster with the VMs on a separate cluster that has SOFS, we followed best practices to have it done, comunication is up,...

View Article


SQL Query Help

Hi, Can some one help me with this?  I have 3 tablesOINV - Invoice HeaderInvoice #  Customer Number, Invoice Total10000    ABC1      1000.00INV1 - Invoice Line ItemsItem  Quantity AmountA1000     3...

View Article

Database Mail

Greetings to well of knowledge...I have two separate SQL Server VMs, both of which use Database Mail to send notifications to the tech team when backup jobs complete (success or failure).Our email...

View Article

Image may be NSFW.
Clik here to view.

SQL 2012 Protocols for instance Certificate Tab showing blank

Unfortunately we still supporting clients that still running SQL 2012 serversI have an issue when trying to add a cert already created by our CA, when trying to add it to the server via SQL Server...

View Article


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>