Viewing 15 posts - 931 through 945 (of 5,111 total)
I think you've forgotten about the difference between Sample data and Production data, Joe. The OP is clearly using Temporary tables here, not persisted tables, and their attempts should be...
June 7, 2019 at 2:38 pm
They need three envelopes.
After the fact that storage is a problem too, I don't disagree. It should have been noted by the DBA that the backups were failing, but...
June 6, 2019 at 1:43 pm
ouch. https://www.sqlservercentral.com/forums/topic/help-i-did-a-drop-and-create-blank-records-on-a-production-database Think this person may be out of luck, but if anyone has any bright ideas, they could use them.
I have to agree, I think they're out...
June 6, 2019 at 1:27 pm
Create 2 new variables in your packages (I have called them StartDate and EndDate) with the Data type DateTime, and then set their expressions to the below respectively (obviously replace...
June 6, 2019 at 10:23 am
Will the file name always be the same length, or different lengths? If different, will the dates always be in the same position at the end? Also, there is no...
June 6, 2019 at 10:05 am
I assume, therefore, that the table doesn't have some kind of "last updated date" field? Considering that you have a inactive/active marker this suggests the inactive rows are history values,...
June 5, 2019 at 3:26 pm
Microsoft are no longer supplying Service Pack updates for SQL Server 2017+. Instead, 2017+ will receive a CU every month for the first 12 months after the release, and then...
June 5, 2019 at 3:03 pm
That's PowerBI, not SSRS. I've no experience with PowerBI afraid, nor what browsers it supports.
June 5, 2019 at 1:39 pm
Tables can be declared in SQL Server, but you need to be specific. You can't just do something like this:
DECLARE @Table table;
INSERT INTO @Table
SELECT *
FROM dbo.MyTable MT
WHERE...
June 5, 2019 at 11:25 am
rather than using a function, why not use dynamic sql (also not good) in your main code
declare @sql nvarchar(1000)
set @sql='select * from '+@table+' where '+@colum ='+@filtercode
sp_executesql...
June 5, 2019 at 11:01 am
a warning though, the sp_msforeachdb is not supported by Microsoft any more
I don't believe it has ever been "officially" supported, as it's an undocumented procedure. That's...
June 5, 2019 at 10:20 am
I suspect the problem is the browser, not SSRS. What browser are you using? It all browsers are supported by SSRS, and which are depends on the version you're using...
June 4, 2019 at 8:31 pm
I suspect that your SQL actually fails before it gets to the IN. OR is a reserved keyword in T-SQL so you'd first get an error at your alias...
June 4, 2019 at 8:00 pm
You're likely going to need a loop mechanic either way. You could, however, have a look at Aaron Bertrand's sp_foreachdb instead though.
June 4, 2019 at 7:54 pm
The error is telling you the problem here. You have the subquery below:
SELECT SUM(CASE WHEN PPP.NRODIASFERIAS IS NOT NULL AND FER.PERIODOABERTO = 1 THEN PPP.NRODIASFERIAS ELSE 0...
June 4, 2019 at 1:27 pm
Viewing 15 posts - 931 through 945 (of 5,111 total)