Viewing 15 posts - 1,561 through 1,575 (of 2,701 total)
your expected output does not match the code you supplied - so please be very very clear on exactly what are the rules for what you intend in getting as...
May 4, 2020 at 5:42 pm
add these 2 lines to your code so you can see what you are doing wrong - and then you should know how to fix it
,LAG(visit_date_01, 1, visit_date_01) OVER (PARTITION...
May 4, 2020 at 3:49 pm
based on your expected I would suggest you change the default value from getdate() to visit_date_01
and add visit_date_01 to the order by (instead of EMID as that is already on...
May 4, 2020 at 3:12 pm
what exactly are you trying to do?
Is it a one time conversion or a view that will be available for querying on the fly going forward?
and do you have sample...
May 4, 2020 at 1:49 pm
you out of luck really. For SQL the tools that do "code analysis" are basically looking to see if it uses constructs that should be replaced with something else, and...
May 4, 2020 at 8:56 am
OP using SQL 2014 - m0st likely syntax used won't work
May 3, 2020 at 6:02 pm
Frederico,
on the other post you suggested my code would actually FAIL "if you are one of those that puts comments BEFORE the create procedure command"
So now you are...
May 1, 2020 at 10:00 pm
yes... but....
DO NOT restore directly from prod to any other environment. where you do need to have production data always setup a process on another server (restricted, to be treated...
May 1, 2020 at 8:06 pm
it is a matter of opinion.
on my own opinion I enforce them to be after the create.
one of the reasons is that if I ever need to do a automated...
May 1, 2020 at 7:52 pm
It's not like I can just install Visual Studio on the server that is hosting the databases without discussing with higher ups. Additionally I believe this requires a coding...
May 1, 2020 at 5:41 pm
why don't you do what I said and install Visual Studio (SSDT) - you can then generate a VS solution/project with all objects on your database, do the global replace...
May 1, 2020 at 3:18 pm
you can't blindly replace all "create" by an "alter".
Replace ((REPLACE(definition,'subscriptonguid','subscriptionguid')),'ALTER','create')
you need to replace the above bit of code with
May 1, 2020 at 7:01 am
yes until you do the REVERT you are not a sysadmin as you are the OTHER user
have a look at the examples I gave here - it is very clear...
May 1, 2020 at 6:50 am
as per my previous examples you need to REVERT the execute once you are finished with the impersonation.
and you never told us that your login was a AD group -...
April 30, 2020 at 6:28 am
Viewing 15 posts - 1,561 through 1,575 (of 2,701 total)