Viewing 15 posts - 136 through 150 (of 299 total)
If you want to be stricter on what should be interpreted as numeric (and are using 2012 or later), you could change the WHERE clause to
where try_cast(TPN...
July 3, 2019 at 12:33 pm
My two favourites were both from COBOL programs many years ago.
June 5, 2019 at 1:47 pm
I mostly use PRINT and temp tables. One other thing I do in all multi-step stored procedures is to declare a variable called @ErrorLocation that is incremented before each step....
May 28, 2019 at 12:36 pm
If GP does all its writes via stored procedures, you can deny write to his login and grant execute to the stored procedures.
May 22, 2019 at 1:05 pm
The thing that disheartened me the most about the Sarbanes-Oxley act was that the very same companies that caused the crisis (eg. Enron's auditors) were able to make vast sums...
May 14, 2019 at 11:36 am
One advantage of casting 1 and 0 to bit is that some UIs will default to displaying these as True/False or ticked/unticked without any special coding.
April 24, 2019 at 1:43 pm
There's a good reason most TV programmes are around the 50-55 minute mark (even on the BBC which doesn't stop for adverts every few minutes) - that's probably the length...
March 15, 2019 at 9:13 am
March 5, 2019 at 6:18 am
One change I made yesterday...
February 12, 2019 at 9:32 am
Thanks all. I have some things to try once I have write access to a development copy of the database.
February 11, 2019 at 8:57 am
Is it possible that LGTC_ShipmentsClaims is empty (or at least contains no matching rows) at the time your stored procedure is run?
February 11, 2019 at 7:06 am
Here's the next key table.create table SEQ_SYSTEMKEY
(LASTKEY int null) on [PRIMARY];
and here's the current stored procedure.create procedure nextSID
as
...
February 11, 2019 at 1:34 am
The code in the sproc just does an update of column Last_Key on the one row in that table and returns the new value. That's not a real sequence is...
February 8, 2019 at 9:16 am
Viewing 15 posts - 136 through 150 (of 299 total)