18,096 questions with SQL Server-related tags

Sort by: Updated
5 answers

.Net SqlClient Data Provider Queries "Stuck

We started to notice that a bunch of client-side exe apps that run simple SQL queries (Insert, delete) are stuck. When we copy the query and run it manually it completes in seconds, but it seems like all these jobs are stuck. Any ideas why and/or what…

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,859 questions
asked 2020-08-17T07:11:10.667+00:00
reuvygroovy 776 Reputation points
commented 2020-08-24T06:49:03.18+00:00
Cris Zhan-MSFT 6,606 Reputation points
1 answer

Visual Studio C# 2012, MS Sql Server Express 17

OK Folks, I've been developing code in Visual Studio C# V12, using MS Sql Server Express V2017 for a year. -No Problems. Code compiled, and I could test and deploy code. -I added a database in MS Sql Server Express V2017 -total unrelated to my…

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,859 questions
asked 2020-08-23T00:37:19.257+00:00
Scott Hamlin 1 Reputation point
answered 2020-08-24T06:42:26.497+00:00
AmeliaGu-MSFT 13,961 Reputation points Microsoft Vendor
3 answers

BCP date format

I am attempting to import data using bcp. The data contains dates formated as Jan 03 2019 12:00:00:00.000000AM. BCP rejects this data, saying this is an invalid date format. I believe BCP expects a date formatted as 2019-01-03 12:00:00:00.000000. …

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,859 questions
Transact-SQL
Transact-SQL
A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
4,561 questions
asked 2020-08-21T03:31:31.837+00:00
Ted Dykhorst 1 Reputation point
commented 2020-08-24T06:42:01.547+00:00
MelissaMa-MSFT 24,176 Reputation points
2 answers

How to Process Cubes on Different Server?

Hi guys, I am trying to process SSAS cubes on server"B" by kicking SSIS on server"A" with the EffectiveUserName option. The job executing user is an AD user whitch has admin authority on both server "A" and…

SQL Server Analysis Services
SQL Server Analysis Services
A Microsoft online analytical data engine used in decision support and business analytics, providing the analytical data for business reports and client applications such as Power BI, Excel, Reporting Services reports, and other data visualization tools.
1,248 questions
asked 2020-08-18T05:50:26.93+00:00
Shohei 1 Reputation point
commented 2020-08-24T06:38:32.937+00:00
Lukas Yu -MSFT 5,816 Reputation points
1 answer

Heterogeneous Logreader encountered an error in call to LoadReplCmds when processing state 'SYNCINIT_FETCH'

We are having a Oracle as Publisher and distributor and subscriber is SQL SERVER. My Log reader Agent is getting failed showing below error : Error messages: Query timeout expired (Source: MSSQLServer, Error number: 0) Get help: http://help/0 …

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,859 questions
asked 2020-08-21T08:25:23.19+00:00
Neeraj Dubey 1 Reputation point
answered 2020-08-24T05:56:17.287+00:00
CathyJi-MSFT 21,096 Reputation points Microsoft Vendor
2 answers

MDX code to get today's date

Hello, I created a query for Excel in Power Pivot using the visual designer. I currently have to change the dates every month. I need to modify it so it automatically returns the data for January from the current year until the current month. …

SQL Server Analysis Services
SQL Server Analysis Services
A Microsoft online analytical data engine used in decision support and business analytics, providing the analytical data for business reports and client applications such as Power BI, Excel, Reporting Services reports, and other data visualization tools.
1,248 questions
asked 2020-08-21T14:09:13.197+00:00
L G 1 Reputation point
answered 2020-08-24T05:43:05.687+00:00
Lukas Yu -MSFT 5,816 Reputation points
2 answers

Global variables using in other forms

I am making a software i want a global variable so that i can use across one form to other so basically i want to call roll no. that is written in an event datagridview row header event: Roll_No =…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,849 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,859 questions
asked 2020-08-21T07:00:59.377+00:00
Zeeshan Haider 21 Reputation points
answered 2020-08-24T05:23:58.037+00:00
Daniel Zhang-MSFT 9,621 Reputation points
8 answers

Database trigger and there is login fail on the sql errorlog

I have the following trigger database trigger and then there is a error in the errorlog why is that ?

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,859 questions
asked 2020-08-18T04:18:24.463+00:00
sakuraime 2,321 Reputation points
answered 2020-08-24T01:37:34.48+00:00
m 4,271 Reputation points
5 answers

Index Optimization job stuck - Sql 2008R2

Hello, We have Sql 2008R2 and we are running Index Maintenance job (Index optimization) part of Ola's maintenance Solution but during job was running and Sql server Shutdown/Restarted and job still showing as in 'Progress'. This is a Sql Agent job 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.
12,859 questions
asked 2020-08-17T17:22:28.687+00:00
pdsqsql 391 Reputation points
commented 2020-08-24T01:25:20.25+00:00
AmeliaGu-MSFT 13,961 Reputation points Microsoft Vendor
3 answers

SQL Server 2019 Highly Available Cluster - Setup

I have a Hyper-v Cluster and would like a recipe for adding a highly available SQL role

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,859 questions
asked 2020-08-17T14:33:35.027+00:00
Tolo, David 1 Reputation point
commented 2020-08-24T01:13:40.467+00:00
AmeliaGu-MSFT 13,961 Reputation points Microsoft Vendor
7 answers

SQL Server 2014 table compression

Hello, planning on running a SQL Agent Job to compress some Prod Tables which looks like will take a couple of hours to finish. Is it correct to say that during this Tables (only) compression job just the target tables will be unavailable/locked 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.
12,859 questions
asked 2020-08-19T23:21:22.477+00:00
techresearch7777777 1,796 Reputation points
commented 2020-08-23T21:25:06.43+00:00
Erland Sommarskog 102.2K Reputation points
3 answers

MECM/WSUS - SQL option collocate or remote SQL?

Hi All Wanted to bounce my thoughts with fellow members. I am about to embark on a mini project for a customer. It's for a small experiment and a new network and infrastructure environment will be created on-premises. Unfortunately for this piece of…

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,859 questions
asked 2020-08-20T08:43:34.89+00:00
Anonymous
answered 2020-08-22T22:17:56.813+00:00
Jason Sandys 31,176 Reputation points Microsoft Employee
3 answers One of the answers was accepted by the question author.

Updating a table based on values in the table

I have a temp table #XX that looks like this" ID KWID NAME ORDER 1447 1144 SW_6368_58_55.png NULL 1450 1145 SW_6942_58_55.png NULL 1451 1147 Arb3_43_55.jpg NULL 1452 1147 Arb1_43_55.jpg NULL 1453 1147 Arb2_43_55.jpg NULL 1598 1152…

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,859 questions
Transact-SQL
Transact-SQL
A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
4,561 questions
asked 2020-08-22T00:45:59.007+00:00
Jim Seidel 61 Reputation points
commented 2020-08-22T21:57:34.327+00:00
Jim Seidel 61 Reputation points
4 answers One of the answers was accepted by the question author.

Actual Execution plan for query store

is it possible to capture actual execution plan inside query store ? or else need to use back xevent ?

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,859 questions
asked 2020-08-20T04:57:53.157+00:00
sakuraime 2,321 Reputation points
accepted 2020-08-22T09:49:37.813+00:00
sakuraime 2,321 Reputation points
5 answers One of the answers was accepted by the question author.

Test if any SQL Server related questions already exist

I checked all 4 forums under SQL Server and I see 0 posts. However, I think I saw a thread somehow where I saw Uri has an answer. How come I don't see any questions in relation to SQL Server?

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,859 questions
asked 2020-08-04T03:35:39.533+00:00
Naomi 7,361 Reputation points
commented 2020-08-22T01:16:44.963+00:00
Ronen Ariely 15,096 Reputation points
5 answers One of the answers was accepted by the question author.

SQL Server Reporting Services -- Deploying report fails -- The operation has timed out

HI All, I am getting an error today that I have not received before. When using Visual Studio to deploy a report to my SSRS 2017 Report Server, I am getting the error "The operation has timed out." I am using SSDT and Visual Studio…

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,818 questions
asked 2020-08-18T18:44:10.42+00:00
DJAdan 671 Reputation points
accepted 2020-08-21T20:34:19.677+00:00
DJAdan 671 Reputation points
1 answer One of the answers was accepted by the question author.

SSRS - STORED PROCEUDURE WITH TABLE VALUED PARAMETERS

Hi, How can we use Stored Procedure with Table Valued Parameter in SSRS Dataset ? CREATE TYPE DBO.MultiFilter AS TABLE ( filterVal VARCHAR(200) ) CREATE PROCEDURE DBO.USP_multiFilterTest @position DBO.MultiFilter READONLY …

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,818 questions
Transact-SQL
Transact-SQL
A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
4,561 questions
asked 2020-08-19T09:59:25.577+00:00
Srinivasa Rao Chigulla 46 Reputation points
commented 2020-08-21T18:29:45.693+00:00
Allen M 11 Reputation points
1 answer One of the answers was accepted by the question author.

Lookup do not bring amount

Hello There I have to datasets one for expenses and one for revenues, it is partially working because the lookup is bringing one value from the datasource therefore I am out balance. The money is sitting there but my lookup is not bringing both…

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,818 questions
asked 2020-08-20T18:02:40.463+00:00
Ysa8989 41 Reputation points
commented 2020-08-21T17:45:33.763+00:00
Ysa8989 41 Reputation points
3 answers One of the answers was accepted by the question author.

Description=[Microsoft][ODBC SQL Server Driver] [SQL Server] Invalid object name 'databaseproperty'

Hello, A good friend of mine runs a tech support business from his home and is in the hospital for an unforeseeable amount of time. I've run a disk repair for his son but whatsup isn't loading properly (i kept poking at it and admit every time I fix…

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,859 questions
asked 2020-08-21T03:37:15.87+00:00
Boe Dillard 666 Reputation points
accepted 2020-08-21T16:50:54.78+00:00
Boe Dillard 666 Reputation points
2 answers One of the answers was accepted by the question author.

Managing MDF Files

I have a database MDF file with 800Gb, and the disk is almost full. I'd like to get the best practice to grow create new files to my database. So, I have some options to do this: Create a new drive, create a new MDF file with autogrowth, 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.
12,859 questions
asked 2020-08-21T12:18:32.277+00:00
Alexander Benatti 21 Reputation points
accepted 2020-08-21T16:29:06.52+00:00
Alexander Benatti 21 Reputation points