« first day (1514 days earlier)      last day (3345 days later) » 
00:00 - 18:0018:00 - 00:00

12:34 AM
Have you thought about not creating the registration functionality? — dezso 1 min ago
 
 
5 hours later…
6:04 AM
0
Q: Why was this clear question downvoted?

Jason GoemaatHow to clone a user in SQL Server 2008 R2? I don't notice any votes to close it, and it has a helpful answer with +7 but the question is sitting at -4. I couldn't find any similar questions with a quick search and there are no comments explaining what might be wrong with the question. I've loo...

 
 
4 hours later…
9:39 AM
@MasterDatabase excellent answer, @JackDouglas
one more reopen vote needed:
1
Q: How to put the results of a query into a variable?

user3526905I have written a Postgres anonymous block. In which I have written join query on multiple tables like: select a.portal.*, a.p_fb_config.*, a.p_gplus_config from a.portal left outer join a.p_fb_config on a.portal.pid = a.p_fb_config.pid left outer join a.p_gplus_config on a.portal.pid =...

 
10:22 AM
Hi all.
From time to time I see some really half-assed suggested edits, like this one: dba.stackexchange.com/review/suggested-edits/41741
Now, fair enough, the change made is actually correct, but the editor's missed several other problems.
What's accepted practice? Reject the edit or approve?
 
@MichaelGreen You only have these 2 options (reject or approve)?
 
if the edit in itself is valuable, edit it further
if not, reject and edit yourself :)
 
So what's community feeling in these circumstances?
said: I know I can complete the work myself, and oftentimes I do. But sometimes I don't have time to do a proper job or I'm on a hand-held which is rubbish for editing.
.. also learning chat's editor interface :)
 
Since the best would be edit (reject and edit or approve and edit) and you can't do it at the moment, you could just skip. Someone else will vote. But either way (just reject or just approve) is not bad in my opininion. You can always come back later and improve the post.
 
10:43 AM
Yeah .. skipping's probably the sensible thing to do. I guess maybe I'm just venting out of frustration.
 
0
Q: SQL Server credentials - Maximum Password size

hugohilarioWhat's the maximum password size I can get on SQL Server 2012/2014? I was unable to find this information online. I mean SQL Server credentials itself, not passwords inside tables. Thanks a lot

Is it that hard for people to RTFM?
 
@MarkSinkinson have a +1 for your troubles!
 
@MichaelGreen I tend to improve, marking the suggestion as helpful, if it was. If I don't have time to do a proper review, I would probably skip it and leave the task to someone with more time/patience.
 
@MichaelGreen I just don't understand what goes through people's mind when they 'search for something online'. Surely step one is to check the manual?
 
@MarkSinkinson Search online: randomwebsite.com/cgi-bin/random.pl
 
10:57 AM
@MarkSinkinson in many cases, anyway, it's like typing the two important keywords into Google and then pick the very first link which is oftentimes the manual
 
@PaulWhite - "mark as helpful" - how?
 
@MichaelGreen There's a tick box.
 
@PaulWhite, ta. I'll look harder the next time.
 
43
A: Do we need a 'reject and improve' button?

wafflesI changed the workflow for improve. The edit screen now has an option to "deny" crappy editors the rep bounce when they suggest crappy edits and you improve it. The box is selected by default. I do not want to introduce complex UIs on the improve "scenario", so you get no custom message for th...

There is a screen shot in that meta answer. ^^^
 
@MarkSinkinson, you'd think! For me hitting Google's faster than opening BoL so I have to confess that's my first reaction. Still, I'll look for an MSDN page before anything else. (Unless it's a post by Paul, of course.)
 
11:05 AM
At least BOL doesn't require me to log in. No idea why that changed, but it is annoying.
 
Somehow I've managed to avoid the BoL login thing. I must have some karma banked somewhere.
Anyhoo, battery's dieing. See you all anon.
 
11:29 AM
@MichaelGreen Actually, I just had a suggested edit and the check box I mentioned was missing! Couldn't find anything relevant on meta about this. If it happens again I might <gasp> ask a question on meta about it.
(I didn't capture a screenshot this time around)
 
@PaulWhite I was under the impression the 'Mark as helpful' option is only on flagged questions/answers. I've never seen them on suggested edits. Might be wrong though
 
@MarkSinkinson See the meta answer 1-box'd above.
 
11:48 AM
They probably removed it after "Edit" was split into "Improve Edit" and "Reject and Edit".
 
11:58 AM
@PaulWhite Ah, weird. Before my reviewing time then. :-)
 
12:11 PM
@AndriyM I think you're right.
Yes. So improve and edit = was helpful; reject and edit = was not helpful
12
A: "Improve" treated as improper response to proper response to audit

Shog9As of right now, this is fixed: instead of a checkbox in the editor, you get two separate buttons in review to launch the editor: "Improve Edit" works the same way as "Improve" has for years, sans the checkbox: it lets you add further changes to the existing edit, then approves it and submits ...

 
12:28 PM
Two accounts, same username. Probably needs merging: dba.stackexchange.com/review/suggested-edits/41719
 
I'm in shock... the Systems team here has taken all my recommendations about how to configure storage
 
@JamesLupolt that must be the first time in history
 
@dezso An experienced contractor helped me a lot of with the testing document I wrote. I think that made a huge difference
 
@ypercube I think the user has to request that. I left a comment to encourage that to happen.
It's a poor question anyway, even with the edit.
 
@PaulWhite Nice. I left a comment, too, in a q of the other account.
 
 
1 hour later…
JNK
1:51 PM
how is everyone today
 
meh you?
 
JNK
not terrible
working from home today so it could be worse
 
Migrate here please
0
Q: statistics are up to date, but estimate is incorrect

user1151923When I do dbcc show_statistics ('Reports_Documents', PK_Reports_Documents) I get the following result for Report ID 18698: However for this query: SELECT * FROM Reports_Documents WHERE ReportID = 18698 option(recompile) I get a query plan that makes a Clustered Index Seek on PK_Reports_Doc...

 
Already here
That was swift
 
Bohemian beat me to it
 
1:59 PM
Just think it's better served here than over there where G et. al. will trip over themselves
 
2:17 PM
anyone know enough about replication that I can pick their brain?
 
JNK
@bluefeet I know more than I want
I've had to do quite a bit with it in the past year
 
We have a table that is currently replicated to 2 servers. I need to prevent some of the columns from going to only one of the servers. From what I can see dropping the columns from the publication will drop it in both locations. I'm trying to figure out how to do this.
 
JNK
you may need to set up a separate publication for that table with the limited columns
that's nasty though
 
I thought about that, but then I read this
I'm worried about performance issues by doing that
 
JNK
actually what you may have to do is break it into 3 pubs
Pub1 - All your other tables
Pub 2 - Problem table with all columns
Pub 3 - Problem table with filtered columns
 
2:22 PM
ugh
 
JNK
Both subs get 1, but they get either 2 or 3 depending
 
that is ugly, especially since taking a snapshot would cause some issues. The table is large
 
JNK
Yep dealt with that too, my last up-all-night situation was to rebuild replication
can I ask a dumb question?
 
sure
 
JNK
Is it not possible to just filter using a view on the second sub?
the data's there but nobody can see it
that may be an easier problem to solve than filtering what actual data gets sent
 
2:25 PM
Well yes, it would be easier. The server we are trying to remove it from is for reporting. And the columns contain encrypted card holder data so for security reasons, we'd just like it to not exist on that server
 
JNK
ahhhhhhhhh
 
yes
 
JNK
but you need it on server 1
 
We need it on server 1 and server 2 - server 3 is for reporting
 
JNK
sorry meant sub 1
 
2:26 PM
yes
 
JNK
that's ugly
That issue kendal reported would also affect you with the 3 pubs
I'm assuming this is a busyish table too
 
Dumb question - can I add the replicated table on server 2 to a publication there?
 
JNK
I was wondering that too and I'm not sure TBH
 
@JNK it for transactions so yes
 
JNK
I know you can't do that with log shipping but you may be able to with replication
it should be easy enough to test on a dev server
make 3 dbs
db 1 replicated a table to db2 replicates that table filtered to db3
 
2:28 PM
I can test in our dev environment
we break replication all the time on it
 
JNK
if you do this y ou're gonna be snapshotting again though
like all your tables for sub2
 
I know
 
JNK
rebuilding all your indexes etc etc
 
which is a problem but not as much of a concern.
 
JNK
I just went through that last Saturday
 
2:29 PM
Our worry is impacting the transaction path
 
JNK
I'm assuming sub1 is like a warm backup and sub2 is near-real time reporting
 
sort of. It gets more complicated because the archive of this table lives on the sub1 server and is then replicated to server 3 (reporting)
we have a bit of a mess
sub1 - is used for the web interface for customers, etc
 
@bluefeet, I wonder if an indexed view can be of any help to your case.
 
hmm, not sure
 
JNK
2:39 PM
ooooooo
 
> For indexed views, transactional replication also allows you to replicate the indexed view as a table rather than a view, eliminating the need to also replicate the base table. To do this, specify one of the "indexed view logbased" options for the @type parameter of sp_addarticle (Transact-SQL). For more information about using sp_addarticle, see Define an Article.
 
JNK
not sure it would solve her issue though since she still needs 2 publications
or 3
 
Yeah. And there would surely be performance considerations - for keeping the view.
 
this is going to be messy
 
3:00 PM
In my limited experience with replication (never again!) replicating indexed views was a great source of unexpected behaviour (and possibly bugs, I forget).
 
3:16 PM
@AaronBertrand thnx.
It was borderline spam.
Linking to 'Google "sql + recovery + tool"' where his profile links to sqlrecoverytool.com
 
I suspect he may not in fact be Swedish.
-2
A: How to recover data from corrupted SQL Server database?

ElliswhiteHere are some best suggestions available which gives you better results in term of reliability. See here https://www.google.co.in/?gfe_rd=cr&ei=fRvsVJ2IEOHA8gfqiICQBw&gws_rd=ssl#q=sql+recovery+tool

Ok, now it's spam.
 
8 mins ago, by Aaron Bertrand
user image
2
 
Boom!
@bluefeet Did you know you're famous now you're featured on Meta?
 
3:36 PM
@PaulWhite for the new profile?
 
Yeah, I saw that. I will forever be 39 years old
 
I will miss the ability to check my current age this way. Yes, I do that.
 
Ha, you're older than me
 
Get off my lawn
 
3:41 PM
yes, I'm old
 
Paul doesn't have one of them new fangled lawns. He just has smaller rocks strewn amongst his larger rocks
 
Truth!
 
I will never understand why people start with dynamic sql - stackoverflow.com/questions/28745946/…
 
JNK
Wow The DBA™ screwed up yet another thing with our migration
the hits keep coming
 
I'm thinking migration => migraine
 
JNK
3:52 PM
He just accused me of messing with replication b/c some tables he removed before the migration are back in replication
Me: "Did you rescript replication out after you dropped those articles?" Him: "I think so..." Me: "The version of the script you ran on Saturday has them in there, so I'm guessing not."
 
Nice.
 
Wooooooo! Just got a raise.
 
hooray
 
congrats!
 
@bluefeet according to them I am ageless.
 
4:11 PM
Just in time to leave them for BZU.
 
Gives him a higher starting point for inflating his current wage
 
@Zane Like, a real raise, or just annual cost of living increase?
 
boom. sql server stack dump
FOLLOWUP_IP:
sqlservr+20de4ad
PRIMARY_PROBLEM_CLASS:  APPLICATION_FAULT

BUGCHECK_STR:  APPLICATION_FAULT_APPLICATION_FAULT
y'alls so helpful
 
It's the application's fault
2
 
clearly
 
4:22 PM
@MikeFal Post evaluation raise. Technically it's the second one I've received in the last 4 months.
 
Ah, cool. That's good
It's one thing to get a raise, it's another to get a cost of living increase.
 
@Zane they heard you applied to bozar
 
@swasheck lol yeah. I'm sure they are super concerned about that.
 
:D
 
A: I'm not likely to even get an interview. They already had 120+ applicants as of yesterday morning. B: If I did get offered that job there is nothing Wells could do to keep me around.
 
JNK
4:33 PM
@Zane threw my name in there too
 
ruh roh
 
JNK
same thing for me, unlikely to get interview
 
Ohhhh snap.
 
@Zane Don't say that. I think you're right in the slot of what they're looking for.
ORLY?
 
JNK
deleting in 5...
 
4:34 PM
He slipped something about that at a presentation yesterday.
Said something about they didn't get someone last year because they wanted to be able to hire two people.
 
To bad it's not the right fit for me. I'd love to work with those guys.
 
@MikeFal see ... i think i'd love to have their jobs but not work with them
 
@MikeFal the more and more I think about it the more I realize I would kick ass at that job.
 
i couldnt keep up with the energy
 
y'all are too smart for me
 
4:36 PM
@JNK I sure hope they don't make us battle to the death.
 
I could, but my path is towards database automation and Powershell. That's not what they do.
 
@MikeFal i'm too introverted
 
I would pay to see a knife fight between @Zane and @JNK
3
 
JNK
@MikeFal I got kids, not worth it
If it comes to a knife fight Zane can have it
 
Booo
 
JNK
4:37 PM
Also it's a good indication I may not want the job
:)
I actually asked Brent if I should bother since my focus is more on development
I got a non-committal nudge
 
@MikeFal I was thinking the Ahn'woon(had to look that up) from the episode of Star Trek where Kirk fights Spock.
 
now i'm thinking of The Cable Guy
 
0
Q: Simple avg query on large table much slower in PostgreSQL than SQL Server

StaeffI have a database with three tables items, parameters and measurements in both servers and want to query the measuerment table. But the query is much slower in PostgeSQL (9.4) vs SQL Server (2012). measurements: column | type | attributes ---------------+----------------...

 
If he nudged you, then he thinks you'd be a fit. After all, they've got all those applications, I'm pretty sure they would turn away folks if they asked.
You may not be as good a fit as @Zane, though...:)
 
@MikeFal ...?
 
4:45 PM
@Zane I was ribbing @JNK.
Man, the more I use SSDT, the more I like it.
 
i kissed ssdt and i liked it
 
The Scottish Six Days (Open Reliability) Trial is an internationally recognised Motorcycle trials competition, which has been running since 1909 (with breaks for the two world wars) making it the oldest motorcycle trials event in the world. Motorcycle riders from all over the world compete in this extreme sport, covering as much as 100 miles a day on road and off-road routes around Lochaber on each of the six days. The event is a trial of the skill, consistency and endurance of the riders, as well as a test of the specialised motorcycles used. == History == The inaugural Scottish motorcycle trial...
 
JNK
@MikeFal I honestly think it's more a of he wasn't ruling it out without thinking about it
And based on the posting Mr. Zane is honestly a better fit
All my production dba stuff has been accidental and I know very little about hardware configuration
 
@MikeFal my favorite thing about Data Tools is a very small change but makes all the difference in the world.
It's that variable expressions now have that little button.
So much better.
 
Unless I miss my mark, Mike's using SSDT (which is database tools) whereas you're using SSDT-BI (which is SS?S tooling)
 
4:55 PM
@billinkc you miss mark?
 
Very much so, he's so handsome. And witty
 
MARK V SQL
 
@billinkc and it's yours, apparently
 
I'd like to think we've bonded
A little skin graft here, a little blood transfusion there
 
Eww.
 
4:58 PM
So you'd say you're quite attached to him now?
 
Aw, cute
 
Remember, my thoughts usually start well over "the line" and only go deeper
 
Am I reading this right?
> When INSTEAD OF triggers fire, SQL Server hasn't yet made any changes and, consequently, hasn't logged any changes. SQL Server builds worktables to hold the inserted and deleted records as if the modification had occurred. Then, if the modification takes place, SQL Server must make the changes and log them, adding to the work of creating the worktables.
Does an INSTEAD OF worktable write to the transaction log?
or not?
 
As I understand it, any changes that would be done (if there was no INSTEAD OF trigger) are not put into the transaction log. Instead, they are put in the worktables, and the trigger fires. What the trigger code does then, goes to the transaction log.
 
that's how I'm interpreting that as well
 
5:07 PM
Erg!
0
Q: SQL Sub Query Commands out of sync

Jason BruceI am trying to return a distinct list of hotel_country, hotel_resort and hotel_title and CHARACTER_LENGTH of each of these in the column next to it. I am doing something wrong as I am getting the error Commands out of sync; you can't run this command now This error is something I have not se...

 
@Zane fucked up query
 
Indeed.
 
@swasheck DSSUG board fail, SQL Sat 420 is Paris, not Denver.
 
@MikeFal yeah. steve doesnt want to announce until we have a location
 
@Zane accidentally hammered (had totally forgot I have a mysql hammer!)
 
5:18 PM
Something weird just happened to me. I got a call from a recruiter who knew about an interview I had through a different recruiter at a different client.
 
@ypercube a most welcome accident indeed
@JamesLupolt at least in the us, the recruiting world is so inbred that it doesnt really shock me
but weird nonetheless
 
@ypercube on one hand I'm glad you have that power. On the other I'm sorry you've had to answer enough MySQL questions in order to gain such a power.
 
@Zane only 1455
 
@swasheck Yeah, it sounds like they have some sort of information sharing about candidates. I actually noticed a decrease in phone calls from recruiters after that interview and wondered if that was why or I was just being paranoid...
 
@ypercube ...
 
5:31 PM
A nice article that bashes ORMs & praises SQL: rob.conery.io/2015/02/24/embracing-sql-in-postgres
 
I don't get this.
0
Q: How to recover my data in sql?

Vikas AhlawatBy mistake I have not prefix with 'N', then How can I get the actual value in SQL server SELECT T.A FROM ( SELECT '男孩 SQL' A) T It is returning '?? SQL' So how Can I get actual value, What can I use in outer Select statement??

Did he insert? Am I missing something. Why not just add the damn 'N'
 
@Zane Yes he already inserted, now his data contains ? instead of the original characters that were passed in.
 
So he's boned.
 
3 . 2 . 1 .
 
This data is thrown away, and not logged anywhere. Sorry, your data is gone if it has already been inserted and you no longer have access to the original statements. Also, you can't magically fix the query in your question by changing the outer query. You need to add the N prefix to the inner query. — Aaron Bertrand 1 min ago
 
5:41 PM
This needs punting to shit overflow:
-3
Q: PHP problem using database

Mahedi Hasan Jisan$DB_HOST = "localhost"; $DB_USER = "root"; $DB_PASSWORD = ""; $DB_NAME = "practice"; $conn = new mysqli($DB_HOST,$DB_USER,$DB_PASSWORD,$DB_NAME); if ($conn->connect_errno) { printf("Connect failed: %s\n", $conn->connect_error); exit(); }else{ //printf("connected!!!"); } function ...

 
@Phil voted. by virtue of the keywords "PHP" and "MySQL"
 
lol
That should be an auto boot. Both PHP and MySQL sorry but there's little to no chance of this being an intelligible question.
 
@Zane if OP is feeling adventurous they could update set = N'男孩 SQL' where x = N'?? SQL' but that could be really really really bad :)
 
@swasheck lol good idea.
 
@Zane What a stupid question.
 
5:44 PM
@Phil hey now, we don't want that either
 
0
A: statistics are up to date, but estimate is incorrect

Aaron BertrandThere is a simple solution to this: Drop all of the _dta_... statistics and stop blindly applying DTA recommendations.

 
Ha ha
 
I remember back when I used that tool. I didn't really apply the changes but when I was a poor little noob seeing the suggestion helped a lot.
 
That Unicode question on SO makes me cross. If you inserted a Unicode string without the N prefix, and now the data looks (is) wrong, why ask the question in such an ass-about-face way. Without even an insert statement FFS.
 
@PaulWhite ... did OP ever actually respond to you or was that a stream of consciousness commenting?
 
5:47 PM
At Crackspace we used to find customer servers with 40+ indexes on tables from when someone had tried DTAing and missing index DMVing their problems away
 
@swasheck I try to avoid commenting on SO.
 
@swasheck he commented:
> But think I have added multiple records, without 'N', and Now u have only '??' in your table, So How u know the actual value of that
That was on Zane's answer (now deleted)
 
Ah.
 
punchy punchy
 
If you can't even ask a moderately coherent question, why are you trying to be a programmer/DBA?
 
5:48 PM
@AaronBertrand I thought about un-deleting and just putting at the bottom. Since you already inserted the data you're boned.
 
@PaulWhite because monies
 
sigh yes
 
"Bro, do you even Unicode?"
 
I'm so glad I can't see deleted stuff on SO. The undeleted stuff is bad enough.
 
That's not a nice thing to say about Zane's answer. :-)
 
5:51 PM
You know what I mean!!! LOL
 
Hahaha.
 
@PaulWhite The correlation may not immediately be obvious to those who are trying.
 
Depressing isn't it.
 
imma get flagged and maybe banned
VtC
 
5:53 PM
Had to put it in.
0
A: How to recover my data in sql?

ZaneIf you are declaring a hard coded NVARCHAR string value it is important to use this format: DECLARE @Variable NVARCHAR(10) = N'YourVariableHere' Instead of : DECLARE @Variable NVARCHAR(10) = 'YourVariableHere' The second method will cause an implicit column conversion which is at best b...

 
Zane invents a new word, "interperit".
 
@VikasAhlawat you don't. that's the point. do it correctly the first time. — swasheck 1 min ago
Lulz
 
@Zane i dont see a columntype = NVARCHAR, parameter type VARCHAR
 
@Zane maybe "boned" -> "out of luck"?
 
I half ass converted a post I had to do for work when someone was inserting to an NVARCHAR column without the 'N'
 
5:57 PM
@swasheck The string literal is implicitly typed as varchar if you don't use the N prefix.
 
Luckily we didn't have any issues.
 
@Phil We're saved!
 
@AndriyM Nope. I like boned better.
 
I imagine a mysql rockstar to be someone like Jedward
 
5:57 PM
@Phil bwahahahaha!
 
Tom LaRock will not be amused. Cue meme.
 
Sounds somewhat offensive to me. I might be more sensitive to that kind of thing than other people, so maybe it's fine.
 
Unless the age for that user is 15 that is unacceptable.
 
m.youtube.com/user/JEDWARDTV for the lucky foreigners that haven't had to put up with their utter crap
 
00:00 - 18:0018:00 - 00:00

« first day (1514 days earlier)      last day (3345 days later) »