|
|
|
|
|
|
|
|
Question of the Day |
Today's question (by Steve Jones - SSC Editor): | |
Azure Synapse Link for SQL | |
What is the Azure Synapse Link for SQL? | |
Think you know the answer? Click here, and find out if you are right. |
Yesterday's Question of the Day (by Steve Collins) |
Case expression with NULL You run this SQL Server code select case when 1=0 then null end; What does the query return? Answer: The query returns an error Explanation: The query returns the error message: Msg 8133, Level 16, State 1, Line 17949 At least one of the result expressions in a CASE specification must be an expression other than the NULL constant. Although no ELSE result is provided the expression default is ELSE NULL. Since both sides of the specification are the NULL constant the CASE expression returns an error. Ref: CASE - https://learn.microsoft.com/en-us/sql/t-sql/language-elements/case-transact-sql?view=sql-server-ver16 |
Database Pros Who Need Your Help |
Here's a few of the new posts today on the forums. To see more, visit the forums. |
SQL Server 2017 - Development |
Need to be written comment like "Lost" - Dear All, I am new in SSRS, I created one report like the attached file. (Design, Output) I want to add a comment on the last those customers who didn't purchase any item continue two months. if any challenges in understanding pls let me know. |
SQL Server 2016 - Administration |
Change the exsisting WSFC to a new WSFC in AG Configuration. - Hi; We have a production SQL Server setup with AG configuration. The WSFC is not configured properly there. So we had to face lot of issues past days. Now system engineers decided to create a new WSFC and recofigure the AG. If anyone can please share the SQL Server side configuration steps for this. Please […] |
SQL Server 2016 - Development and T-SQL |
TEMPDB Version Store Growth when READ_COMMITTED_SNAPSHOT IS OFF - Why would the version store be growing for a database where READ_COMMITTED_SNAPSHOT is OFF? SELECT U.*,D.name,is_read_committed_snapshot_on FROM tempdb.sys.dm_tran_version_store_space_usage U JOIN sys.databases D on U.database_id = D.database_id WHERE reserved_space_kb > 0 order by reserved_space_kb desc Thanks |
Help with Joins - Hi there, I'm new to T-SQL and am struggling with the join concept in practice. I'd like to join the results of multiple tables to one generic column called "Codes". I have 7 different tables that use the same name, just have different codes depending on the table. Each row record has a unique identifier […] |
Administration - SQL Server 2014 |
Operating system error 5 Even SQL Service account has Full permissions on folder - Hello SQL Experts, SQL Error – Unable to open the physical file. Operating system error 5: “5(Access is denied.)” I am also facing similar issue. Operating system error 5: “5(Access is denied.)”. CREATE DATABASE failed. Some file names listed could not be created. Check related errors. We have SQL Server 2014 server. The SQL Service account […] |
SQL Server 2019 - Administration |
Sql server Execution Plan table format - Hi I have searched on net but didn`t found much its possible to have output of sql server execution plan in table format ???? I mean non-graphical dbms like oracle/mysql must giving data in table format only .So its same possible in sql server too. Large/complex query execution plan are difficult to read so if […] |
Where i can see logs for AlwaysON - Hi In case of SQL Server Failover Cluster we get sql server cluster log by executing command get-cluster log . Can we get saem in case of alwasy-on log or there is some other command Basically i want to check where i can see where can i see logs for Always-ON . is it in […] |
Amazon AWS and other cloud vendors |
AWS : SqlServer to Postgree continous replication - Hi, I have RDS mssql serer database on aws. for few tables I want to replicate them continuously (once a day) on postgres. I can write tsql code with linked server to populate data on postgres, but I read on AWS articles that it only allows sqlserver to sqlserver (min standard edition) linked server connections. […] |
Azure Data Factory |
who is using ADF and why? - I asked a question some time ago which orchestrator you guys would recommend. Airflow, prefect and Argo were the most common answers but there was also something else that stood out, no one liked Azure Data Factory. I once looked at it and I did not like it either, so it was not really a […] |
Reporting Services |
SSRS Subscription email authorization options - We recently had a BI person leave the company and report subscriptions stopped being sent. They had setup a bunch of them and was the owner and since we never configured email at the server level all subscriptions used the owner credentials. We are now going to setup email at the server level using SSRS […] |
General |
No experience with programming; how difficult is SQL for new prospect? - I'm looking at a career change. I have bachelors degree in healthcare management and pre counseling. My mental health is going down the drain and do not think I can sustain myself long term in the field of addiction. I was planning on going to grad school for counseling, but entry level data analyst positions […] |
Analysis Services |
Run MDX Query against different Databases on the same server - Ahoy, i have few ssas server instances and many tabular models on each of the server. Now i want to gather structural metadata of these models. There are some DMVs which seem to get what i need: $System.DISCOVER_STORAGE_TABLE_COLUMN_SEGMENTS $System.DISCOVER_STORAGE_TABLE_COLUMNS $System.DISCOVER_STORAGE_TABLES But the problem seems to be that these DVMs can not get data across multiple […] |
PostgreSQL |
Create the AS clause for Postgres crosstab dynamically. - This is a continuation of Dynamically creating columns for crosstab in PostgreSQL. To be clear, I cannot produce the AS clause if I have a dataset with a variable amount of keys. For example, a table with tests (testdate, pupil, outcome) that begins with the pupils (Tom, Dick, Harry) This would be the crosstab: select […] |
SQL Server 2022 - Development |
How to select the data from xml - Dear All, My table have a xml column so how to select the data from xml column my data is: Best beauty advent calendars for Christmas 2022, including skincare & makeup from Liberty, M&S, Body Shop, MAC and Charlotte Tilbury. What top products are inside and when do they […] |
Building Application to connect with SQL Server Tables and Edit records - Hello, I would like to build a Microsoft-based Application to use SQL Server Tables, and with this application there needs to be the ability to edit, delete, update etc records (in SQL Server). Other than Visual Basic, what other Microsoft Tools/languages are suitable ? Thanks ! |
| |
©2019 Redgate Software Ltd, Newnham House, Cambridge Business Park, Cambridge, CB4 0WZ, United Kingdom. All rights reserved. webmaster@sqlservercentral.com |