Viewing 15 posts - 16 through 30 (of 113 total)
I never even considered using a CTE for an insert..... interesting.
June 17, 2014 at 1:24 am
So just to clarify - the insert into the audit table is perfect. It has the correct information. The raiserror has the nulls.
May 29, 2014 at 7:06 am
CREATE TABLE [dbo].[Audit_Errors](
[AuditLogErrorsID] [int] IDENTITY(1,1) NOT NULL,
[ErrorTime] [datetime] NULL,
[JobID] [int] NULL,
[JobStepID] [int] NULL,
[StepDescription] [varchar](250) NULL,
[ErrorNumber] [int] NULL,
[ErrorSeverity] [int] NULL,
[ErrorState] [int] NULL,
[ErrorProcedure] [nvarchar](200) NULL,
[ErrorLine] [int] NULL,
[ErrorMessage] [nvarchar](4000) NULL,
CONSTRAINT [PK_Audit_Errors] PRIMARY...
May 29, 2014 at 7:05 am
Hi,
Sorry i am a little confused. What primary key? The table insert is fine.... its the raiserror that is showing nulls.
Sorry if i was unclear.
Dan
May 29, 2014 at 4:53 am
Eirikur Eiriksson (5/16/2014)
Is there any error handling in SP_LogProc?😎
Nope :crazy:
Thanks anyway.
May 16, 2014 at 4:52 am
Amongst quite a few other additions that will be the plan.
What I am trying to understand is why what has happened, happened? It just seems a little odd...
May 16, 2014 at 4:29 am
Yes, but that just gives you details of the jobs and the steps the job should take. How to then make it know that 5 steps that were run...
May 12, 2014 at 6:20 am
Hi,
To answer your question - the tables will all be identical, just with different procedures within.
I have done dynamic SQL before with sp_executesql however i cant work out the way...
May 8, 2014 at 4:37 am
Stuart Davies (4/25/2014)
Koen Verbeeck (4/25/2014)
3% reckon it can't be changed - worrying
Not really. As there are people who frequent this site who are not a DBA and never...
April 25, 2014 at 9:15 am
mkeustermans (4/1/2014)
Since king_login has default schema of king_schema and has been assigend the db_owner role and no other, the table will be created as king_schema.wonders.Points back please.
I think...
April 1, 2014 at 3:43 am
Maybe the answer is nothing happens because the server isnt a server, but is infact a piece of cheese.
Very strange answer....
April 1, 2014 at 3:25 am
Am I the only one who thinks that is the expected behaviour?
With default SQL settings...
You cant ask if something = null and expect to get the correct answer. So...
March 27, 2014 at 2:43 am
Hi,
Thanks for the message. I did understand Gail - perhaps my response wasnt clear. Yes other entries may have non numericals.
That is why i tried putting a case...
February 28, 2014 at 7:11 am
Hi Gail,
There will be non numerics (i have simplified the query a little).
I have tried this:
select
a.Id,
cast(
CASE WHEN A.Team = 'Team1' then
isnull(B.answer,0) else 0 end as numeric(32,2))
from
tableA A
INNER JOIN
TableB...
February 28, 2014 at 6:07 am
GilaMonster (2/28/2014)
February 28, 2014 at 3:31 am
Viewing 15 posts - 16 through 30 (of 113 total)