« first day (841 days earlier)      last day (4028 days later) » 

3:00 PM
@FreshPrinceOfSO so mapping a drive will magically grant permissions?
 
@FreshPrinceOfSO That's the first thing you'll need to look at.
 
@AaronBertrand I thought it was all magical
 
You need to log in as the SQL Server service account and map the drive in that context. In which case, if the service account doesn't have permissions, catch-22. You need to either grant access to the service account or change the service account. Mapping a drive does not make security vanish.
 
@AaronBertrand that's helpful. let me look into it
 
BTW your original question was like "how do combustion engines work?" when you were actually looking for directions to Boise. :-)
 
3:02 PM
@AaronBertrand My questions seem to suck when I know little on the subject matter
 
@FreshPrinceOfSO I didn't say it sucked. I thought it was funny. Years ago I had a co-worker who did that kind of thing all the time. "Hey, have you ever played with DMVs?" when he was trying to get a row count for a table.
 
@AaronBertrand department of motor vehicles ?
 
Dynamic Management Views
 
@FreshPrinceOfSO well, after a while, I started ignoring his first few questions entirely, because they could have been about the DMV for all I knew
Also you threw me off when you said "a database" then mentioned MS Access (<--- not a database)
I thought you were talking about placing data/log files on a network share.
 
JNK
@AaronBertrand How is access not a database?
it's not a GREAT DB
 
3:06 PM
@AaronBertrand I could have worded it better
 
@JNK the same way a Yugo is not a car
 
@AaronBertrand have you worked with databases mounted on shares with SS2012?
 
@JNK typically when we talk about databases we're talking about proper RDBMS (so even MySQL fails the strictest definitions)
 
@AaronBertrand Would a linked server be appropriate here?
 
@FreshPrinceOfSO possibly
@Gonsalu yes
 
3:07 PM
@AaronBertrand I've read that the performance should be about the same now
@AaronBertrand do you confirm, from your experience?
 
@Gonsalu sure, performance was never the problem. The problem is they're only as reliable as your network. Really bad things can happen if the connection gets severed.
@Gonsalu performance was the problem when people tried to do it over 10Mbit or 100Mbit connections. These days I hope those are rare.
 
@AaronBertrand I don't recall the details but something about SMB 3 now having better performance than SMB 2 or something like that
 
@Gonsalu yes SMB3 is better. Still this wasn't the problem.
 
@AaronBertrand I want to make sure I'm asking for the right thing here. If I want to query an MS Access file, would a linked server be the correct solution? When I try to use OPENROWSET or OPENDATASOURCE using a UNC I get The OLE DB provider "Microsoft.Jet.OLEDB.4.0" has not been registered.
 
@AaronBertrand OK. Never worked with it; curious about it
 
3:09 PM
(Or at least it wasn't the only problem. I still don't trust any of the reliability aspects.)
@FreshPrinceOfSO well, you need to install the Jet drivers on the server, I suspect. Linked server will fail for the same reason.
 
I recommend the ACE12 drivers instead
There's a x64 version now
 
@Gonsalu not my decision to make.
 
@Gonsalu well, whatever. The drivers that will support Access.
Anyone want to see me bitch about filtered indexes?
 
@AaronBertrand Any opportunity to see you bitch is educational.
 
If nobody bitched, nothing would be improved.
 
3:13 PM
was this post triggered by the recent closed as won't fix in connect? :)
great post, btw
 
@Gonsalu no, it had been brewing for a while. I did get a slew of won't fix closures recently.
 
@AaronBertrand must be quite a bit of work keeping track of all these connect items
 
@Gonsalu yes, it can be tedious. I've filed somewhere around 800 just myself.
I should get smart and use a database.
 
@AaronBertrand It's a shame the won't fix thing
 
Same for service packs / cumulative updates - I blog about them constantly but have to go search my blog for when a specific build # was published.
 
3:16 PM
I feel that Microsoft has been dropping the ball lately with the CUs
 
@Gonsalu well it's kind of like cleaning up litter nationwide. The scope of what's wrong and what could be better is so large, how much could even a team of that size fix everything?
 
2
Q: Alternative to sequence and timestamp: uniquely ordering records in time

user22964Oracle 11gR2 Exadata I'm required to uniquely identify when records are created in time. Sequence caching means I cannot use a sequence-based ID and batching inserts means that all records inserted in one batch will have the same timestamp value (even using TIMESTAMP(9)). Akin to Twitter's sinc...

 
At least CU2 and CU3 create some really nasty regressions
 
What regressions? And do you mean CU2 and CU3 for SP1?
 
Do wonder if they'd be better off relying on the app layer to do it.
 
3:18 PM
What would it take to merely have nested transactions so rolling one back doesn't screw the entire app state?
since apparently it's been proven that nested trans don't work on SS?
 
Yes, for SP1
CU3 regression with SSIS; breaks maintenaince plans, and ETL jobs
 
@jcolebrand no such thing as nested / autonomous transactions in SQL Server.
@Gonsalu is there a Connect item?
 
autonomous?
 
Let me look it up
 
@jcolebrand uh, independent?
 
3:20 PM
and I thought the MSDN on trans spec'd that you could do nested ones
 
@jcolebrand you can nest BEGIN TRANSACTION statements. That increases @@TRANCOUNT but doesn't actually change your ability to commit / roll back individual transactions. COMMIT/ROLLBACK apply to all.
 
@AaronBertrand yes, that's not right.
I want that fixed
 
@jcolebrand get in line
 
otherwise, what use is @@TRANCOUNT then?
seems like a useless thing to expose
 
@jcolebrand it's for the future. Also Hekaton will support this to some degree (but I can't share more than that due to stupid NDA).
 
There's a hotfix that was released recently (support.microsoft.com/kb/2832017), but still, how can a bug like this pass QA
Also, I'm having problems with ETL jobs failing randomly, that didn't with 2008R2
and there's a connect item for it as well; I'm not the only one
 
@Gonsalu switch to Oracle? I don't know. No software is perfect, no QA team is perfect. Since CUs are technically only supposed to be applied when you suffer from one of the issues it actually fixes, and are actually documented as being less regression-tested than service packs, I don't think you can place all blame on Microsoft.
@Gonsalu I'm not defending imperfection but how much regression testing did you perform with the CU? Did you find this problem in QA or in production?
 
Yes, I needed the CUs actually
The SSAS Tabular mode has lots of fixes on those CUs
 
@Gonsalu and how thoroughly did you test them?
@Gonsalu so you could have applied them to Analysis Services but nothing that affected maintenance plans/SSIS, no?
 
3:27 PM
Yes, I could, but I've been in small gigs, I don't get paid to do all that
 
@Gonsalu then that's the risk you (or the people who pay you) take. Microsoft doesn't make it a secret that CUs are not well-tested and that you are rolling the dice.
 
What about SP1 event log bloat issue
 
That doesn't make it okay to release shit but it does put some of the onus on you to make sure it isn't shit.
 
SP1 are supposed to be applied
 
@Gonsalu No software is perfect, no QA team is perfect. What do you want?
 
3:29 PM
Yes, I know, I was just backing up why I thought that MS has been dropping the ball lately
 
I think Microsoft has released more service packs with major issues than without. This isn't something about "lately" - you just have to weigh the good with the bad. If you don't like imperfection, go find an RDBMS that is perfect. Good luck.
 
Oh well.
 
Does anybody else understand exactly what this person needs?
I don't want to add another column to the import export tables because I want to 'reuse' those rows. If I were to do it that way I would have to create a new row in the import export table for every transaction. If I were to create a transaction table how could I define a transaction that may change.(just a new row?) — Archangel33 1 min ago
 
greetings earthlings
 
@swasheck hello martian
 
3:34 PM
@bluefeet a soul in tension that's learning to fly ... condition grounded but determined to try
PHB: "So a copy-only backup should be a lot faster than a regular backup, right?"
 
JNK
@AaronBertrand I think he's just confused
 
@JNK that much is clear.
 
please VtC
0
Q: What does this statement in Group By do? Is it really necessary?

user133466What does FirstName+' '+LastName do in the following Select statement, is it really necessary? I tried omitting it, and it produced the same result. SELECT FirstName+' '+LastName AS Employee, tblEmployee.EID, SUM(GrossAmount) AS [2011 Gross], SUM(NetAmount) AS [2011 Net], SUM(GrossAmount) - SUM(...

please VtC
-1
Q: Could anyone tell me what could be causing this error?

user1489599I am writing simple sql queries but for some reason, I keep getting this error "Msg 8152, Level 16, State 14, Line 1 String or binary data would be truncated.", I have no clue what's causing it and I have searched online what kinds of things would cause this error but all I found was "Yo...

 
3:57 PM
ugh
So is the segestion something like Edit#1? — Archangel33 1 min ago
(Edit #1 forthcoming, apparently; first attempt was a code dump in the comment)
 
five upvotes for something that should be a comment
5
A: Could anyone tell me what could be causing this error?

SpaceAppleTitle varchar NOT NULL, you need to give varchar a value i.e. book_desc varchar(50), So basically the Title column only has a value of 1 character since you did not define it when creating your table and you are trying to insert more than 1 characters inside the column ...

 
well this is just asking for trouble
God, I must be an idiot. Thank you. — user1489599 3 mins ago
 
It should be VTCd and swiftly deleted. IMHO.
 
4:22 PM
@swasheck 51 more minutes
 
@Lamak be still my beating heart
 
@swasheck I found that if the reason that you chose for the bounty was: "One or more of the answers is exemplary and worthy of an additional bounty", then the 24 hours wait is superfluous
 
you and your big words
 
@swasheck Either I use them, or I'll never really learn english
so, please correct me when I say something that doesn't make sense (semantically, because I always talk nonsense)
 
@Lamak most folks whose first language is english have never really learned it
 
4:31 PM
@swasheck maybe. I'm just frustrated that I have to simplify what I'm thinking...so I end up writing something that is not exactly what I was thinking (in spanish)
I'm a lot more articulated. So, you people could learn spanish!
 
@Lamak si! Conozco espan~ol (I think)
 
@Lamak are you saying that you're a lot more articulate in spanish?
i tried spanish ... i failed
went back to german - and i was not really a smashing success there, either
 
@swasheck yes, at least my thoughts are :-)
 
0
Q: SQL Strip the Font Format(Colour or other)

KricI have a problem to strip out the format in a note table Here is an example: ";\red31\green73\blue125; \viewkind4\uc1\ltrpar\f0\fs20 USEFUL TEXT BODY \cf1\f3 \ltrpar\f0\fs17 " How to get rid of those stuff? I want to play safe not to replace anything after'\' Many thanks, Rick

sanitize your inputs
ouch
nice comment here
 
4:53 PM
All hail smart quotes
 
@billinkc ugh, the "smart quotes" replacement feature is one of the few remaining to-do items I have for perfecting formatting on our blog. Need to obliterate it.
 
Not enough fire in the sun to burninate the smart quote feature
 
Who up-votes this crap?
0
Q: Can a stored procedure be used as a parameter

MrCoincidenceINSERT INTO TEMP_TABLE (aNumber, aDate) VALUES ((aSproc param1, param2) , myDate) I need to pass a stored procedure with parameters as a parameter of an insert statement. Is this possible?

 
@AaronBertrand i wonder if the commentator even thought to change the smart quotes
 
5:28 PM
Quick question about Oracle's OVER (PARTITION BY columnid)
for analytic functions...
 
shoot
 
bang
 
max(column2) over (partition by column1)
 
(sorry, couldn't help myself, continue)
 
Assuming column1 is a nullable column... will it treat the null values as a value to partition on?
I know that the = operator does not work with NULL
 
JNK
5:30 PM
Don't know for oracle specifically but I would assume so
In SS it works likea GROUP BY
 
GROUP BY will group by NULL in a typical RDBMS?
 
JNK
I believe so if it's a value. I can test real fast
ayup
NULL only gets ignored as part of a COUNT(col) or for aggregates
i.e. an average will not average in a null as a 0 it just gets skipped
you can test pretty easily on sqlfiddle if u want
 
@JNK Thanks I am trying right now...
It seems to operate like GROUP BY on Oracle
thanks
 
JNK
good deal
Anyone in the room wanna help me with some XML?
Before I go buy some shoestrings to hang myself with
 
@JNK Are you trying to use regex to parse it ;-)
 
JNK
5:38 PM
yeah is that bad?
Tony the Pony, he comes!
 
4431
A: RegEx match open tags except XHTML self-contained tags

bobinceYou can't parse [X]HTML with regex. Because HTML can't be parsed by regex. Regex is not a tool that can be used to correctly parse HTML. As I have answered in HTML-and-regex questions here so many times before, the use of regex will not allow you to consume HTML. Regular expressions are a tool th...

 
JNK
yeah I know :)
 
This stored procedure may run until the end of time.
 
JNK
@Zane you at new place yet?
 
@JNK yup. Many many things for me to fix here.
 
JNK
5:39 PM
awesome
 
However they are at least warm to the idea of fixing them. While wand was more concerned with putting all their efforts towards fucking up my accomplishments.
 
JNK
you're at Wells Fargo?
 
@JNK yeah.
 
JNK
cool. My mom worked at Wachovia for many years
 
@JNK you and I seem to have a lot of work linkages.
 
JNK
5:42 PM
yeah we do
You ever manage restaurants?
or a bakery?
 
@Jnk nope before this I worked in every industry imagineable but never ever management.
I'm far to much of a prick to be in management.
 
talk about a change in requirements from the OP
I achieved this by other means also . but prob with this approach is that it will have different name1 values for different records . my requirement is aa should be always name1 , 98 should be always name 2 , kki should be always name 3 so on . if records doesnt have wild cardswith name as aa for those name1 should be null similarly other fields with 1 also null as the record is not having a wildcard with aa. — Kuntady Nithesh 10 hours ago
 
HOLY CHIT
remember the schema question from the other day ... where a user posted an answer that @AaronBertrand went back-and-forth with????
THAT'S MY DEV!!!!!!!!!!!!!!!
4
3
A: What does 'reference..' mean in SQL syntax?

RandomUs1rreference..mfg_year_month_ww is the short hand for reference.dbo.mfg_year_month_ww basically it means use default schema.

 
JNK
ARGH XML
damn you and your case sensitivity
 
5:55 PM
@JNK I was waiting for you to ask a question but you never did
 
JNK
I ended up getting it
 
wasn't there a time when Aaron said he wasn't ever going to answer questions on SO?
4
 
JNK
I was using XQUERY to get a certain node
 
@swasheck That happened to me once
 
@swasheck proof?
 
JNK
5:56 PM
but when I put the guid into a SQL table it puts it all in upper
my values in the XML are all lower
 
I noticed a question that demonstrated gross incompetence and mentioned some very specific unpopular frameworks in a certain combination that piqued my interest...
I invited the user to chat to talk about his problem and basically teach him basics...
 
@FreshPrinceOfSO i dont want to give too much proof ... but he just posted that question based on an im conversation we've been having on a classic asp application
i told him to take it to SO (mostly so that i could ferret him out)
 
I then asked where he was from and he said Pittsburgh, thats when I knew he was in the same company somewhere
 
JNK
WOO IT WORKS
 
also ... his website is baxter.com which is where we both work :), @FreshPrinceOfSO
 
5:58 PM
I further started talking to him and found that the new job i start in a couple weeks, he will be under me
 
JNK
@maple_shaft this is recent?
 
@JNK A couple months ago...
 
JNK
You are in pitt?
I think we talked about this before
 
@JNK Yeah I think so, you have family out towards Robinson Twp Moon area right?
 
JNK
My inlaws are in wheeling
 
6:02 PM
please shoot me
 
@swasheck You can now vote to close on SO
 
@maple_shaft thanks
 
select exists(select 1);
postgres is awesome :)
 
@JNK A quick question. Is it bad form to explain that a bounty was to reward a user?
 
JNK
6:11 PM
@Lamak explain to whom?
They are your reps, spend them how you want
as long as you aren't abusing anything I think it's fine
I did a couple for Aaron about a year ago for the same thing
 
@JNK I was thinking to reply this comment
Why the enormous bounty? — boisvert 20 hours ago
@JNK but don't wanna put the bounty on risk if someone flags it because I did it for the wrong reasons or whatever.
 
JNK
You don't have to explain yourself if you don't want
 
just making sure
 
JNK
If that was bad then they wouldn't have the option to "reward existing answer"
It's not like you are going around upvoting all of his posts
bounties are rep-neutral
 
@JNK yeah, I would never
 
JNK
6:13 PM
it cost you every point you gave him
so it's not gaming anything since those are your rep points
 
that's what I thought. Just wanted to check with a mod beforehand
 
JNK
I think it's fine and also you don't have to explain it
You can say "because FREEEEEEDOM!"
 
@JNK nice
@boisvert because FREEEEEEDOM!!! — Lamak 9 secs ago
 
JNK
lol
 
so how does this work then? whats the subject? Only just found this option and i need a bit of advice but i'm not sure where to ask...
 
6:22 PM
@Fabian'Mumbles'Wiesner how does what work?
 
JNK
@Fabian'Mumbles'Wiesner REALLY need a lot more explanation of what the hell you're referring to :)
 
well, is this just a broad (DBA) topic chat?
 
JNK
databases
ostensibly it's linked to the DBA.SE site but most of us are active on SO as well
 
:) sorry guys, just trying to figure this all out, new here haha.
 
JNK
and yeah DBAs or database devs or whatever
@Fabian'Mumbles'Wiesner no problem
do you need technical advice?
 
6:23 PM
so could i ask you guys a question about career paths etc?
 
JNK
yes better to do it here than the site
 
yeah, i found that out the hardway... :)
Well i guess best dive into it then...
I've really only just started playing with SQl and i really enjoy it. I'm in my very early 20's and I just left my job as an estate agent to pursue studying for the TSQL exams. .. I seem to have a problem though... I dont acctually know what kind of job im looking for to get a foot in the door in the industry. I know its not quite DBA stuff but I can find help anywhere.
 
JNK
@Fabian'Mumbles'Wiesner yeah you want to avoid DBA stuff for a while
is going back to school an option for you?
 
@Fabian'Mumbles'Wiesner and, what country do you live on?
 
unfortunately not. I live in the Uk and at this point in time its too tough. I understand DBA isn't what i should be looking at for a good 10 years but where do i start?
 
6:35 PM
@Fabian'Mumbles'Wiesner I don't think I can give you good advice, sorry. The scenario where I live is really completely different than the UK
 
JNK
I started as a data analyst
 
Honestly, im just looking for any friendly advice, like how to find an intern position or what job would help lead me to the DBA path
Appreciate it though :)
 
JNK
bascially need to understand relational tables and data but it gave me room to do other things and learn the DB stuff
<--- in the US if it matters
 
ok, for me the country doesnt matter, i just need to come up with a plan!
so how did you go about getting a job in data analysis?
I'm lucky in that i seem to have a good aptitude for this stuff and i seem to grasp it quite easily, but that doesnt help get a job hah
 
JNK
I knew someone
And got a recommendation. My career path was very convoluted. Restaurant worker -> restaurant manager -> Restaurant POS support person -> Helpdesk manager -> Data analyst -> SQL Developer
another option if you are excited about it is working on an open source project of some sort
 
6:40 PM
what does that entail?
 
JNK
find an open source project and work on it :)
 
haha fair enough :) but where do I look? I'm really sorry chaps but as you can tell, i'm a bit wet behind the ears with all this...
 
@Lamak Yeah, I had a reward from a guy who said thanks for providing good answers in this tag
 
@JNK Thanks, I really do appreciate it! Maybe someday I'll make it!
 
JNK
6:49 PM
give it time
 
@billinkc damn, I want to be the "victim" of a bounty too :-)
 
@Lamak me too
no bounty love in pivots
 
So how busy does this place get then?
 
@bluefeet You don't let them live long enough to see a bounty
 
@Fabian'Mumbles'Wiesner It would get busy if we didn't automate our responses.
3
 
6:54 PM
@billinkc yeah that is probably true
 
@bluefeet yeah, I need to impress someone
 
What can I say, William Todd Salzman is a quality chap.
 
@Lamak If I thought I could get away with it I would post a question and then a self-answer on how to pivot in each DB. But I think it wold get closed very quickly
 
@bluefeet yup, it would
:-)
but, alas, gonna keep answering some questions on SO till I get to 20k
 
7:25 PM
@Lamak BAM!!!! thanks
 
@swasheck now to use that power for DBA.SE's benefit. Migrate!!
 
gimme something to close
 
@swasheck go close the door
 
that felt good
 
@swasheck yeah, closing the door does feel good
 
7:31 PM
@FreshPrinceOfSO nice comments
 
That didn't seem that horrible of a question. I mean, they clearly didn't have a clue of how to write a query but meh, I thought it was salvageable
 
now im going to go toss some vtc on my dev's questions
also
screw xp_sendmail
@FreshPrinceOfSO pl/sql in mysql?????
 
@billinkc salvageable after the OP showed some effort
@swasheck almost blew my brains out
What have you tried so far? — brbcoding 6 mins ago
nothing yet... :( — marina 3 mins ago
 
so in all reality ... if someone could help this guy
1
Q: classic ASP Microsoft OLE DB Provider for ODBC Drivers error '80004005'

RandomUs1rI'm working on migrating an application from an IIS 6 to IIS 7.5 and am running into the weirdest issue: Microsoft OLE DB Provider for ODBC Drivers error '80004005' [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified /Complaints/Login.asp, line 175 ...

 
7:43 PM
@FreshPrinceOfSO stop it
 
@swasheck You stop it
Not even going to edit that.
 
@FreshPrinceOfSO in fairness, it's not his code
@FreshPrinceOfSO then i'm going to flag it
 
@swasheck He is treated like every other SO user. With brute force.
2
@swasheck Triple dog dare you
 
@FreshPrinceOfSO +1
BAM!
seems the mods have learned
 
@swasheck Doubt it
 
7:46 PM
@Krazer hiya ... sorry ... clicked the wrong thing can you clear the flag?
 
@FreshPrinceOfSO blocked. or do you want me to start posting youtube vids?
 
( ' 3')
 
@swasheck Hmm.. try this
@Krazer I don't speak alien.
 
@FreshPrinceOfSO bahah
 
7:49 PM
@FreshPrinceOfSO ( ̄ε ̄〃)b
 
@Krazer ఠ_ఠ
 
@FreshPrinceOfSO ಠ_ರೃ
 
@Krazer how fancy
 
@Krazer ლ(ಠ_ಠლ)
@Lamak lookofdisapproval.info .. or get the chrome extension
 
@FreshPrinceOfSO ( ๑°Д°๑)
 
7:52 PM
@Krazer This is getting uncomfortable.
 
щ(゚Д゚щ)(屮゚Д゚)屮
 
What the eff is this person asking?
-2
Q: SQL allowing an administrator to manually set a user account to be inactive

FlyToHeavenI have an administrator table with admin users. I want them to be able to manually set a user account to be inactive using a function or stored procedure. How can I do that?

 
@Krazer oh boy, we have a romance starting over here. Spring
@Krazer you change it, not fair, now my comment seems out of place....
 
@Lamak ( ◔ ◡ ◔)
 

« first day (841 days earlier)      last day (4028 days later) »