« first day (2011 days earlier)      last day (2857 days later) » 

7:37 AM
So Portugal finally managed to win a game of football in 90 minutes. Unbelievable that they got to the semifinals without doing so. Talk about peaking at the right time.
 
 
2 hours later…
9:14 AM
Mornin'
@Colin'tHart I hope they don't leave as champions
 
9:40 AM
 
 
1 hour later…
10:55 AM
@swasheck Are you BI-curious?
 
11:08 AM
I'm looking for the best solution to store XML data. As far as I can see, I should probably look for a document/NoSQL database, but I'd love suggestions.
 
Thanks!
Since I'm already in the Windows domain, SQL Server looks like the obvious choice.
 
@WilliamMariager I think all products run in Windows.
But as the guy who asked that question mentioned, Postgres doesn't fully support xquery, so it may not be the best choice.
And to be honest, yeah, Oracle and Postgres are more often to see them in Linux and Unix systems
 
Yeah.
I'm also working with C# and Visual Studio, which has a good designer to help with all the queries if I use SQL Server.
Now I just need to see if I can figure out how to automate table setup from XSD or XML definitions. It won't be completely bad if I can't, but it'd save me a lot of work.
 
12:10 PM
@WilliamMariager There is an old library that does that, complete schemas including (FKs) from XSDs
How to import XML into SQL Server with the XML Bulk Load component
http://support.microsoft.com/kb/316005
The XSDs are naturally tricky to set up.
How to create tables in a database using an XSD schema and SQLXMLBulkload
http://blogs.msdn.com/b/monicafrintu/archive/2007/06/12/how-to-create-tables-in-a-database-using-an-xsd-schema-and-sqlxmlbulkload.aspx
A bit "old school" but still a powerful technique.
 
Thanks, I'll give it a look. :) I can't change the XSDs so I guess I just have to hope for the best.
 
 
2 hours later…
1:56 PM
Can't seem to post a question. Is there an issue with the site?
 
so im pretty sure i have some "bad" characters
i need to find out what i have
char(13), etc
i would like to do a replace() when i find the bad characters - however i dont know what bad characters i have
this is SQL server. how can i accomplish this?
 
well, how could we know if we don't even understand what "bad" characters mean?
 
fair enough
all i want is number values 0-9 and/or a "." character
everything else i need stripped out.
i dont want to use a regex in a where clause because i still need the records that may contain other characters
so ex of a bad character would be a return character. i think that is char(13)
 
96
Q: How to strip all non-alphabetic characters from string in SQL Server?

Even MienHow could you remove all characters that are not alphabetic from a string? What about non-alphanumeric? Does this have to be a custom function or are there also more generalizable solutions?

Should be able to rework that to suit what you want.
 
sorry, don't really follow. "all i want is number values 0-9 and/or a "." character
everything else i need stripped out." and then "
i dont want to use a regex in a where clause because i still need the records that may contain other characters"
whic is it
7
Q: How can I strip non-numeric characters out of a string?

RachelUsers enter a search term in a box, and that value gets passed to a stored procedure and checked against a few different fields in the database. These fields are not always of the same data type. One field (phone number) consists of all numbers, so when checking it strips out all non-numeric cha...

 
2:03 PM
@Lamak I interpreted that to mean that he wants the "strip" done in the select clause, not the where clause.
 
correct @Colin'tHart
 
@Colin'tHart ah, that makes sense
 
2:17 PM
@JamesAnderson Didn't try actually posting anything but I do get the web form
 
@TomV Looks like it was something to do with the code in my question
I've linked to a gist instead
 
is there a regex for "any number of digits" ?
i can only seem to match numbers with specific counts of digits
 
what do you mean?
 
3:06 PM
i have values like 0.2, 23.2, 23.34, etc i want to pick up all of them and exclude any return characters or whatever other junk may be there
so my thought was to match <any number of digits between 0-9>\.<any # of digitz 0-9>
[0-9] only matches a single digit.
i dont really want do to [0-9]|[0-9][0-9]|/. etc..
so isnt there a way to say "match a range of digits of unspecified length" ?
 
@JzInqXc9Dg There is a regex for that but if you mean whether you can do that in T-SQL with its crippled regex support, then no.
A complex condition like this might do the job: @n LIKE '%[0-9]%.%[0-9]%' AND @n NOT LIKE '%[^0-9]%.%[^0-9]%'.
(not tested)
Perhaps the NOT LIKE part alone would be enough.
Although it would then match values like 123., .123 and . (in addition to 123.123).
 
really, my actual problem is i have this varchar column i need to convert to decimal. however, it seems to fail on some row(s) - i think this is because there is some extra "junk" in there. i know if i copy the values without trying to convert, i do see a return character. so i've then done a replace(), replacing char(13) with '' - this gets rid of those return characters.... but im still getting a conversion error
 
What's up folks?
 
so im guessing there may be some other "bad" characters. thus, i want to just "find all bad characters" in a query and see what i got.
 
3:21 PM
Hi, @Zane
 
so then my thought was to get to record with "bad" chars by using a regex to ensure i can grab pristine values
 
@mmarie When are you rolling back into town?
 
@Zane TBD. Possibly August for St Cloud again. I was in Mankato a few weeks ago.
@Zane you coming to SQL Sat KC this year?
 
Can't....
 
:-(
 
3:25 PM
Trying to save to buy a house.
 
Ah. I'm considering starting to do that myself.
But still going to SQL Sat KC
 
I might decide to go last minute but we'll see.
 
Obviously, I dont' have a house there anymore, but I am probably getting a AirBNB house. My dog is coming with me.
 
Nice.
 
So if you decide to come, you can probably crash in my AirBNB
I'm just going to spend the week there.
 
3:33 PM
You're still helping to run it so that makes sense.
Yeah I'll see. Let me look up the event day.
Call for speakers is still open until July?
 
@JzInqXc9Dg As part of investigation, you could return your varchar values converted to varbinary to see the character codes. I would probably first strip the good characters and leave the bad ones for observation, to make things easier.
 
Shit maybe I should write a new presentation.
 
@Zane Yep. July 26. I think you should write a new presentation. :)
 
@AndriyM but even the stripping the good chars.... ive basically been trying to do this. i cant figure out a good way
 
@JzInqXc9Dg Not sure about good but I'd try this: CAST(REPLACE(REPLACE(...(REPLACE(REPLACE(YourColumn, '0', ''), '1', '') ...), '9', ''), '.', '') AS varbinary(100)).
 
3:46 PM
good tip @AndriyM
so it looks liek the only bad char i need to worry about is 0x0D - which is char(13)
so that means i am stripping out bad chars correctly.
i thought that was the reason my conversion is failing. in that case idk why my conversion is failing!
varchar -> decimal
 
3:59 PM
Perhaps posting a question on the main site could help.
 
 
1 hour later…
5:28 PM
Holy crap a 2693 line stored procedure for a report.
@mmarie I'll have to do some thinking on that.
 
5:47 PM
The 2012 RBS computer system problems were technical issues affecting computers run by The Royal Bank of Scotland Group, including NatWest and Ulster Bank, which began on 19 June 2012. In 2014, RBS was fined £56m over the incident. == Cause == A software update was applied on 19 June 2012 to RBS's CA-7 software which controls its payment processing system. It later emerged that the update was corrupted by RBS technical staff. Customers' wages, payments and other transactions were disrupted. Some customers were unable to withdraw cash using ATMs or to see bank account details. Others faced fines...
That may or may not have been stored procedures that weighed in at multi-megabytes
 
Interesting. Someone may or may not have been called in to help fix some of the stuff. They said there were massive stored procs that were broken
hypothetically, etc
 
Jun 28 '12 at 18:53, by ConcernedOfTunbridgeWells
@swasheck RBS is a large bank here in the UK that outsourced a lot of its operations and has just had a very embarassing outage.
 
shrug Just passing along the story I was told at a SQL Saturday speaker supper
 
i heard talk of the sql sat in KC a little bit ago
ive never attended one. i work in Kc
 
@billinkc "An Architect's Strategy for Consistent SSIS with SQL Server 2016", hate to say it, but it sounds interesting
 
6:14 PM
@JzInqXc9Dg I heard the people there are all very bad individuals
 
haha
sounds like my kinda party
when is it?
 
@Lamak Yeah... we'll see how this goes ;)
 
sep 24th. ok..
 
Where do you work?
 
@billinkc Hell.
2
 
6:17 PM
@EBrown It's getting crowded in here
 
@billinkc Yeah, fortunately hell agreed to move me to another level.
 
@billinkc yeah, I know, even you can write an interesting title, but the session is another matter
 
@Lamak When I saw what got picked, I really wished I had written down the mental outline because I have no idea how I thought I was going to do it ;)
 
I mean, you say it yourself: "with fear fresh in your minds", so give them a good scare first
 
@EBrown I've been in your town, twice now to visit a client.
@Lamak That's what the kilt is for
 
6:21 PM
oh god
 
@billinkc id rather not say. lol sorry....
 
@billinkc Toledo? Or Hell?
 
@JzInqXc9Dg No worries. always working on my Who's Who list
 
will you be there? im sure we'll meet
 
@EBrown Toledo. Was last there beginning of June
 
6:23 PM
you should wear a tag that says your SO chat screenname lol jk
 
@JzInqXc9Dg I run it so I sorta gotta be there ;)
 
@billinkc Ah man, you should let me know next time your around here.
 
@EBrown Will do. Current phase is winding down but we're always adding new phases
 
@billinkc I'm always bouncing around the area. I get up to Detroit pretty frequently as well. Where are you located at primarily?
 
@billinkc A friend of mine will be a speaker too
 
6:25 PM
@EBrown KC. Fortunately, very little travel involved with this job
 
Ah, my company is currently in the stages of preparing to move me to the HQ office, in Wisconsin.
 
Milwaukee, Madison or some other city?
 
Eau Claire.
 
Haven't been there but seen the signs. When I go to the SQL Saturday in Madison, I drive in from Milwaukee.
 
Oh it's way north-west of Madison.
It's about 8.5 hours from my current house.
 
6:31 PM
You sticking with them or searching for a new job?
 
Well, at the moment, I'm sticking with them. They just promoted me, and I start that position next week. They told me if I finish my degree out, they'll transfer me to HQ in the IT department whenever I would like.
I have like 7 credit hours to getting my degree.
But, I'm not sure where to go after that.
I'll probably stay at this facility for the next 18 months in the position I start next week, and then move up after that.
 
7:05 PM
@mmarie Yeah I'm going to start doing some digging on SQL 2016 and start writing a session on the feature I find most interesting.
 
@Zane :-)
 
@EBrown Wisconsin isn't bad. They are our hillbilly neighbors and they love the packers waaaaay to much. We still love them though :)
 
@Zane Cheese curds. Also, Jes lives there. Also New Glarus Brewing.
 
@mmarie Unfortunately Jes isn't here or I would actually pick on Wisconsin. It's only fun to pick on Wisconsin if a representative is within earshot
However yes they have some awesome stuff over there.
@EBrown you'd actually be closer to Minneapolis St Paul than you would be to Madison. Also Chippewa Falls is pretty sweet.
 
 
1 hour later…
8:26 PM
You can't install R Tools for Visual Studio on top of SSDT only it seems.
 
8:58 PM
I was expecting germany to win
but, alas
 
@Lamak Yes
Another dumb penalty, which they couldn't fix this time
 
yeah, and a terrible mistake in the second goal, what was the defense doing?
 
exactly what I was thinking
you are under pressure, right back, you don't turn inside
e.v.e.r.
if you lose control you kick it in the stands
but you don't, ever, bring the ball towards the goal
 
yeah, they got too obsessed about don't just kick the ball as far away as they could
and they paid for it
 
otoh I was expecting Griezmann to fail against a stronger defense and he didn't
 
9:05 PM
yeah. Anyway, I am dissapointed
 
 
2 hours later…
11:12 PM
@Lamak you were in favour of Germany?
 

« first day (2011 days earlier)      last day (2857 days later) »