Viewing 15 posts - 31 through 45 (of 297 total)
If this is in fact running on some version of OS/400 (or now IBM i) you could perhaps try to query it in SQL?
https://stackoverflow.com/questions/73732462/sql-query-to-get-db2-version-on-ibm-i
October 3, 2024 at 3:08 pm
I'm not sure if you're aware of this, but when you catch an error in sp2, you're effectively annulling the error, ie. it will not automatically "bubble up" to the...
September 19, 2024 at 8:42 am
Duplicate! 🙁
September 18, 2024 at 4:18 pm
Like this?
drop table if exists #RawInput;
go
drop table if exists #FinalOutput;
go
create table #RawInput (
Whatever varchar(500) not null
);
create table #FinalOutput...
September 18, 2024 at 4:15 pm
Consider changing the report from using one embedded monster query into a call to a stored procedure where you can split the original query up into several lean and mean...
July 9, 2024 at 4:52 pm
June 11, 2024 at 6:19 pm
I have had situations where I simply couldn't make a execute using WITH RESULT SETS work.
I solved the issue by changing the sp to specify a dummy table variable with...
April 9, 2024 at 4:36 pm
Based on ratbak's second query, I think you can simplify it a little more by using a combination of AVG and NULLIF:
WITH subquery AS
(
SELECT
...
March 7, 2024 at 7:53 pm
I'm not really familiar with Oracle, but this seems like something universal, so I will give it a try.
SELECT Id,
SUM(CASE...
February 19, 2024 at 6:12 pm
Just remove the GO - there's no need for it.
SET @view_code = N'CREATE VIEW [' + 'PGCPS_CUSTOM' + '].[' + @table_name + '_VW] ' + @line_break +
'AS ' + @line_break...
February 14, 2024 at 6:59 pm
Long shot: Have you changed the batch separator to something different than the default? That would produce the error you describe.
In SSMS check
Tools-> Options -> Query Execution -> General
and
Query... ->...
February 13, 2024 at 7:11 pm
No, only VB.NET and C#.NET is supported.
Options
ScriptLanguage
Select the scripting language for the task, either Microsoft Visual Basic or Microsoft Visual C#.
February 13, 2024 at 6:34 pm
I don't think there is a pre-baked recipe for you, but FWIW, Brent Ozar has a few recommandations, which you can read about in this blog post:
https://blog.quest.com/demystifying-cxpacket-and-cxconsumer-wait-types-in-sql-server/
September 25, 2023 at 3:05 pm
Sorry, but you've been extremely sloppy with your example code/data.
September 14, 2023 at 6:43 pm
... but if you can't change the date format in the file name...
This would also be a possible solution:
DECLARE @x VARCHAR(100) = '09142023';
SELECT @x as [@x]
...
September 14, 2023 at 4:42 pm
Viewing 15 posts - 31 through 45 (of 297 total)