« first day (1967 days earlier)      last day (2351 days later) » 

05:30
Morning babes
05:58
morning
user7912927
06:22
mrng
07:46
morning all
08:13
Morning all, caffeine time!
user7912927
@Shaneis how are you bro?
user7912927
haven't seen you for a while!
08:26
is there a better way to round to 1 decimal place? im currently casting to decimal(20,1)
morning...can't wait for this week to be over
replication should have a health warning
@Blake hey @blake, long time no chat (Y)
@Ricky try Merge :(
is that similar to replication?
it's a type of replication but rather than one server pushing to another, both servers try to match together
ah
sounds a bit like always on?
08:41
So many conflicts requiring massive intervention
nah I actually find Always on Easier
AG's, especially newer versions aren't so bad
merge sounds a nightmare!
yeah I liked AlwaysOn
tough to set up, but once its working its very robust
only worked with it for a few months in the last job....but the scars @Ricky, they never fade...they never leave you man!
I wake up in the night screaming
sweating
shaking
...
haha
I need more coffee
SQLPTSD
08:44
@Ricky :)
quick question when its in my head in case you have any ideas
so our set up is replicating from on prem to an azure sql instance
we initialise from backup
so take backup, restore to subscriber
initialise
the annoying part is the default server collation is different on the azure instance
so when you restore and get replication working, you have to go through and change collation
on the azure instance....which takes ages
but I can't think of any way around it, as when you initialise from a backup you have to restore over the database on the subscriber
Doesn't Azure have PowerShell now? That's the way I would do it tbh
Change collation that way
09:02
would that change collations on every object?
because currently I have automated a lot of it, but when it comes down to it you still have to drop and recreate certain indexes and keys and computed columns etc
for a 450gb db with hundreds of tables...can take some time!
morning again
You can script out every object using PowerShell, so it should be a small bit extra work to change collation
granted I've never needed to do it and I don't have an Azure testing ground but I'm optimistic it can work
hey @AndyK
sup?
09:13
@Shaneis Thanks...will look into it! We do have a testing server I could use...
@Ricky then you're around 20% of the way there I'd say ;)
powershell is great yeah
its just getting the time to get lots of use out of it
see you guys. dentist is coming
@AndyK see ya andy
@Ricky yeah I'm starting to use it more and more, I'm from a Sql Server background so not a developer
same here yeah
its great for automating daily server checks
09:31
Morning
hi @CrashBandicoot
@WhatsThePoint hey
got nothing to do again
can someone explain to me the exact difference in simple terms of coalesce and isnull? i dont fully understand what this is saying
user7912927
guys
user7912927
i did a mistake by updating the every rows of a table with the same value
user7912927
09:42
i forgot to use where condition
user7912927
now i need to bring the table to the state before executing update statement
user7912927
is there any way for it?
@WhatsThePoint to answer (hover to this message to see the pointed message of yours) this message on your own you should read your nickname. :P
@ARr0w for maintability sake which should i adopt in my code?
@Blake look into point in time recovery
@WhatsThePoint that's actually a really good explanation @WhatsThePoint
main difference is isnull is 2 values only
if this is null than the other
coalesce will keep going until it reaches a non null value or it reaches the end of the values you give it i.e. coalesce( n1, n2, ....n50...n100)
the other points are important (especially the data types thing) but that's the main thing
09:57
@Shaneis so if im only using it on one cell in one row is there any syntactical difference?
like ISNULL(columnname, 'Empty')?
yeah that's fine, no bother there
morrrrrrrrning
yeah i just have this ISNULL(AdditionalQueryHours,0) so thats why i was getting confused about the difference as i saw no difference in what i was using it for
hi @Daruchini
Hows it going
@WhatsThePoint yeah no worries, you're fine
10:15
@WhatsThePoint what do you mean by 'which' that you want to adopt in your code? what options you've got:
10:38
Hi guys. Just want to ask about DB.
In my db. Will it matter if I use LONGTEXT even though I will just insert it small string.
@VandolphReyes shouldn't do. Specifying that is just allocating a maximum length
If you know only small strings will be entered into that tables attribute, why not specify a shorter?
Thanks @Daruchini. I was just thinking maybe in the future I'm gonna require lots of strings so I want it to be prepared.
LONGTEXT has a max ~4gb I believe
10:56
if I kill a session in rollback status, it hasn't actually killed it but is in killed/rolllback
the transaction was doing alter collation on a very large table with millions of rows
I'm guessing it can't be killed as it was doing a rollback...so is it a case of waiting for this to finish?
@Ricky it has to rollback the changes
thought so
so just leave it?
and go to the pub?
yup yup, I would check to see if it's not blocking anyone
but mainly it's a case of waiting now
yep
in activity monitor, wait type is I/O
IO_COMPLETION *
suggests it is doing stuff still ?
@Ricky IO is normally disk tasks, pages from disk into memory, etc
11:05
Pinal Dave also says have patience....
so I guess I'll have patience then haha
@Ricky you have the ability to install sp_whoisactive
is that different from sp_who2?
11:56
hahaha yes, check it out
thank me later
12:38
bck
see ya
12:51
@Shaneis its sql2012, does it have it?
13:14
:-)
Just checking something else - we have an error in replication in regards to collations, so it is retrying the commands, then giving an error. Do you know if that holds replication up for everything else or will it continue to replicate other tables in the subscription?
13:36
don't know, I think it holds things up though
you may want to check but think repl broke for us until we got rid of buggy commands before
13:48
Afternoon
14:28
hey guys
I need css in sql
RETURN case when @diff > 3 then ' red color ' else 'green color' end + right('00' + cast(@diff as varchar(4)), 2)
how can i make sure that the 'red color '
is red
right('00' + cast(@diff as varchar(4)), 2) this must be red or green
14:48
nvm
i made a div
with style
;)
15:19
Glad to help.

« first day (1967 days earlier)      last day (2351 days later) »