Viewing 15 posts - 691 through 705 (of 1,993 total)
other way round... almost looks like someone forgot to commit the transaction - and with those lock hints....ouch
MVDBA
November 6, 2019 at 8:48 am
i' advise scripting up your logins and users then drop them all.
create your logins first and then your users within the database.
failing that it's sp_changuserslogin.
MVDBA
November 5, 2019 at 5:33 pm
my bad... it's only when you create the publication and go to choose the distributor that it checks - but would advise (if possible) to go as high as you...
MVDBA
November 5, 2019 at 4:31 pm
yes, but your distributor always has to be the highest sql version compared to publisher and subscriber
MVDBA
November 5, 2019 at 4:06 pm
it wasn't too clear from your description what you wanted
if you want to update each row based on it's own values then
update driver set rateid= case when rateid=40 then 0...
MVDBA
November 5, 2019 at 3:41 pm
select y.id,y.name1,x.address1,y.newaddressflag,y.current address from ##temp y inner join (select distinct id,address1 from #temp where newaddressflag='Y') x on x.id=y.id
MVDBA
November 5, 2019 at 3:22 pm
right click on the server and use activity monitor - order it by the head blocker column - you should be able to see a better picture of what is...
MVDBA
November 5, 2019 at 2:36 pm
something like
select y.id,y.name1,x.address1,x.newaddressflag,y.currentaddress from ##temp y inner join (select distinct id,address1 from ##temp where newadressflag='y') as x on y.id=x.id
MVDBA
November 5, 2019 at 2:30 pm
first of all, are these functions deterministic? how many times do you use the view ? do you reference any of these functions in the where clause?
personally i've used persisted...
MVDBA
November 5, 2019 at 2:19 pm
are you running sql server express? in older versions it would throttle your speed down if you had more than 5 connections open - every extra connection halved its speed...
MVDBA
November 5, 2019 at 12:02 pm
1st step - change the schedule to 7.30pm - then if it still fails we can rule out the time issue
if it still fails we can look at other options
MVDBA
November 5, 2019 at 11:51 am
my understanding is that it is number of processors -1 up to a maximum of 8 for the number of tempdb files
initial size , you are going to have to...
MVDBA
November 5, 2019 at 11:39 am
MVDBA
November 5, 2019 at 11:33 am
the query store is a useful tool, but as soon as your proc cache changes or you reboot your server then you start losing all of the valuable information it...
MVDBA
November 5, 2019 at 11:21 am
I might be tempted to do it in 2 stages
select * from dupes inner join (select first4 from dupes group by first4 having count(*) >1) dupes2 on dupes2.first4=dupes.first4
you might have...
MVDBA
November 5, 2019 at 11:13 am
Viewing 15 posts - 691 through 705 (of 1,993 total)