Viewing 15 posts - 76 through 90 (of 668 total)
If it is a table variable being passed in, then it is a User Defined Table Type. In SSMS, open Programmability then Types under the particular database
October 5, 2020 at 2:36 pm
Phil,
that's brilliant even though it feels dirty 😉
October 1, 2020 at 7:55 pm
those are just ways to categorize the jobs, but a proc is T-SQL
September 29, 2020 at 4:03 pm
SQL Agent should be pretty straight forward. In the schedules section you can select the interval to run it in
September 29, 2020 at 2:16 pm
Sameer,
the difference between yours and Steve's is that the output statement will give you the IDs you updated. The one you wrote could possibly return more records on the second...
September 29, 2020 at 12:07 pm
Sameer,
if you post some DDL and sample data, it would be easier to show you in a query. The simple answer is yes, you can avoid a cursor by joining...
September 28, 2020 at 8:18 pm
Your statement looks right, but if it multiplies by 0, then it will always be 0. So why not something a little cleaner
Sum(CASE WHEN P.gm_cd in (1105, 2123, 2124, 2150, 2152,...
August 20, 2020 at 2:08 pm
Yes, open solution in VSTS2017. Then go to Project.Properties. In project Settings, you can change target platform. You'll probably have to open the script tasks and rebuild them, but it...
August 19, 2020 at 3:27 pm
THROW 52000, 'Here''s a Bubbler', 1;
Phil, In MA we call that a Bubbla
August 5, 2020 at 4:11 pm
August 5, 2020 at 3:27 pm
Begin try
select 1/1
begin try
select 1/0
end try
begin catch
;Throw 51000, 'inner catch', 127
end catch
end try
begin catch
;Throw 51000, 'outer catch', 127
end catch
August 5, 2020 at 3:18 pm
I thought SQLNCLI was for SQL Server not MySQL? Have you checked you connection strings?
https://www.connectionstrings.com/mysql/
July 31, 2020 at 3:38 pm
How many clients are you talking about? it could get unwieldy pretty quickly. Why did the multi-tenant db not work?
July 27, 2020 at 1:41 pm
you are hitting application.dbo.claims_log_v2 alot in this query. Looks like everything is using a join on claim_number. Can you put that hit into a cte, then join to it? Something...
July 20, 2020 at 6:30 pm
How often does the data get modified? Wondering if you could materialize the view and then update when the data is updated
July 17, 2020 at 3:12 pm
Viewing 15 posts - 76 through 90 (of 668 total)