February 12, 2024 at 12:00 am
Comments posted to this topic are about the item Writing SQL Server code with AI using GitHub Copilot
February 12, 2024 at 4:29 pm
This is a really nice article, but it's a bit scary. Suppose AI generated a script but didn't "know" that a division by 0 could occur since no training example encountered it? Would always check the divisor in any division where 0 could possibly occur? That would be impressive.
February 12, 2024 at 7:10 pm
A while ago when I looked into GitHub Copilot, the service was based on ChatGPT-3.5 which is/was quite inferior imo to the ChatGPT-4 which was available at the time. I just checked again and apparently GitHub Copilot is now a multi-model combination of GPT's 3 and 4.
https://github.com/orgs/community/discussions/56397
Yes, both models are in play. Each model is being used where it is most effective. We'll have more nitty-gritty details in an upcoming blogpost, stay tuned.
Want to know more? Ha, "stay tuned" maybe they'll let you know in a few weeks, if ever
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
February 12, 2024 at 7:33 pm
Longtime SQL Server engineer, I've been experimenting with it quite a lot. Initial findings:
February 14, 2024 at 8:27 pm
...We'll have more nitty-gritty details in an upcoming blogpost, stay tuned.
Ha, "stay tuned" maybe they'll let you know in a few weeks, if ever
Almost reads like a teenager blog where they posted something like, "Sorry I've been studying a lot, but I plan to really get back into my blog! Stay tuned!!!1!" That of course was the last post, 2.5 years ago.
February 14, 2024 at 8:45 pm
Longtime SQL Server engineer, I've been experimenting with it quite a lot.
I don't have the time or patience to mess with it at this stage of my career, but I'm genuinely curious; does AI actually know the difference between set theory and object-oriented programming? The biggest education I received in SQL was 15 years ago, right here in these forums with Jeff Moden's superb article about Tally tables. Many a SQL novice guru has entered this realm thinking like an OO programmer and absolutely destroyed production code with While loops and function calls. If AI uses either of these in its code, then it will need educated on Jeff's article. However, if it explains the need to add a Tally table (or an on-the-fly CTE), then my hats off to it...but I doubt that's the case. I really am genuinely curious here; does it understand data sets?
February 14, 2024 at 9:48 pm
thisisfutile - Don't expect it to write the best code or know the optimal solution to a broader problem.
Think of it this way.
You are (still) the brain who must already plan and be thinking of best approach to solve a problem, know the first words of what will be the SQL (to get it started), and know when you see it what is appropriate code or no. (in this respect, the copilot is far less powerful in the hands of a SQL novice).
This is just your instant boilerplate code writer companion.
The sheer amount of SQL you would ordinarily write line-by-line, but can now just lead off with a few words (and the rest of the block is obvious), is a bit shocking. I thought it would maybe shave a little bit of time, but it ended up turning the first non-exploratory case from an 8-hour task to 2 hours. I guess I never realized just how much of SQL writing is so repetitive.
February 14, 2024 at 10:15 pm
The sheer amount of SQL you would ordinarily write line-by-line, but can now just lead off with a few words (and the rest of the block is obvious), is a bit shocking.
Fascinating! Thanks for the feedback. I just see the novice taking anything they throw at it and putting the results into production code. I'm very curious what portion of that will be OO vs set logic. I really do need to mess with it, but you know what they say about old dogs...that's right...we lay around and fart! No, wait, there's another more appropriate saying...I guess I should ask AI. 😛
Viewing 8 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply