Quantcast
Channel: Microsoft SQL Server
Browsing all 4871 articles
Browse latest View live

SQL query to get most current job position based on EndDate

Hi, I am trying to write a SQL query that will run through a PowerShell script to get the staff members most current job position. To do this I am using the [EndDate] field as this *should* relate to...

View Article


SQL and Licensing

I have a live SQL 2014 database in production, hosted on a Windows 2012 Server.I need to setup a test server with a copy of the SQL database. I am planning to setup a test server in my VMWare...

View Article


SQL Query - Need Help

Hi,I need help with this query.DataParent  Item        Description   CostAAA   ITEM-A1     TEST-ITEM-A1  1.00AAA   TEST-A2  TEST-ITEM-A2  1.25AAA   TEST-A3  TEST-ITEM-A3  1.30BBB   TEST-B1...

View Article

Windows Auth - Contained Database

I have disabled VIEW for PUBLIC and  have enabled contained databases on a SQL 2012 server and created a contained database. I have also created a SQL account and a domain account within this database...

View Article

SQL is giving starttls issue using Office365

We have started to get an error on SQL mail, but the emails are still going through.  We are afraid that the emails will stop with the TLS changes Microsoft is making.  Is there a fix for this error?...

View Article


Basic SQL: Add column to select statement (ie value from another table)

Hi there,I need to add a 4th column to my current select statement on LedgerTransactions. This fourth column is the company name which is obtained from (select CoName FROM LedgerParameters). There are...

View Article

How can I return all results for one record in SQL?

In SQL 2017 there is a keyword for this (STRING_AGG) that does exactly what I want. Unfortunately, I am not in SQL 2017.Basically, I want to search a table that has tasks related to incidents. For each...

View Article

SQL View with Special Characters

Hi,I have a BLOB field that I need to put in a view so I can see the contents of the data.  I have special characters in the field  Trademark Symbols ® I need to have the symbol in the view just like...

View Article


SQL Server 2019 Standard RTO expectation with Always On

So we have our first big SQL project (in the past we've survived with SQL Express) as we are moving one of our systems from cloud based to an on-prem system. As we are a small business (<60 users)...

View Article


Image may be NSFW.
Clik here to view.

SQL select query columns

Hi Guys,I created this select query. SELECT GeneralLedger, YEAR(ReportingDate) AS jaar, MONTH(ReportingDate) AS periode, SUM(AmountDCDebit - AmountDCCredit) AS SaldoFROM dbo.GeneralLedgerBalancesGROUP...

View Article

ORA-12541: TNS:no listener". (.Net SqlClient Data Provider)

Hello,I am having issue with connecting oracle from Sql Server using Linked Server.I have installed Oracle client and Sql Server on both the same server.C:\Windows\system32>TNSPING orclTNS Ping...

View Article

What level of permissions is neeed to allow a user to connect to an SQL DB?

We have added O365 to our platform. Accounting has discovered Power BI and are building queries to facilitate data for leadership. They need an elevated level of permissions it seems to make the...

View Article

Hopelessly loss... need some guidance. SQL 2012 Execution Plan Changing

Hi there....Really appreciate some guidance.I have a stored procedure with 3 parameters. This stored procedure executes 10x per minute. Average row return is less than 100.Over Time, this STP gets...

View Article


How to Recover SQL Server Database in Suspect Mode?

what to do when my SQL Database goes in suspect mode, please suggest the appropriate answer to the question.

View Article

cumulate columns select query

Hi all,I have built this query and it works fine. However I want the periods to be cumulatve. How can I do this? So period 1 is 1 and period 2 is 1 added 2...

View Article


Msg 248 and Msg 245 when Creating a View

I am trying to create a View that will bring an "Account Number", A "Balance Due" and a "Phone Number together from two different tables. When I try to Select top 1000 in the View I get two errors...

View Article

Microsoft AIP service cannot connect to database

Hello all,We are going through the process of setting up the Azure Information Protection Scanner to scan through our share drives to apply labels based on sensitivity levels. We have gone through the...

View Article


How to build SSRS reports on the IIS server with domain name

Hello,I am trying to build SSRS report server for my organization and novice to this organization. I have a domainname.org. Now I would like to connect domain name with the IIS server. Once IIS server...

View Article

merge two rows within a group SQL sript

Hi I have a script below which groups the client...

View Article

Create a computed Column based on information from a column SQL

Hi,I have a Database with the following columns:TextProject FileName Test Testing AA_AAB AA_BBC_123_23894945 AA_AAB AA_BBC_222_443342_E Test2 Testing444 I'm trying to create a computed field where I...

View Article
Browsing all 4871 articles
Browse latest View live


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