September 13, 2017 at 8:17 am
Thom A - Wednesday, September 13, 2017 7:54 AMBrainDonor - Wednesday, September 13, 2017 7:50 AMYeah, I've been asked if I can look at some SQL code that is in VBA/Excel, to correct an error in the spreadsheet. The database it is looking at (nothing to do with me, I hasten to add) has no foreign keys, no constraints, no stored procedures, no extended properties. Every little bit of logic must be in the front-end that uses that DB. And as it is a third-party app, just guess how willing they'd be to share what they know.So... Inline SQL everywhere...? 😀
According to some documentation I saw about 18 months ago or so, EBAY does the same thing (using Oracle). That may be part of the reason why they actually do need 600 DB servers (on that same report).
--Jeff Moden
Change is inevitable... Change for the better is not.
September 13, 2017 at 8:18 am
BrainDonor - Wednesday, September 13, 2017 7:50 AMLynn Pettis - Tuesday, September 12, 2017 12:38 PMOkay, having lots of fun working through a stored procedure that I will be rewriting. Taken about fifteen hours already just trying to figure out what it is doing and identifying requirements for the rewrite.I may have figured out the reason for at least on permanent table that was created in tempdb (head..desk) and that may be a lack of understand the scope of a temp table. Plus, if it needs to be a permanent table, put it in your database.
There is so much going on and absolutely no comments to explain what is going on that I feel like I am bleeding from my ears trying to figure things out.
Jeff, you'd be pulling out you F-15 pork chop launcher already!
Yeah, I've been asked if I can look at some SQL code that is in VBA/Excel, to correct an error in the spreadsheet. The database it is looking at (nothing to do with me, I hasten to add) has no foreign keys, no constraints, no stored procedures, no extended properties. Every little bit of logic must be in the front-end that uses that DB. And as it is a third-party app, just guess how willing they'd be to share what they know.
Sounds like someone is sipping water with 2 straws from the "portability" bong.
--Jeff Moden
Change is inevitable... Change for the better is not.
September 13, 2017 at 8:35 am
Jeff Moden - Wednesday, September 13, 2017 8:17 AMAccording to some documentation I saw about 18 months ago or so, EBAY does the same thing (using Oracle). That may be part of the reason why they actually do need 600 DB servers (on that same report).
The smell of opportunity ...
September 13, 2017 at 8:46 am
Steve Jones - SSC Editor - Wednesday, September 13, 2017 8:35 AMJeff Moden - Wednesday, September 13, 2017 8:17 AMAccording to some documentation I saw about 18 months ago or so, EBAY does the same thing (using Oracle). That may be part of the reason why they actually do need 600 DB servers (on that same report).The smell of opportunity ...
Weren't/aren't eBay owned by PayPal? One would think that a company that deals solely in online transactions would perhaps use a more manageable system, no?
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
September 13, 2017 at 8:55 am
Thom A - Wednesday, September 13, 2017 7:54 AMSo... Inline SQL everywhere...? 😀
Must be. I don't have the required access to that server to run a trace but I would love to. The code I have access to checks for specific values in certain columns but there are no dimension tables of any type in the database. I have no idea what is so special about 262339 in the WHERE clause.
Rumour has it that it used to be a FoxPro system and was just shoved into SQL Server with the absolute minimum amount of effort.
September 13, 2017 at 10:48 am
Thom A - Wednesday, September 13, 2017 7:54 AMBrainDonor - Wednesday, September 13, 2017 7:50 AMYeah, I've been asked if I can look at some SQL code that is in VBA/Excel, to correct an error in the spreadsheet. The database it is looking at (nothing to do with me, I hasten to add) has no foreign keys, no constraints, no stored procedures, no extended properties. Every little bit of logic must be in the front-end that uses that DB. And as it is a third-party app, just guess how willing they'd be to share what they know.So... Inline SQL everywhere...? 😀
I just had to investigate one of those spreadsheets last week... :sick:
September 13, 2017 at 3:31 pm
Well, I corrected a doc issue and submitted a PR to Microsoft yesterday. Today, my change was accepted and merged, and is on this page:
https://docs.microsoft.com/en-us/sql/relational-databases/security/authentication-access/principals-database-engine
My change is the sentence under the list of certificate based logins.
Maybe we can start to alter the docs to better cover the functionality of the platform.
September 13, 2017 at 7:16 pm
Started documenting the issues of the current code and the requirements for a rewrite. Managed to rewrite a segment of the existing code using the DRY principle. The OUTPUT clause and table variables sure come in handy for accomplishing this task.
September 14, 2017 at 5:19 am
Time for something completely unrelated to SQL, although if anyone is in Atlanta, GA next year the weekend before Labor Day, we could always arrange to meet up for a bit...
The wife and I have planned our next big vacation and we're going to DragonCon!
For those who don't know of it, their history: http://dragoncon.org/?q=history
This is probably one of *the* biggest US geek / nerd / cosplayer / comic book fan / SF fan / Fantasy fan / movie / TV cons around.
This is a convention that, this year, had a swarm (herd?) of people in inflatable T-Rex costumes disco dancing in the lobby of one of the host hotels.
Then on another evening an impromptu Jedi lightsaber fight on the steps of the same hotel, with around a dozen Jedis showing up...
Scientists, TV and movie actors, you name it...
Yes, I'm geeking out, can't help myself, just browsing the list of guests and Fan Tracks from this year is making me giddy...
September 14, 2017 at 8:02 am
jasona.work - Thursday, September 14, 2017 5:19 AMTime for something completely unrelated to SQL, although if anyone is in Atlanta, GA next year the weekend before Labor Day, we could always arrange to meet up for a bit...The wife and I have planned our next big vacation and we're going to DragonCon!
For those who don't know of it, their history: http://dragoncon.org/?q=history
This is probably one of *the* biggest US geek / nerd / cosplayer / comic book fan / SF fan / Fantasy fan / movie / TV cons around.
This is a convention that, this year, had a swarm (herd?) of people in inflatable T-Rex costumes disco dancing in the lobby of one of the host hotels.
Then on another evening an impromptu Jedi lightsaber fight on the steps of the same hotel, with around a dozen Jedis showing up...
Scientists, TV and movie actors, you name it...Yes, I'm geeking out, can't help myself, just browsing the list of guests and Fan Tracks from this year is making me giddy...
I should remain in Atlanta for next year. I hope that my wife let my inner geek free to attend to DragonCon at some time, there has been something going on for that weekend (this year was moving to a house). Anyway, it'll be nice to meet you since we didn't meet when I was in Michigan.
September 14, 2017 at 2:11 pm
Time to start planning for SQLSaturday #700 in Colorado Springs, CO next year!!
September 14, 2017 at 2:15 pm
Lynn Pettis - Thursday, September 14, 2017 2:11 PMTime to start planning for SQLSaturday #700 in Colorado Springs, CO next year!!
Very cool! We got a round number!
September 14, 2017 at 5:36 pm
Steve Jones - SSC Editor - Thursday, September 14, 2017 2:15 PMLynn Pettis - Thursday, September 14, 2017 2:11 PMTime to start planning for SQLSaturday #700 in Colorado Springs, CO next year!!Very cool! We got a round number!
Will both of you be there for that one?
Gaahhh... crud... never mind. The hotel prices are nuts that year.
--Jeff Moden
Change is inevitable... Change for the better is not.
September 14, 2017 at 6:23 pm
Jeff Moden - Thursday, September 14, 2017 5:36 PMSteve Jones - SSC Editor - Thursday, September 14, 2017 2:15 PMLynn Pettis - Thursday, September 14, 2017 2:11 PMTime to start planning for SQLSaturday #700 in Colorado Springs, CO next year!!Very cool! We got a round number!
Will both of you be there for that one?
Gaahhh... crud... never mind. The hotel prices are nuts that year.
Not making any promises but if I cleanup my dad's basement and move a bed into the room daughter used while home for the summer (she slept on the couch), I could probably put you up with me. Just a matter of motivation on my part.
I'd also have to check with my dad to be sure he was okay with this, but don't see why he wouldn't.
September 14, 2017 at 6:28 pm
And, yes Jeff, I will be there since I am one of the directors of the Colorado Springs User Group. I sort of have to be there. Whether or not I am speaking, heaven only knows at this point.
Viewing 15 posts - 59,911 through 59,925 (of 66,712 total)
You must be logged in to reply to this topic. Login to reply