Viewing 15 posts - 46 through 60 (of 221 total)
DOH!
I read that article right up to the line preceeding the one with the pertinent information.
Now I must finish my coffee!
March 13, 2020 at 7:13 am
Good question! Can we expect one for proper next? 🙂
March 11, 2020 at 7:33 am
Heh... I wonder how many people actually got this question right without having to run the code?
I've been using a related technique to emulate STRING_AGG, so it wasn't that...
March 10, 2020 at 12:04 pm
Interesting, but I'd be wary of using it. In a multi-row update, the result is pretty much undefined, unless all the rows are updated to the same value. And in...
March 10, 2020 at 7:48 am
How about temptables, session context, CLR functions, etc.?
Yeah, using temp tables is absolutely a workable solution, as is session context. CLR functions probably not, unless they utilize some external...
February 28, 2020 at 3:03 pm
I doubt that using PRINT to return information is used on a regular basis. The only time I use PRINT for the purpose is for debugging a procedure I...
February 28, 2020 at 1:40 pm
From any application (via ODBC or DB-LIBRARY) you can get the text returned from PRINT. In dblibrary you should use
int msg_handler(DBPROCESS *dbproc, DBINT msgno, int msgstate, int severity,char *msgtext,...
February 28, 2020 at 1:36 pm
5
Also with PRINT and RAISERROR
By that reasoning you should also include THROW, as well as modifying data in tables (particularly temp tables created by the caller).
Personally, I...
February 28, 2020 at 9:52 am
5
Also with PRINT and RAISERROR
By that reasoning you should also include THROW, as well as modifying data in tables (particularly temp tables created by the caller).
Personally, I would not...
February 28, 2020 at 8:39 am
Unless my memory is completely shot, back in version 1.1a (yes, I'm that old / started that young) it really stood for "Database Consistency Check". That was pretty much all...
February 17, 2020 at 7:49 am
Good one!
Until I understood the framing context, I used to do the LAST_VALUE as FIRST_VALUE(.. ORDER BY [col] DESC), which works out the same, but is likely a worse approach...
February 3, 2020 at 8:36 am
Nice question, which required a fair amount of reading and calculating back and forth.
But there is a small issue with the "correct" answer: There is one zero missing in the...
January 27, 2020 at 8:52 am
Opinion noted... However, I can more easily do things with DATETIME that can only be dreamed of with DATETIME2. Even Microsoft realized their mistake but, instead of fixing it,...
January 16, 2020 at 8:07 pm
Possibly, but then again, we all know how much accountants love guesswork, right 😀
Anyway, I could easily dig up examples from the EU where the conversion rates between the EURO...
January 16, 2020 at 4:02 pm
Viewing 15 posts - 46 through 60 (of 221 total)