Viewing 15 posts - 31 through 45 (of 300 total)
If you are connected to what was formerly known as an AS/400, when it was sold as an integrated system (for more than 10 years it has been sold as...
October 3, 2024 at 5:32 pm
Sorry, it's not clear to me what you want to achieve. You write very well, but somehow still fail to describe what you want in a way that I can...
October 3, 2024 at 4:25 pm
And on the topic of getting and installing data drivers for the IBM i DB2, a good place to start would probably be
https://ibmi-oss-docs.readthedocs.io/en/latest/odbc/installation.html
October 3, 2024 at 3:23 pm
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
Viewing 15 posts - 31 through 45 (of 300 total)