« first day (1742 days earlier)      last day (3425 days later) » 

01:04
@Phil i replied
 
4 hours later…
05:23
@billinkc I can understand how a column name like EmployeeDataXML can be helpful in a query as an indication of the column type, but in the generated XML a tag with XML in the name looks funny.
 
2 hours later…
07:06
Good having an Oracle employee on here
08:05
Morning
morning
@Phil Only 7 answers in 4 years, but 6 of them this year – hopefully that's an indication of his getting more interested in answering
09:05
morning
Hi @ JamesZ thanks for reply, i am using Godday and it difficult to do as you mention at least i may don't have that experiences, but if it can be as a text then it can be easier one time before i do it but i couldn't remember how it was it just few click by mouse into ms sql — Alfred yesterday
really?
09:35
@dezso Curiously, the question's score is -1 on SO but 0 here.
 
2 hours later…
11:12
Heh, my stolen joke has 18 pins now :D
Hello. I've heard that SSMS was about to be separate part from SQL server. but I heard from a colleague that they don't do it at the end and it will keep be a part of MSSQL server installation. Is it true ?
11:49
If anyone is awake, the first 3 questions on the site need nuking
No ORDER BY clause?
"Newest"
@Phil my order looks different than what I think you think of
@RoyiNamir SSMS will have it's own upgrade path independent of the core SQL Server Engine
12:08
Interesting, Oracle are going to announce "sharding" is coming to Oracle 12c
I guess that is to keep up with the in-pants technology from their billing department
JNK
JNK
morning
12:26
morning
13:08
@Marian you had "active", not "newest".
13:25
@ypercube ah, operator error, sorry! :)
 
2 hours later…
14:59
iPhone 6s will be here tomorrow \o/
15:15
In Oracle i can do: with data as (select 'foo' from dual union all select 'bar' from dual ) select * from data -- how do i do that in SQL Server?
Basically I have a list of strings i want as a list in memory
SELECT * FROM (SELECT 'foo' UNION ALL SELECT 'bar') AS Data(col1)
So, the same then just about. Cheers
@billinkc High five
SELECT * FROM (VALUES ('foo'), ('bar')) AS Data(col1)
I believe bluefeet favors the VALUES approach but it's just syntactic sugar
@Phil high five
And for the record, the WITH syntax will work as well after removing the from dual. The VALUES syntax is just more concise. Would have been great if WITH data AS (VALUES ...) SELECT * FROM data worked, but alas, it doesn't.
15:31
I used this, and it works ok: `


with data as (
select * from ( values
('FOO') ) as data(foo))
select * from data;

`
15:49
Looks like it's time for SQL Sentry to close up shop
I'm PowerShelling today. Running with Laerte's script to dump Event log data to a table simple-talk.com/blogs/2011/08/31/…
If I have Get-EventLog -LogName Security -Newest 10 | select index,TimeGenerated,EntryType,Source,InstanceID is there a way to add in some static values there?
Get-EventLog -LogName Security -Newest 10 | select "Security", index,TimeGenerated,EntryType,Source,InstanceID
orrr I didn't read far enough
Get-EventLog -LogName Security -Newest 10 | select @{Expression={"Security" };Label ="LogName"},index
16:14
@MikeFal thanks.
@AaronBertrand isn't there some kind of SQL Sentry Webinar coming up?
16:56
I have a PS script I'll be running from SQL Agent. It requires functions defined in a second set of scripts. Is there a well known place one installs PS scripts so you can reference/use them without having to do the explicit path import thing?
Seen blogs.technet.com/b/heyscriptingguy/archive/2010/08/10/… but didn't quite get to what I was hoping to see
JNK
JNK
@billinkc yes you can use PSModulePath environment variable
if you wanna import it as a module
otherwise Path env. variable
if it's me though and it's gonna get run from SQL Server I would pick a set path on the machine like c:\PSScripts and you can make sure it's on all the servers for DR purposes
then you use that path in the script
17:12
@JNK Ah, yes, that helps me at least figure out what the default search space would be. Challenge is this would be something we're delivering to clients so I think working within the existing PS locations would be easier.
I suppose I could just cheat and make a monolithic script too
JNK
JNK
@billinkc Does the thing being run from SQL Agent use pasted posh code or execute a file?
I think a monolithic script makes more sense if it's for a customer since you don't have to worry about versioning...
if a new version of the agent job is created it may need functions not in the client's version of the library script
Yeah, it's just a bunch of PS functions to rip out data from windows event log and store to a table.
JNK
JNK
ah ok
then yeah if it's all the same I would put it all in there. You could also store it in a database table and run that code as powershell :)
&*()#@!(U*DHN#NXO#HXO NJ
i've gotta be honest. i'm frustrated
JNK
JNK
@swasheck wassa matta
17:19
Perfect is the enemy of good enough
@JNK user group stuff. i hate coordinating it and wish i hadnt signed up
JNK
JNK
@swasheck herding cats?
something like that. between that and the fact that i'm only half-human this year, it's making for an awful experience for the UG
Hi @COTW
18:01
Any of you considering doing SQL Sat Chicago?
It's always a consideration for me
Because I'm pretty positive that I'm going to submit. I took the feedback from KC and have made my presentation infinately more kick ass.
18:41
I regret getting involved in this
3
A: Backing up & restoring 10-20 SQL Server dbs to a ~synchronous state?

Tom VIf you are running full backups as well as transaction log backups (and you should if you consider this data important) you could just copy over the backups and transaction log backups to the test system and perform a point in time restore to restore the databases to +- the same time. Depending ...

my solution is messy and Kin's would be better, but the requirements keep changing and magic is expected
19:12
@billinkc Well if you do let me know. Maybe we can carpool to events.
19:39
@Zane Ping me a day before the call for speakers closes ;)
anyone have experience with FusionIO failure?
@swasheck Never had experience with anythign that spensive.
@swasheck I only have experience with an insanely rich customer but it's for tempdb and buffer pool extensions and we didn't run into failure (yet) so no
@TomV nice. ours is DW workloads so BPE doesnt get us much (theoretically speaking, of course)
I'd hate to see what would happen if it fails and the cluster moves over to slower hardware though
19:57
Is @bluefeet around?
@swasheck it does work great for that workload but I'm not even sure it's worth the cost
but if you got money to burn you might as well buy EMC :)
KB us in tempdb by this query 202,644,288
.......
@Zane is this english?
@TomV we have Pure SAN with mirrored FusionIO for tempdb and Dimensions
@swasheck So you are in SSAS territory?
@TomV we were a few years ago. the dev team didnt have appetite for it so we stopped suggesting it. now we just laugh when "the database is slow."
20:10
the typical select distinct querys for dimensions in SSAS dimension processing tend to generate a lot of IO in my expercience
If anyone has a few PowerShell cycles to spare gist.github.com/billinkc/0a79e26b35ec88b0a02b
If I use the original table definition (pointed at tempdb for an instances called localhost\dev2014) it works fine. I can see the ServerName column in my datatable yet when it writes to the table, it blows chunks
@TomV yeah ... but we're not using SSAS. we're using Cognos which is infinitely worse
@swasheck some indexes supporting the distinct query might help on your DWH, otherwise memory or fast disks could stretch the issue a bit
@swasheck I don't agree cognos is worse from a user perspective actually, it's actually quite powerful
@swasheck us = used
@TomV that's fine. it's a large gun that the BAs use to blow our feet off. clickanddrag clickanddrag ... no training needed! why is the database so slow??
20:15
@swasheck aha there you have it, but I run in the same issue with 'simple' christal reports
pointy clicky withouth basic knowledge is sorta evil
the number of cartesian products that they generate is staggering
Motherfffff
Sup @zane
@swasheck you just can't trust BA's to run their own queries
@TomV ah. but corporate politics say that we must :).
so in a roundabout way, politics allow me to keep drawing a paycheck for doing the exact same thing. it's become habitual enough that i'm able to do the habit while learning new things on the side :)
20:19
@swasheck pull an excel file (they like that) showing them their own queries are the most heavy and they'll listen in my exprerience
@bluefeet wanted to talk finals with someone. Game 5!
"queries by IO" and "queries by cpu" oh lookie its all your crap shuts them up usually
i appreciate your optimism :)
@swasheck estimated rows for said query 2,476,810,000,000
Joining to 40 Million row tables with no join predicate......
Amazing.
@swasheck I had a few cards fail suddenly but they were replaced quickly and not had an issue since. Bad batch of hardware I think. Was three years ago as well.
20:23
@swasheck it's not optimism, it's an air of "i'm not giving a fuck, you are the one breaking it"
it takes a while to get into into it but you tend to get a habit of bringing it in a way they understand
right. i hear what you're saying --- it's just not a reality in my environment ;)
it's never the BA/developer's fault.
them and their managers more importantly
regardless of the evidence presented
@swasheck needs more CC
So we have an ad hoc database in prod(that I hate). Where the users can pretty much do whatever they want.
Well a bad query just nearly attempted to create a 2 trillion row table in said database.
20:29
I haven't watched one game this entire season. @Zane
If I had not caught this it could have been catastrophic. Reall hoping this gives me the ammo the lock down our environment.
@bluefeet Gotcha.
JNK
JNK
@Zane gotta set a max size on that thing, man
@swasheck I'm out but it seems more of a communication/managemnt issue than it is a technical issue
@TomV it absolutely is
@swasheck then find a way to have the managers handle it, they don't get paid more than you are to ignore it, and if they do leave the place
20:35
@JNK Got to do a lot of things.
But yeah this could have been bad. I've got my work cut out for me.
@AaronBertrand I found it earlier and registered for it.
@swasheck there is a fine line between you not finding the way and them not handling it, but they should be doing their job i guess
Sentry saved my ass on this user query. Spoted in in TOP SQL and killed before it could do any damage.
anyways, euro timezone so I'm out
JNK
JNK
20:49
@AaronBertrand how do your remote DBA services work? Not seeing much info on the website
21:07
@swasheck None of the Fusion-io cards at my current gig (purchased 2013+) have failed. Lots at my previous gig (purchased around 2010 I think) did according to the datacenter engineering group.
WHy?
For what it's worth the performance difference between Pure and Fusion-io hasn't been huge. We get lower latency out of the Fusion-io cards until we top out on throughput, but the latency difference might not be big enough to matter.
Of course we probably have them installed in the wrong PCI slot and smart stuff like that.
21:24
@JamesLupolt just disaster planning. our pure numbers are generally better for everything except large, sequential reads (as expected). consultant said to put tempdb on fusionio and so we did, in spite of my evidence pointing to the contrary.
what do i know ... i'm just a mid-level dba
Oh. Was the consultant from sqlskills?
Oh. Good I guess. I remember you were working with them (I think??).
nope. never. house of brick
OK. Well I'm going to watch Homeland and fall asleep. Have fun planning your disaster.
21:36
@JamesLupolt thanks. enjoy homeland, i guess
I will. It's terrible.

« first day (1742 days earlier)      last day (3425 days later) »