18,699 questions with SQL Server-related tags

Sort by: Updated
1 answer

How to show #ERROR as Zero or as Nothing in matrix cell when groups and calculated field are based on switch-function in SSRS?

Imagine simple BI task: We have two grouping columns and one calculated field. like select group1, group2, sum(sales) Sum_of_sales from dbo.table1 group by group1, group2 When for some combination of grouping columns there's no ROW in dataset -…

SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
2,878 questions
asked 2020-08-28T17:31:47.12+00:00
Petr Ilin 1 Reputation point
answered 2020-08-31T04:10:49.113+00:00
ZoeHui-MSFT 35,556 Reputation points
1 answer

Exclude empty rows in Report

I have a table in an RDL file. Empty rows create due to the (Finish) field contains in sql query, (Finish) field not used in the main report. Field (Finish) is used as a parameter to go to the subreport, I cannot delete it. How to exclude…

SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
2,878 questions
asked 2020-08-29T14:27:28.963+00:00
Илья Листратенко 21 Reputation points
answered 2020-08-31T03:08:14.347+00:00
Lukas Yu -MSFT 5,821 Reputation points
1 answer

Is there a stored procedure in SQL server that allows you do perform clustering/kmeans clustering?

My boss is giving me a bunch of data to analyze by using clustering/kmeans methods. Is there a stored procedure in SQL server that allows me to do that?? Thanks

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,366 questions
asked 2020-08-24T18:22:42.983+00:00
Tianqi Luo 1 Reputation point
commented 2020-08-31T02:38:29.297+00:00
AmeliaGu-MSFT 13,971 Reputation points Microsoft Vendor
2 answers

which licence MS SQL for a 4 core machine?

Dear, We are a Microsoft ISV partner who deliver a software for the construction industry (.NET solution). In order to ship our solution we use Microsoft SQL Calls which we can buy under out ISV contract at Ingram Micro (see below); However now we…

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,366 questions
asked 2020-08-27T15:22:09.52+00:00
Ines Van Roie 1 Reputation point
commented 2020-08-31T01:40:06.24+00:00
CathyJi-MSFT 21,136 Reputation points Microsoft Vendor
1 answer

Azure guest user authentications issues - Excel and PowerBI asking for authentications all the time

Hello, I have an Analysis Service instance running on Azure. Based on this AAS, my users are invited as guest users in my AD tenant. And they are allowed to read the data in AAS through Excel or PowerBI. They have accepted the invitations and created…

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,366 questions
asked 2020-08-25T15:35:56.437+00:00
ZDUAN 1 Reputation point
commented 2020-08-31T01:24:34+00:00
Cris Zhan-MSFT 6,616 Reputation points
3 answers

Rebuilding indexes on 5TB database

We have a 5TB database. Rebuild index job is taking days to complete. Is there any way to rebuild chunk of indexes?

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,366 questions
asked 2020-08-25T18:58:25.03+00:00
Chaitanya Kiran 101 Reputation points
commented 2020-08-31T01:23:07.85+00:00
Cris Zhan-MSFT 6,616 Reputation points
1 answer

Sql server 2019

Wanted to migrate SQL 2012 databse of size 60 gb to SQL server 2019 Wanted to know what is the memory required for 60gb database .db server is standalone. As there are more than 20000 users will acces the application daily basis. Db Server is on…

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,366 questions
Transact-SQL
Transact-SQL
A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
4,601 questions
asked 2020-08-27T19:16:48.993+00:00
Ravi Shah 1 Reputation point
commented 2020-08-31T01:12:38.083+00:00
Cris Zhan-MSFT 6,616 Reputation points
1 answer

Users that have run a specific metered software program report is blank

Hello This issue is for the Microsoft Endpoint Configuration Manager Software Metering Report Microsoft Endpoint Configuration Manager Version: 1910 Details: I find myself in a unique situation where this software metering report is…

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,366 questions
asked 2020-08-26T00:17:15.28+00:00
Giovanny Jimenez 1 Reputation point
commented 2020-08-31T01:11:21.06+00:00
Cris Zhan-MSFT 6,616 Reputation points
2 answers

sql server 2016自动备份失败问题

操作步骤: 1、创建用户a,初始密码b; 2、修改密码为c; 3、重新登录用户a,密码c成功; 4、创建自动备份维护计划成功; 5、右键维护计划-执行; 6、执行结果失败:用户名与密码不匹配,账户被锁定; 7、修改用户属性,密码改成初始密码b,并登录验证成功; 8、重新创建自动备份维护计划成功; 9、右键维护计划-执行; 10、执行结果成功; 疑问: 为什么修改密码后创建的自动备份执行失败?而改回初始密码就能执行成功?

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,366 questions
asked 2020-08-24T08:55:48.163+00:00
存高 范 1 Reputation point
commented 2020-08-31T01:09:25.29+00:00
Cris Zhan-MSFT 6,616 Reputation points
3 answers One of the answers was accepted by the question author.

What SUBSTR() or IN is faster in Oracle?

Would WHERE SUBSTR(my_field,1,6) = 'search' or WHERE my_field IN ('a','b','c','d','f') be faster in Oracle, or would there be no difference? I cannot create temp tables and haven't got the execution plan. Thank you in advance!

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,366 questions
asked 2020-08-28T10:17:44.43+00:00
Vasilina Balashevich 21 Reputation points
commented 2020-08-30T20:33:28.16+00:00
Erland Sommarskog 107.2K Reputation points
2 answers

How to change MS SQL services password (without locking an account out..?)

Hello ALL We have a very strange situation and I need your advice. We have AG of two servers and...somebody have missed an SQL Server service account password. Nothing critical, test envirounment. We have changed user's password in AD Users and…

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,366 questions
asked 2020-08-25T23:23:14.197+00:00
Roman King 21 Reputation points
commented 2020-08-30T18:11:48.48+00:00
Roman King 21 Reputation points
1 answer One of the answers was accepted by the question author.

CDC for Oracle by Attunity - license/support

Hi. We need help on questions regarding CDC for Oracle by Attunity (Service/Designer) from Microsoft Do we need to get a license from Microsoft in order to use this product? (we are currently testing the product with the Service/Designer clients) …

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,366 questions
asked 2020-08-28T01:28:39.077+00:00
Carlos Salgar 21 Reputation points
accepted 2020-08-30T11:03:55.173+00:00
Carlos Salgar 21 Reputation points
4 answers One of the answers was accepted by the question author.

Begin tran and row lock

Hi, I'm using begin tran in my code and with this command - I update a row, it locks the whole table, but i want to lock only the updated rows. any idea?

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,366 questions
asked 2020-08-18T07:29:38.557+00:00
Kodeeswaran Duraisamy 161 Reputation points
commented 2020-08-30T10:50:55.743+00:00
tibor_karaszi@hotmail.com 4,306 Reputation points
11 answers

Parallelism when execution cost lower than Cost of parallelism

why is that.? my cost of parallelism is default 5

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,366 questions
asked 2020-08-19T08:37:11.897+00:00
sakuraime 2,321 Reputation points
commented 2020-08-30T10:39:34.51+00:00
tibor_karaszi@hotmail.com 4,306 Reputation points
2 answers

Trancate table and LOB data

where there are still LOB allocation unit after the table is truncated ?

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,366 questions
asked 2020-08-28T02:54:57.383+00:00
sakuraime 2,321 Reputation points
commented 2020-08-30T10:36:41.977+00:00
tibor_karaszi@hotmail.com 4,306 Reputation points
2 answers One of the answers was accepted by the question author.

How to upgrade SQL 2017 Evaluation to Developer

How do I upgrade SQL 2017 Evaluation to Developer? I have installed SQL 2017 evaluation edition and been using it for 188 days while I waited for approval to purchase the developer edition. There is not a SQL product key available to insert.

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,366 questions
asked 2020-08-28T20:26:56.627+00:00
kescott 21 Reputation points
answered 2020-08-29T15:47:35.043+00:00
kescott 21 Reputation points
2 answers One of the answers was accepted by the question author.

Rebuild index on a 5TB database

We have 5 TB database and the rebuild index job is taking days to complete. Is there a way to rebuild indexes on chunks of tables/indexes. For eg, rebuild index on first chunk, then on the next chunk and so on. Please let me know

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,366 questions
asked 2020-08-27T00:56:02.557+00:00
Chaitanya Kiran 101 Reputation points
accepted 2020-08-29T09:44:48.577+00:00
Chaitanya Kiran 101 Reputation points
2 answers

sys.dm_tran_version_store how to check which row from the table

How to check sys.dm_tran_version_store how to check which row from the table the records are originate from which row from the original table ? and from which transaction ?

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,366 questions
asked 2020-08-26T03:19:05.527+00:00
sakuraime 2,321 Reputation points
commented 2020-08-29T06:37:21.53+00:00
sakuraime 2,321 Reputation points
3 answers One of the answers was accepted by the question author.

Containment (Simple) vs Containment (base):

Containment (Simple) vs Containment (base): Containment (Simple): Users query for data that exists. For example, for an equality join between two tables, factor in the predicates selectivity1 in each input histogram, before joining histograms to…

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,366 questions
asked 2020-08-26T07:49:22.277+00:00
sakuraime 2,321 Reputation points
answered 2020-08-28T17:19:37.053+00:00
sakuraime 2,321 Reputation points
2 answers One of the answers was accepted by the question author.

Online rebuild index ABORT_AFTER_WAIT = NONE

ALTER INDEX clidx ON parttable REBUILD WITH (ONLINE=ON (WAIT_AT_LOW_PRIORITY ( MAX_DURATION = 5 minutes ,ABORT_AFTER_WAIT = NONE))) So in this case, the rebuild index will wait for another 5 minutes, if it was first blocked already by…

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,366 questions
asked 2020-08-27T10:07:41.16+00:00
sakuraime 2,321 Reputation points
accepted 2020-08-28T16:42:15.727+00:00
sakuraime 2,321 Reputation points