Viewing 15 posts - 901 through 915 (of 1,409 total)
Perhaps you can do it without the third table:
select
coalesce(june.level, july.level) as 'level'
, coalesce(june.sthdi_code, july.sthdi_code) as 'sthdi_code'
, coalesce(june.Functional_Area, july.Functional_Area) as 'Functional_Area'
, coalesce(june.Quantity, 0) as 'Qty_june'
, coalesce(july.Quantity, 0) as 'Qty_july'
, coalesce(july.Quantity, 0)...
July 18, 2013 at 12:25 am
Yes, it's possible!
But when the transaction inside the stored procedure is rolled back, it will state an error message: "Transaction count after EXECUTE indicates a mismatching number of BEGIN and...
July 18, 2013 at 12:09 am
Can you post the error message from the logging/job history?
July 17, 2013 at 11:58 pm
gurbanov.1984 (7/17/2013)
Post 295, Level 16, State 3, Procedure insyenicek11, line 31Syntax error converting character string to smalldatetime data type.
All your variables in your query are declared with a NVARCHAR datatype....
July 17, 2013 at 11:51 pm
It's not really clear what you want, but I think you can put the GROUP BY statement inside the second sub-select (and remove the "q1" alias within this GROUP BY)
July 17, 2013 at 7:17 am
You have to remove column [attendence] from the GROUP BY because you are aggregating these values with the MIN statement.
July 17, 2013 at 7:07 am
JAMMOD (7/17/2013)
- DB Differential Backup...
July 17, 2013 at 6:55 am
Homework assignment?
Just use a GROUP BY in combination with a MIN statement.
July 17, 2013 at 6:43 am
Lynn Pettis (7/17/2013)
I beg to differ with you. Full and Differential backups WILL NOT break your log chains.
I agree that it won't break your LOG chain, maybe I used...
July 17, 2013 at 6:35 am
I use this script to list all auto-growth events. It will summarize the number of times it happened and includes the oldest time and most recent time. The second select...
July 17, 2013 at 6:16 am
One more point to keep in mind: the sub-selects must only return one single row. If more rows are returned, the insert will fail. You can use the SELECT TOP...
July 17, 2013 at 6:08 am
As Koen allready pointed out, you need to use a single SELECT statement to insert the values. You also made some errors declaring he variables. Below is the working code....
July 17, 2013 at 6:05 am
There is not enough information to answer your question.
You say there are stored procedures and triggers involved. So you have allready a clue to how the data is entered. Take...
July 17, 2013 at 5:54 am
Any full backup will break the LSN chain, unless it's executed with the COPY_ONLY option. But this breaking of the LSN chain only applies to the DIFF backups. If you...
July 17, 2013 at 5:47 am
GilaMonster (7/3/2013)
Check that the database owner is set to a valid account. SA is often used.
In my experience this is most time the cause of the error. The login of...
July 17, 2013 at 4:23 am
Viewing 15 posts - 901 through 915 (of 1,409 total)