|
At the rate of expansion how long will it be before the belt needs to be let out?
I'm not sure how many cookies it makes to be happy, but so far it's not 27.
JaxCoder.com
|
|
|
|
|
Mike Hankey wrote: the belt needs to be let out
They can't let it out any more until they make another star...
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
By definition a metal pillar cannot be a monolith.
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, weighing all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius
Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt
|
|
|
|
|
You are of course right: monolith= single rock (Ancient Greek: μόνος (monos) single, λίθος (lithos) rocky).
Goes to show even reputable joint like BBC have (semi)illiterate journalists ( Utah monolith: Has the mysterious metal object disappeared?[^]). In the words of Paul Simon: "...the man ain't got no culture"
Mircea
|
|
|
|
|
Mircea Neacsu wrote: In the words of Paul Simon: "...the man ain't got no culture"
Is that better or worse than, "the only culture he has is lactobacillus acidophilus"?
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, weighing all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius
Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt
|
|
|
|
|
That's another culture
Quote: I knew a man, his brain was so small
He couldn't think of nothing at all
Not the same as you and me
He doesn't dig poetry
He's so unhip that when you say Dylan
He thinks you're talking about Dylan Thomas
Whoever he was
The man ain't got no culture
But it's alright, ma, everybody must get stoned
Do you want to start "culture wars" here?
Mircea
|
|
|
|
|
We have enough germ warfare going on as it is.
"They have a consciousness, they have a life, they have a soul! Damn you! Let the rabbits wear glasses! Save our brothers! Can I get an amen?"
|
|
|
|
|
There is no good way to store good SQL queries for future use.
Just, no good way.
|
|
|
|
|
I keep a text file of 'em: "GoodSQLQueries.txt" it's called.
It's easy to copy'n'paste 'em when I need 'em. Or just use an SP.
What's the problem?
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Well, I have something like that too, but it's difficult to find the right one amidst all of the other chaff.
I wish there was a way to categorize them or something like that. And don't offer me the idea of making sections in my text file, cuz i'm lazy (of course -- I'm a dev).
|
|
|
|
|
I have sections in my text file ... because I'm lazy ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
OriginalGriff wrote: I have sections in my text file ... because I'm lazy ...
That made me laugh too.
I would like:
1) way to pick tables and fields (returned in query)
2) have notes that remind me what the query does
3) have a good way to find them again -- this wouldn't be easy to do
I end up saving large SQL text files all over the place and then later searching through them and it takes just about as long to find them as it does to just think it all out again.
I'm just wishing over here. It would be very difficult to really create a good organizer. I guess I'm even lazier than I thought. (which I didn't think was possible)
|
|
|
|
|
Visual has/had a code snippets kind of thing. Maybe that could be adapted.
"They have a consciousness, they have a life, they have a soul! Damn you! Let the rabbits wear glasses! Save our brothers! Can I get an amen?"
|
|
|
|
|
You can also set it up in the VS toolbox as boilerplate code to drag and drop into an app - I use it for boilerplate SQL access to be "tuned" for a specific purpose.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I use grepWin on windows to search the content of files. Has regex capabilities too. I use it all the time to find old SQL queries in our installer's collection of SQL files. The secret is to put all the text files in the same (root) folder.
Bond
Keep all things as simple as possible, but no simpler. -said someone, somewhere
|
|
|
|
|
Yeah this is the way most SQL solutions that people have mentioned are done. Text files in a directory, maybe use a file naming convention and then a search tool to find stuff in the SQL itself. It all works and you can wrap a process around it. It just seems like there would be a nice tool.
|
|
|
|
|
Could you store them in a table? You will need to do data entry no matter which solution you choose, so keeping them in a utilities database or table would work as well as anything else.
|
|
|
|
|
Then amend your post and write: "there is no good way for a lazy dev to keep track of good SQL queries"....
|
|
|
|
|
I use OneNote -- I have a notebook for each database, with sections labeled by tables and/or area. Each query or code segment has a comment briefing describing what it does. This makes hunting for things much easier.
|
|
|
|
|
I'm not sure I follow, would you mind expanding?
Wrong is evil and must be defeated. - Jeff Ello
Never stop dreaming - Freddie Kruger
|
|
|
|
|
There's no great way to :
1) store and categorize good sql
2) also would like a way to insert table names and field names so you could select some things and then just fire off the SQL.
3) need a place for notes about what the sql actually does.
I tend to forget sql very fast -- sql is boring and declarative and I always have to look at it too much to remember what it does. Sometimes I just want to find an old query that does that thing you know?
|
|
|
|
|
1) I simply use the file system. Every file gets a [declarative name].sql, so you can doubleclick and it will start SSMS or whatever program is associated. The master folder is also added to TortoiseHg for versioning
2) Then you need to use dynamic SQL, which is a whole can of worms by itself, and also a possible source of so called SQL-injection
3) I use a fancy invention called Comments for that. Just add them to forementioned Files
In Oracle you can also add comments directly to the tables and columns themselves, but in SQL Server you only have Extended Properties, which aren't nearly the same thing
Wrong is evil and must be defeated. - Jeff Ello
Never stop dreaming - Freddie Kruger
|
|
|
|
|
Jörgen Andersson wrote: 2) Then you need to use dynamic SQL, which is a whole can of worms by itself, and also a possible source of so called SQL-injection
I'm just talking about a local resource that I would use to call up previous queries that I've had to do to examine or update data manually. All of our work is done view SPs -- there are no ad-hoc SQL that are allowed to run against our DBs.
|
|
|
|
|
We have a database for saving queries like that as stored procs. Everybody has their own schema, and can see each other's procs. Most of them are specific to the table/view being queried.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|