« first day (1743 days earlier)      last day (3424 days later) » 

01:15
@swasheck Really? When DK was leaving them, he said they were shifting from support for both SQL Server and Oracle to Oracle exclusively. Maybe the pendulum has swung back
01:35
DK? DKNY all up in my eye. You gotta Prada bag with a lotta stuff in it
 
2 hours later…
03:24
Klee
 
3 hours later…
06:47
Morning
 
1 hour later…
08:11
morning
08:40
whenever I see queries generated by EF, blah ...
0
Q: Fastest way for return rows count with where clause

nørdicI have big log4net database table with this structure. CREATE TABLE [dbo].[Log] ( [Id] [INT] IDENTITY(1,1) NOT NULL, [Date] [DATETIME] NOT NULL, [Thread] [VARCHAR](255) NOT NULL, [Level] [VARCHAR](50) NOT NULL, [Logger] [VARCHAR](255) NOT NULL, [Application] [VARCHAR]...

 
2 hours later…
10:12
@swasheck this is, in its usefulness, next to the BS-generators
you cannot really tell people they are wrong without being impolite
well, maybe, @jackdouglas can
at the same time, 'May I ask if dafuq?' is considered polite
or: 'good morning, dafuq?' is 22 points more polite than 'hey, how are you?'
 
2 hours later…
12:27
What version of Oracle? What have you tried? Do you get an error? — Phil Sumner 13 mins ago
I am using version 4.0.0.13 — user2305138 2 mins ago
;)
12:37
haha
I think that's the SQL Developer version number
JNK
JNK
12:52
mornin
13:14
@JamesLupolt yes, you were right
13:37
0
Q: I want to create a database for a soccer tournament?

missrammsteinit takes time , Field, results and scoring. what is the best to make it . I do it with firebird but I need a good attitude. Who can help me?

13:58
@srutzky man that was a long weekend. I think your idea of a non-persisted column with an index is certainly a good option.
@MaxVernon Thanks. I was inspired by your idea of the indexed view :). The np computed column with nc index seems like a natural fit that doesn't require converting on the fly but still simply fits into the OP's query. And long weekend? I have been sick for 5 days now and missed giving a SQL Saturday presentation, but still had to help with my daughter's 3rd birthday party on Sunday..so yes, VERY long :(
@srutzky Ouch! Up here in Canada, it was Thanksgiving yesterday. Not much time to get on the DBA site!
I Hope you feel better!
@srutzky I have never tried a nc index on a non-persisted computed column before, so thank you!
If the QO decides to use the index, that's certainly a win.
This is what happens when you use your mobile to look at questions and then see Gordon in there. I should have read the other answer I reference a little more closely, cuz I missed the INNER.
How is this materially different from the first answer, posted by Juan Carlos Oropeza? — Max Vernon 2 days ago
14:20
I just saw this in the low-quality review queue. The system said is was identified as possibly spam. It doesn't seem like spam so much as a person who talks like a markov chain generator.
0
A: Entity relationship problem

JohnsFrom my readings, I still not understand what is this Classification and why does it need to have the ID_Company. If it's like a position as someone mentioned here, I'd think a static table to contain all positions would be better. If you are doing this in order to easily find a classification/p...

14:35
@MaxVernon that and it appears to me not an answer
and I don't see what a data model has to do with join indexes
@MaxVernon Thanks. I'll get there eventually. And don't worry, your mis-read due to skimming that code is more effort than G.Dawg (or "flash"?) is willing to put in.
@PaulWhite as it relates to the following answer, and edit you just made on it:
-1
A: Scaling out SQL Server and syncing data across multiple machines

JohnsI tried PartitionDB* yesterday. Basically, from my understanding, it takes DPV (Distributed Partitioned Views) and does the work for you, maybe one of their union examples will work for you. Note, you need to gather that shard/partition field ready in all your sharded/partitioned tables. * I am...

Are you sure that he is a beta user and not their support guy:
http://partitiondb.com/forums/users/jonapartitiondb-com/replies/ ?? Just asking due to similarity of name, though I realize that "John" is fairly common ;-).
@srutzky No, I am not certain, hence benefit of the doubt. The user has useful answers not promoting that product.
I'll take them at their word for the moment, but keep an eye.
15:29
Guh. I need to take a class in C# or something.
0
A: When is it OK to shrink a Database?

KahnComing back to this WAY late. Still, we've been pondering and testing the use of shrink in our testing environments for a long time as well. As per the topic, there are times when shrink is a viable option. But knowing when and how to apply it, are vital to proper execution both in the long and s...

> Especially since contrary to some articles around the web, the size of your data files DIRECTLY CORRELATES WITH BACKUP / RESTORE DURATION. That's because unlike many articles assume, real life scenarios have loads more data on any given page than just the stuff you've maybe removed.
15:47
yeah, love that, @swasheck
16:19
Percentages in project plans are stupid.
I know management loves that shit but It's not really realistic.
16:36
Anyone have issues with TF3688 (the one that turns off 'SQL TraceID 2 was started by...')? It's enabled globally on my server and is in the startup parameters but I'm still getting those message logged to the error log. SQL 2014, EE, SP1.
My google-fu is weak today
16:56
Help migrate please, we don't have enough questions for which TVP is the answer
0
Q: Scope_Identity() return null value after inserting first row in table

Vivek KumarI have a stored procedure that is used for inserting the values in two tables. Both tables has parent child relationship i.e. First table has identity column and second table has a referenced column of first table. In this procedure I am returning Scope_Identity() value to a column. Below is the ...

Vote has been cast.
Some people's train of thought, hard to understand is.
@ypercube why do you assume they're not. If they edit a country tag in, some answers will become out of date; but if we were to limit answers to those that only cover things that are true in every jurisdiction, they'd be woefully incomplete in almost all of them. If we limited answerers to people who know the laws well in numerous jurisdictions, we'd massively reduce the number of people who can answer. — Dan Neely 2 hours ago
@MaxVernon somg ugy in the comments section is using Mega Man.
> migrated to dba.stackexchange.com by Aaron Bertrand, Zane, swasheck, Paul White, ypercube just now
@Zane There's comments? Oh, NoScript turned that off for me.
17:10
@ypercube thanks folks
 
1 hour later…
18:35
@billinkc - I honestly don't think it has anything to do with the version of SSIS, nor with using a package or project deployment model, or with what kind of exception the stored proc is getting. I will update the question with a sample query. It has to do with the behavior of "OnError" eventhandler in SSIS and PRINT statements used in a query. — Nanu 1 min ago
I just got told!
18:46
Nanu Nanu
I don't follow any of what he's talking about.
I have an impossible time decoding SSIS questions on SO.
Oh, I think I get it now
Their proc is always generating output. But they only ever look at the output of the proc when there's an error and so they think it shouldn't be capturing it
18:59
why can't you think for yourself just a little?
I need it to start at 0 otherwise that would work — ARidder101 56 secs ago
could anybody help me tune this query plz?
actually in the wild
that's microsoft's misguided attempt at implementing table inheritance in the first build of AX 2012
JNK
JNK
wtf with the parentheses
@JNK yes, seriously
@TomV dude, that's a monster of a query
I don't actually want guidance in tuning it, I know this crap, but it's not even hilarious any more
@Lamak autogenerated unfortunately
19:03
I figured, but still. All with the random CROSS JOIN
the cross joins are turned into inner joins with the where clause FFS
user58869
hello, please help me understand this, in mssql, if i have cascade delete set on a column in the table definition will it delete rows in the other table or this table?
JNK
JNK
I noticed that
@TomV yup, but still
JNK
JNK
"LEFT JOIN X...WHERE x.Col = something"
19:05
fortunately they fixed that in R2, unfortunately the estimate for the customer customizations upgrade is estimated at 100 man-days
JNK
JNK
@Alice will delete rows in this table when the parent record is deleted
Kin
Kin
Is it just me .. the reputation tab does not show today's date ?
JNK
JNK
FOREIGN KEY FK_B REFERENCES (TableA.Col) ON CASCADE DELETE will delete records in this table when the parent record in TableA is deleted
they made a mess of their last version in early builds
user58869
so the parent is the one that is the primary key in the other table not the foreign key in the table that declares cascading delete?
19:06
to say it's 'little performatic' is an understatement
JNK
JNK
@Alice correct
So If I have TblInvoice and TblInvoiceDetail with a FK to TblInvoice(InvoiceID)
user58869
thank you!
JNK
JNK
if I delete the TblInvoice record it deletes all child details if cascade is on
you saw my blinker ____
@TomV Nope. Blocked.
19:20
@Zane Blocked because your firewall values your sanity I suppose
I bet if I post that in chat I'll break the time-space continuum
Wells fears any and all files.
@TomV gist.github
@swasheck That will still not help me
Oh wait. It did work. Amazing
19:23
@zane nevermind it's only 900 lines of SQL for a single query
@Zane you are fast
@Zane I love you
(didn't want anyone to get the wrong idea about those south of the equator)
@billinkc aaw, you mean you don't?
@Zane parentheses slide for everybodys enjoyment
plain rediculous
19:28
@Lamak Allow me to reply in your native tongue: no
@TomV Especially with helpful names like @P164
@Zane the declaration of vars was an immediate sign of trouble :)
it's SOP for dynamics AX to number the parameters, but 166 of them is a bad sign
@billinkc I'm crushed, crushed I tell you
If I'm seeing a query with @p666 i'm starting a blog :)
you can all start envying me now
Talked with an old coworker yet. Seems there's a limit of 1000 parameters in SSRS and he met it. Well, the default threshold is 1k parameters but you can adjust the settings in reporting services to allow for more.
I did not want to know what abomination he was birthing
19:34
@TomV I've got something similar. It's 800 lines of variables and temp tables before anything begins to happen.
@billinkc I don't want to know why that is even an option. Who ever thought "well somebody might want to go above that I'll make it configurable"
must have been a product manager of some sorts
@Zane That's some serious foreplay
3
On a more serious note, I never quite got the table inheritance paradigm
Yeah. They actually brought me on to support that. I mentioned the only way to support that was to put it out of it's effing missery and start over.
@Zane ha, reminds me of an enormous query I was asked to tune for an SSRS report a BA made a while back. The ticket response I posted was "can you give me the specs for the report so I can recreate the query/report" and I never heard anything back from him
19:55
seems sqlfiddle is not up to this task. Can anyone verify if the recovery_model_desc column in sys.databases has a collation of Latin1_General_CI_AS_KS_WS ? I've been using this code to look at it (2012+)
USE master;

SELECT d.name
	, d.collation_name
FROM sys.databases d
WHERE d.name = 'master';

DECLARE @cmd NVARCHAR(MAX);

SET @cmd = 'SELECT recovery_model_desc
FROM master.sys.databases d;';

EXEC master.sys.sp_describe_first_result_set @tsql = @cmd;
I don't understand why the collation of that column is not the database-default collation since it is a simple nvarchar(60) column that only ever contains the name of a valid collation. All databases on this instance are in the "standard" collation of SQL_Latin1_General_CP1_CI_AS
Some of the metadata columns take the server collation, not the database collation.
And some of them are hard-coded as collation x regardless of server or database collation.
It's a mess, really.
tell me about it. I found out by trying to unpivot some fields from sys.databases; getting errors like:
Msg 8167, Level 16, State 1, Line 110
The type of column "PageVerify" conflicts with the type of other columns specified in the UNPIVOT list.
such a misleading error message, since I'm using CONVERT(VARCHAR(50) on all the fields.
Yeah you need to explicitly add COLLATE statements whenever using union, pivot, etc. against multiple databases
I forget often because I set up pretty generic systems on purpose, but people who take my code and put it in their systems always let me hear about it.
@AaronBertrand UR code SUCKS!
@AaronBertrand lol, no doubt. I wish it said something like The collation of column "PageVerify" conflicts with the collation of other columns specified in the UNPIVOT list.
that would be helpful.
but I guess we can't have it all.
20:03
@swasheck It works on 'His' machine, so it's ready to ship
lololol. no kidding.
Good morning
good afternoon
good night
20:10
good UTC-06:00 ?
good lord
We're actually -6 while on DST
Give it a couple weeks, we'll be back to UTC -7
@MikeFal i thought max was -7
20:18
nope, summer time its UTC -5, standard time is -6 here.
@MikeFal that's even more than spinal taps all the way to eleven !!1!
@MaxVernon my bad.
@MikeFal max meaning @MaxVernon
@swasheck no worries! We're right smack-dab in the center of Canada. Leaves are almost completely off the trees; just waiting for winter now.
@MaxVernon for some reason i thought that you were vancouver?
20:25
@swasheck not that lucky unfortunately.
mind := blown
At least you didn't automatically assume I was in Toronto. And "do I know so and so in Montreal"
@swasheck glad to help!
@MaxVernon i have family in the toronto burbs
oh cool!
mississauga
20:27
@swasheck ahhh, where Microsoft has its Canadian headquarters.
I've driven through there a couple of times
where support always begins with, "sorry, eh"
@AaronBertrand I just noticed 3 morons downvoted that. Just goes to prove any given set of people have 50% of the members "below average intelligence"
Well way back when it actually meant "lower priority" rather than "this is a terrible idea"
I down-voted quite a few of my own suggestions when you could do that - not because I thought I had a bad idea but because there were other, more important issues to fix.
Many of my suggestions have always been nice to haves that I hope they eventually get to when they're in that part of the code and don't have to worry about breaking compatibility.
@MaxVernon that's ridiculous, how is that 'not' an improvement
@AaronBertrand makes sense actually
@AaronBertrand ahhhh, I guess I'm one of those "morons" since I didn't actually look at the voting directions enough to realize that myself.
<- slaps self
20:44
No worries, I really do think the Stack Exchange mindset has overtaken the priority mindset, and people down-vote only when someone files a stupid Connect item, like select without order by produces "incorrect" order
Or a duplicate, have seen down-votes on those, too
my stupid connect item just got some feedback that said, "thanks! we'll take a look. in the mean time, stop using this unsupported trace flag"
Well I'll take "slower queries over errors" for 1000, Alex
I doubt they will do anything about the behavior of 2363 now, more likely they will introduce yet another undocumented and unsupported trace flag that breaks less
2363.5
@AaronBertrand well 2363 is a verbosity thing ... doesnt help query performance. but yeah, i disabled it, but figured i'd submit it just so that it's documented
@AaronBertrand hah.
We caused the discovery of a bug in DBCC PAGE code, but they aren't going to fix it, and their recommendation was to stop using it.
@swasheck oh true, I just meant in general
"Doctor, it hurts when I do this." "Stop doing that."
20:52
Smoke fewer cigarettes, fool
fair enough --- and, especially if it's an unsupported flag, --- CUT IT OUT is an appropriate response. just figured someone may be as dumb as me in the future :)
If you in Azure, this wouldn't be an issue (because we don't support that functionality)
@billinkc DBCC OPENWALLET is supported, though
@swasheck I don't remember Paul talking about that one. Must have been after his time
My grandfather was a doctor and got drafted as a medic in the army. The shit they came up with to get out of combat was amazing, he had so many stories. The one that stuck was lots of folks coming into his tent and saying "I can't lift my arm past here." He'd ask, "how high could you lift it before?" They'd raise their arm up over their head, and he'd say "get the f* back on the field."
20:54
SUCKA!
A former coworker had like 8 kids. Their approach to kids and emergency room was similar. MY LEG HURTS SO BAD! Really? How high can you jump? jump
But did you see this?
^---- extended events in Azure, finally
Also, autoplay video needs to f*ing die
5
^^^^^^^^^
Is anyone else here going to the PASS First-Timers Orientation?
@JamesLupolt i didnt think you were going?
21:04
@swasheck Oh? Really? I am.
Maybe I said something confusing.
nope. i confused you with @JNK.
Like that I wasn't going to not go to the Summit.
nevermind. i did the first-timer orientation. it's ... underwhelming
@swasheck HAve you been before?
Oh.
Like
Awkward people being awkward together?
no, more like, "i took time out of my day to do this?"
21:06
What happens?
they tell you to not be shy
That doesn't work does it
every time. like a charm
@JamesLupolt ... kevin kline and kendall van dyke did the orientation for me. kevin's a good guy so i dont want to disparage the event too much. kendall is ... from orlando. that's what i know about him.
Oh well. It's only an hour I guess.
they will still let you attend other sessions if you don't attend the orientation :)
@JamesLupolt do you have a personal email address?
21:12
yeah
creative. like mine.
Welcome to the bedwetters anonymous e-mail list!
@AaronBertrand "Sorry. This email is already associated with another account"
21:17
@AaronBertrand feeling settled on the state of your precon?
The first timers orientation session used to be lead by ... some guy who actually knows what he's talking about. Still a bit awkward but it's at least a professional trying to help break the ice.
@swasheck yeah, it was pretty much ready to go for Belgium recently, a few tweaks and a few new demos
@AaronBertrand i figured as much, you just said that you were making it better.
@swasheck mostly fit & finish, adding comments to demos
nice.
21:19
Added demos for NOLOCK and short circuiting
There are still a few things that I say multiple times and it feels a bit disjointed to me but typically they bear repeating.
I had 105 registered as of last Friday
that's pretty good. i wish i had signed up for a precon
I don't know if I'll do it again.
It's not really a good deal, and even less so for those instructors who pay their own way, hotel, food, etc.
In Belgium I did the pre-con in exchange for a highly reduced ad/sponsor rate for the company. So I got $0 but felt less ripped off than I do for PASS Summit.
JNK
JNK
@AaronBertrand yeah it seems like not a good financial decision for PASS
I heard the precons you can do OK on sometimes tho right?
@JNK You can do well if you get a large crowd, but PASS still does SO MUCH BETTER
> Timestamp when last row was opened(in milliseconds).
21:33
What does "opened" mean?
Summit precons are probably better for personal promotion. This is not a defense of PASS and the amount they take for the precon.
trying to figure the base for calculation
@MikeFal yeah I didn't really do it for financial gain, more for SQL Sentry visibility. Still seeing the breakdown on paper was pretty heart-sinking.
@swasheck oh so row out of an operator, not out of a table, got it
@AaronBertrand right. sorry.
@AaronBertrand Yeah, that's depressing to hear. But unsurprising from a conference that doesn't help subsidize speaker cossts.
21:35
Suspect it's why others got out of that game too (e.g. Brent)
They did their own last year
Now that I've been to a conference that pays me for my speaking, I'm a little spoiled.
@MikeFal yeah even a SQL Saturday pre-con is really pretty good, I mean $/head is about the same but there isn't this big lump of overhead going to someone else
@AaronBertrand SQL Sat precons basically offset my costs to travel. More than enough, honestly. Summit sounds like it wouldn't even do that.
@MikeFal well remember that a SQL Sat pre-con is, what, $99? Summit is $495 or $499
Yeah
21:37
More expensive hotel
Usually, anyway
My next pre-con after PASS is Slovenia, hotel is about the same but flights are a little more. :-)
Of course, I'm not eligible to submit a Summit precon, so I guess I don't even think about it.
"not eligible"? It wasn't invite only, was it?
(This machine takes so long I honestly forget.)
There's reqs, you need to meet 5/10. I'm 4/10
Oh I didn't know that
Of course, one of those is "do you have a certification that no one can acquire".
21:39
Is SQL/DEV Intersection a better deal for speakers?
@JamesLupolt hotel is covered, that's a big difference
For SQL Saturdays so far the only requirement I've seen is "know an organizer"
@AaronBertrand Yeah, SQL Sats is up to the group running the event.
Lemme see if I can find the Summit pre-reqs
I only meet 4/10 as well
I guess validation is not strong :-\
That is interesting to me that speakers aren't paid and/or get free lodging when they speak. I always assumed lodging at Super 8 or the like was standard. For SQL Saturday it makes more sense not to get paid since the event is free, but still....
The req that annoys me is the MCM/MCSM/MCA req. We haven't been able to get that cert for 2 years now.
21:45
@MikeFal if only we had a leader ... a ... president, if you will ... then we could set aside special interests and promote community involvment
Getting scraps for a pre con is lousy too
@AaronBertrand I count 5 for you.
@Erik SQL Sats aren't such a big deal, it's always been understood that speakers volunteer and pay their own way. Happy to do it, even for precons. I certainly didn't give precons this year out of a need to make money, simply to give a full day preso and help offset some costs.
Summit is a little more....annoying, considering the size of the event, attendance, and costs. They don't have to pay for more than half the speaker base, which is the main point of the conference. That's a pretty significant savings for them.
@MikeFal That makes more sense for a free event, but for a paid event that is rubbish. Where could all the money go? I'm sure the directors aren't literally stuffing their pockets, but still it feels wrong
21:58
My assumption, which might be 100% false, is that the local chapters don't get much financial support from HQ. The venue/space for the monthly meetings are probably donated, and recruiters pay for the snacks. The monthly meeting speakers surely don't get paid either. The biggest expense on the local chapters seems to be hosting SQL Saturday's, but sponsors probably pay most of those costs for that.... Its probably just blatant ignorance on my end but I don't understand where the money goes.
Yeah, chapters get more operational support. Website support and tools. As well as an overall organizational structure that they can leverage.
I'd feel better about it if I knew my precon fees were going to help develop Query Store or something.
Or to help poor people who have to use MySQL.
@JamesLupolt Mostly that ---------------^^^
:)
@MikeFal denver.sqlpass.org that site can't cost that much. Regardless I'm sure people aren't actually pocketing the money, and they're doing lots of good things with that money that I don't see.
@Erik We're also one of the UGs that are more financially stable. :) You also have to remember PASS supports a bunch of virtual chapters.
22:15
Yup, chapters that only do remote presentations. Quite useful, really.
22:26
@MikeFal yeah I'll have to check it out more this evening.
Do recruiters go to SQL Saturdays in the US? It isn't something I've noticed in the UK.
@swasheck I'd support either @AaronBertrand or @PaulWhite. They both have the name recognition, and I think they would both have the desire to serve the community over special interests. That being said I doubt they want the job.
@JamesLupolt There are UK SQL Saturdays.
@JamesLupolt Oh, wait, nm. Reading comprehension ftw
@MikeFal Sorry, I meant I haven't noticed recruiters at UK SQL Saturdays.
I've seen people mention them at US events a few times and wondered if it was a US thing.
@JamesLupolt I know one hung out around the C# user group's monthly meetings. The same girl was at the Denver SQL Saturday
22:32
We've had recruiting firms sponsor a table at SQL Saturdays.
@Erik @JamesLupolt TEK Systems is a big UG supporter.
I haven't been to any other SQL Saturday's so I can't speak for them
@Mike_Fal only 4, 6, 8, and 11. And in fact for 11 they didn't pick any of the regular sessions I submitted.
And yeah I have negative interest in being directly involved with PASS
22:59
@AaronBertrand lol so less than no interest..... ;)

« first day (1743 days earlier)      last day (3424 days later) »