« first day (1387 days earlier)      last day (3484 days later) » 

3:33 AM
This guy does not seam convinced. Should we move to DBA to see if someone here can make a more acceptable answer?
3
Q: SQL Server 2012 row_number ASC DESC performance

DBOIn a SQL Server 2012 version 11.0.5058 I've a query like this SELECT TOP 30 row_number() OVER (ORDER BY SequentialNumber ASC) AS [row_number], o.Oid, StopAzioni FROM tmpTestPerf O INNER JOIN Stati s on O.Stato = s.Oid WHERE StopAzioni = 0 When I use ORDER BY Sequenti...

 
 
8 hours later…
@AndriyM Pity, my hammer works for , not questions.
 
@ypercube Same here
 
done @ypercube and @AndriyM
 
12:16 PM
Do you really have a table with more than 64 indexes? With 64 foreign keys to other tables? Can you explain, with an example, what does the "one table represents a datatype, which might be used by 100 other entities" mean? — ypercube 3 mins ago
I'm guessing an EAV structure.
 
12:47 PM
Hello, I'm having a problem, when I use SSMS 2012 to select 1 record in a table with 10 million records from my computer outside the server network that kill the whole server, instead if I run the query in a remote desktop in a computer inside the server network, it runs good without any problem. Do you know why this happen?
 
@EmilioGort What is your query? A simple select top (1) ... or something more complicated?
 
JNK
@EmilioGort you're using a select statement?
 
here we go.. million questions
 
select columns1,..columns10 form table where id =123
 
And does it really kill the server or the SSSMS in your machine?
 
12:49 PM
no the ssms, the sql server
if I run that form my computer, via internet
 
How do you know the server is "killed"? and what that means?
 
if I run in the remote desktop in a computer inside the same network as the server it runs fine
yesterday the IT guy look into their software and the server has the latency over the 1000 ms
when I ran that query
 
1:27 PM
@EmilioGort Would you be able to connect to the server remotely, then run the query from your computer across the Internet and observe the server's behaviour in the remote session?
 
 
1 hour later…
2:30 PM
0
Q: Conditional Upload with Case

Reznor13After doing a data migration from an old system, I came across a situation where there are records without dates. The example I give above is the situation I have. I have nowhere to get the data from those NULL. So what is logically set to: Get the Minor date within that range (00013 or 0...

Is it really valid syntax to to UPDATE MyTable T I thought you could only alias in the FROM (and yes, it's rhetorical as I'm writing up a demo to answer my own question)
 
JNK
no it's not
You can UPDATE T...FROM Table as T
both those answers have invalid syntax
 
The whole question is tainted with fail
 
JNK
I don't look at SO much anymore
it's too depressing
 
@billinkc: No? This is standard SQL except for LEFT which is a T-SQL word. So what does it make invalid? — Thorsten Kettner 2 mins ago
 
3:00 PM
"Hey, is there a tool that will perform a complex point-in-time restore with partitions, multiple filegroups, and filestream, by clicking a button?"
^ serious question from an MVP
 
It's just restores, how hard can it be?
 
@AaronBertrand why clicking a button at all then?
 
JNK
@AaronBertrand They need a Delorean
get that thing up to 88 and you're good
 
@Lamak well they only want to restore when disaster happens. But they need it to be fully automatic. I guess they don't understand what DBAs and consultants get paid for.
 
yup, seems like it
 
3:12 PM
Thank you @AndriyM
 
@billinkc Couldn't help it.
 
Appreciated. I clearly wasn't thinking about that as a solution
 
Tried to preserve the style but of course only you can know for sure.
 
You did, that was the amazing part!
Hmmm, won't that need an ORDER BY though?
(testing)
Huh, many new lessons for me today
 
@billinkc It's an equivalent of the first solution, so no. An ORDER BY could give you different minimums for different rows.
Depending on what to sort by, of course
 
3:17 PM
Ahhh, it's the windowing functions that must have ORDER BY. Need more tea, clearly
If you were at the PASS Summit, I'd buy you a beer.
I wonder if @ConcernedOfTunbridgeWells has any insight into fingerprints. Piss poor question but could be something fun to implement
0
Q: C# finger print 1 to 1 Comparison (39 GB Data ) reduction of time cost

Micky C002I have a mssql db of having min 39gb of finger print data , now required to find out the duplicates within it , each finger print record has a minimal (reduced here) structure as follows [EMP ID] [finger print IMAGE] [finger print TEMPLATE (ISO)] I’m using (1 to 1 Comparison ) a C# ...

 
3:41 PM
@billinkc Am I right in thinking that OP wants to de-duplicate a file of fingerprint images?
 
I think so and the alg is in that pdf they linked
 
3:52 PM
@billinkc I presume the computational complexity of the algorithm is a given, so the only option would be to apply brute force, in which case Hadoop might be an option.
 
 
1 hour later…
5:20 PM
@billinkc Where did you remember REXX?
 
I read up on it once when I thought I was going to do more IBM based work
 
@billinkc We had a series 360 in the university, where we could play with REXX
 
I wonder if I could sneak some ram into this damn laptop and get it to run faster.
 
5:36 PM
@Zane you can put a "WITH(NOLOCK)" sticker to it and it would be more performant for sure
 
Yeah.
 
So, this guy needs a computed columns, that need data from other tables and it also needs to execute dynamic SQL
0
Q: Computed column with a user-defined function with dynamic SQL

Bruno LiguttiI need to add a computed column to a table. The value is computed from columns in other tables, so I need to use a user-defined function. The issue is that I need to execute dynamic SQL inside my function, but this is not allowed. What are my options in this scenario? Thank you.

 
Went to a concert at First Ave last night and was very very annoyed to see that the Machine that I have for 3 years held the Galaga high score was out of service.
What if my score is lost forever?!
 
JNK
@Zane You can now become a grown-up.
 
@JNK Nooooooooooo!
@Lamak he might have well just asked how to eat his own head.
The only response I can give is why?
 
5:49 PM
@Zane yeah, it sounds as if he doesn't really understand when to use a computed column
 
6:08 PM
Someone has been seriously upvoting me at SO. I got like +120 today, while the usual is around 10-30.
 
Is that a call to Heap arms? Release the DV countermeasures
 
@ypercube #firstworldproblems
 
6:47 PM
talk about a help vampire
@AnthonyParker Jeez dude, please try to do a little debugging by yourself too — Lamak 5 mins ago
 
 
1 hour later…
8:02 PM
Yikes. I'm officially losing chrome, plan explorer, textcrawler, notepad ++, and just about every other piece of useful software I have.
 
@Zane wait, wait, wait....why would they take away plan explorer??
 
Non wells fargo approved tools must die.
 
that's just stupid
 
A lot of things are stupid.
 
yeah, maybe....but it's fun to point them out
 
8:08 PM
I'm going to have some serious discussion with @mmarie about an opportunity switching gigs and moving down south.
 
best of lucks on the serious discussion
 
@Zane Your interest is in BI consulting?
 
Pretty much.
 
Let me know if you have any interest in Denver as a location. I know a local consulting company that is pretty solid and is looking for good people.
I'll let @mmarie have first crack at you, of course. :)
 
I could get a gig in consulting that would push my career forward faster than I could go in 5 years of corporate America.
Anyone know how to get excel to export to the same data type the column was in SSRS?
 
8:25 PM
@Zane I think that is with the format of the data in the report itself.
 
8:56 PM
I don't know. Some Co-worker was asking about it.
 
9:36 PM
@AaronBertrand not sure where you've been but this is fucking awesome. sqlperformance.com/2014/10/sql-performance/…
 
Hi
 
Yo.
 
What's up Zane
 
Very little.
 
Anyone know if Ozar's newsletter had some link about the hardware config used for TPC tests on SQL Server?
Someone told me about something today, but it seems I accidentally unsubscribed at some point
The newsletter this week, I mean
 
9:51 PM
No clue.
 
where you can download a 170-page pdf
 
@ypercube hot damn.
 
@ypercube Can you print out a few copies for me?
Just joking.
 
I can forward the newsletter, if you tell me your email
 
It's OK : )
I got the link, so thanks for that
 
10:14 PM
@ypercube yeah, and Brent advises that the craziness starts at page 173 :)
 
10:45 PM
Yo. What's occurring?
 
Yo
 
11:04 PM
@Marian The stuff about setting CPU affinity (to up to 256 processors?) for SQL Server, and enabling soft NUMA, with no explanation as to why you would want to do this, does seem crazy.
I suspect it's not a coincidence that SAP is involved. SAP seems to have weird database tuning advice in general.
 
@James a bit strange, yes - also run as a process, not as a service, disable perf counters,.. and other crazy settings
 
@Phil The sobriety in this chat room is to damn high!
 
Yeah, "For virtualized setups, leave SQL Server to run as a service with the Manual startup type as
follows"
 
@James aye, and disable the ghost removal, oh my.. but you need to schedule it yourself, after the test? :)
 
@Marian Hmm, I guess then it's like running vacuumdb in postgres?
I can see that maybe making sense for some atypical workloads, or if you want artificially inflated numbers for some vendor TPC marketing contest
 
11:11 PM
@James only half of it, just a system thread that actually frees the spaces used by "removed" records.
vacuumdb is a bit smarter, from what I've read, but didn't work with it
 

« first day (1387 days earlier)      last day (3484 days later) »