Viewing 15 posts - 4,006 through 4,020 (of 5,111 total)
You're not escaping your Dynamic SQL when you get to your variable. Thus the SQL you're executing is expecting a variable @facilityID,. which you haven't declared.
Try replacing the...
April 3, 2017 at 9:28 am
So, for your first step, you could do something like this:DECLARE @FirstWD DATE;
SELECT TOP 1 @FirstWD = [Date]
FROM DimDate DD
WHERE DD.[Calendar Year] =...
April 3, 2017 at 9:01 am
What do you defined as a Business day? First weekday, or do you want to exclude public holidays (if so, are you storing details of public holidays?)? I simply the...
April 3, 2017 at 8:03 am
I still don't see any difference to your request to your original request. Does this not achieve what you want?SELECT S2.student_rollno,
marks, --Not sure...
April 3, 2017 at 7:30 am
You could try setting your bad rows to go to a different destination for now, for simplicity you could do it to a csv/text file. Then have a look at...
April 3, 2017 at 6:09 am
I might be missing something here, screenshots are not a good way to portray your data, but why not add an extra join, to your Subjects_Gradetype_junction table, and return the...
April 3, 2017 at 3:54 am
May I ask why you think a LEFT JOIN won't work for you? What's is your reasoning, have you tested?
Have a look at this simple example. Note that...
April 3, 2017 at 2:20 am
They do against all the servers.
Looks like I'll have to go through all of...
March 31, 2017 at 6:34 am
All the servers are set up to set British English (looking in Server Properties/Advanced/Default/Language).
That's...
March 31, 2017 at 6:05 am
Took back up cycling last year, really enjoy that. Now that the clocks have gone back it's light after 18:00, so I can actually cycle into and from work again,...
March 31, 2017 at 2:12 am
An after insert trigger is still all part of the same transaction, it just means that the trigger happens after the insertion, rather than before or instead of. If any...
March 30, 2017 at 7:03 am
No need for temporary tables, you can do this with a simple aggregate and CASE statement:SELECT COUNT(DISTINCT CASE WHEN T.TransactionId IS NOT NULL THEN E.EmployeeId ELSE NULL...
March 30, 2017 at 6:50 am
Viewing 15 posts - 4,006 through 4,020 (of 5,111 total)