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. …
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 =…
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 ?
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 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 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…
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…
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…
Actual Execution plan for query store
is it possible to capture actual execution plan inside query store ? or else need to use back xevent ?
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 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…
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 …
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…
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…
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…
How to map IDs in different formats from source to destination
Hi, My source data is in postgreSQL and my target data is in Common Data Service (D365). On source, I have employees with these IDs: 1 2 ... On target, the IDs are a little bit more complex. How can I map these IDs? I need to know that…
Msg 319, Level 15, State 1, Line 2152 Incorrect syntax near the keyword 'with'.
Forum, I'm trying to build a clustered index for the all the heap tables moving to a different FG i have almost 1k statements so running them all as a batch CREATE CLUSTERED INDEX [PK_Create_my_index1] ON [dbo].[tab1] ([ID] ) WITH (DROP_EXISTING =…
Choice of Join hash join
I believe sql server optimizer will choose loop join if one of the input table will be relatively small . like few rows. but in the following example show that it use hash join and using the smaller table as to build hash column in memory . so the query…
Type of reports
We are considering getting our teachers (55 teachers) to set weekly homework via Microsoft Teams. As I am in charge of homework, is there a way for me to see (run a report/analysis) who has set homework across the organisation. We currently have this…
Timeout after 10 minutes over Linked Server
I have a simple select query running over a linked server. It normally takes 7 or 8 minutes, but sometimes goes over 10, in which cases it appears to time out: Execution terminated by the provider because a resource limit was reached. [SQLSTATE 42000]…