« first day (1666 days earlier)      last day (2652 days later) » 

08:15
Hi i need answer of this question
-1
Q: pass a string of greek character in mysql stored procedure?

AsadI have table with column name varchar(50). I can easily set greek characters in insert query like this: insert into student set name='ΧΡΙΣΤΟΣ ΑΒΕΡΚΙΟΥ'; But when I pass this greek character string to mysql stored procedure through in parameters it gives me this error: call new_procedure('...

 
1 hour later…
09:32
Morning guys
 
2 hours later…
11:02
morning
morning @AndyK
War
War
11:18
sup SQL pro's
@War Chief Rubber Duck, sir!
War
War
11:34
and Microsoft strikes again
"look at all this async niceness ... except in MVC!"
wtf Microsoft!
Yay! MS ftw!!
@War
quick question
let's say our web provider left us without any service for almost a month
then resurfaced with some kind of backup
for the website
how can we prove factually the website was gone
?
What I mean by service is they probably deleted the website
War
War
hmmm
That's a tough one
I'm guessing you don't have any monitoring solution that confirms if the site is up or not?
nope
we did not have
War
War
My obvious answer to that is simply "show them the logs from your monitoring solution"., without that however it's a tough one ...
11:46
shit
War
War
Are they saying the site was still up during the time?
what about the support calls logged with them?
are they not an audit trail of unanswered questions?
stuff like "where's our fucking site gone?" in a support request is a pretty big indicator
and legally anyhting like that under contract they can't just delete so you could their own audit trails against them
is the new server on a different IP?
it seems to be on the same server
War
War
hmmm
let's start from the beginning
we made a support call almost 3 weeks ago
asking for some way to access our shared space
no news
then last week I made a change
on the DNS
we found out that
we could not connect anymore to our shared space
the user credentials could not be used
anymore
War
War
did you try accessing it by IP?
dns is just a name for the IP
regardless of your DNS fuckup if the service was not up they failed in the SLA requirements
what that means exactly is dependent on contract terms
11:52
we tried with the IP and we ended up on that shit
War
War
as a service provider they have meet the contract requirements if they meet everything in the contract and nothing more
@AndyK so they actually fucked up (looking at that)
and you have a support call that goes back 3 weeks
you should also have a confirmation of it being back up somewhere
so you can prove the time the system was unavailable
that's your audit trail basically ... business email in the EU is considered a form of official paperwork (for the most part)
so any contact between your company and theirs is audit trail worthy (of sorts)
there are some gotchas but the emails do at least prove you were in that situation for however long, because of something they did
wow tasks are fun in .Net
messes your head up something crazy this
hey mates can you give a small tip
in a report where are used several joins, what is better way to do
War
War
that is the best way
either that or denormalise the data before the report runs
12:09
both will give same performance or
group by will cause performance loss?
select
SUM
Count
from
join
group by
or
Select
(select count)
from
 
3 hours later…
War
War
15:36
I'm just gonna leave this here ...
0
Q: EF Proxies and complex data structures

WarThe Problem Domain Say I have an entity that looks something like this ... public class HierarchyObject { [Key] public int Id { get; set; } [ForeignKey("Parent")] public int ParentId { get; set; } public virtual HierarchyObject Parent { get; set; } public virtual ICollection<H...

@War ...yes...
War
War
well that's helpful !
I'm waiting for the rubber duck magic to kick in...
War
War
I think i'm just going to have to build a recursive function or something
16:21
I'm off guys
see you next Tuesday
War
War
what did you just call me?
17:07
im really stuck on this problem.
I have the following:

User has many comments
Post has many comments
Post belongs to a User

I want to : list Posts and order them by:
posts user hasn't commented on
posts that user created
posts user has commented on and the comment status is approved
posts user has commented on and the comment status is anything else

any idea what an efficient SQL query would look for this?
War
War
17:21
list all posts or all posts for this user?
does the answer need to be SQL or is this something you could use say ... LINQ for ?
is it possible in just plain sql?
i thought about doing something like:
first, build a temporary table:
post_id, user_id, has_comment, status
from there, i thought about a trick:
select *, (if !has_comment then 1; if has_comment && status==‘whatever’ then 2; else 3) as rank from (table above) order rank asc
War
War
17:35
you can set multiple sort orders but you'll probably have to compute values on some of that to use in the query ... probably need a temp table for it as you say
yea thanks @War
:)
War
War
that said ... i am by no means an expert ... I tend to stay in C# world and have LINQ do all my SQL work for me
it's a shame @AndyK is not here as he's pretty good with this stuff, perhaps try someone in the heap?

 The Heap™ – Consultancy ©®

General on- and off-site discussion for dba.stackexchange.com....
Those guys usually won't say a lot but if you post a link to your question in there they often have a think then blitz it with some detailed replies
:)

« first day (1666 days earlier)      last day (2652 days later) »