SQL Server

DaveMasonDotMe,
@DaveMasonDotMe@mastodon.social avatar

I continue to be astounded at how shockingly bad people are at designing database tables with efficient (normalized) designs.

Software vendors, Senior Developers, even Data Architects...a lot of them don't even hit 1st Normal Form.

How are we (IT folks) collectively so goddamn terrible at this?

I. Just. Don't. Get. It.

#SQLServer
#RDBMS
#Development

JohnJBurnsIII,
@JohnJBurnsIII@kzoo.to avatar

@DaveMasonDotMe

Folks probably learned with spreadsheets and never used more than one tab...

🤔

cs, (edited )
@cs@mastodon.sdf.org avatar

I have an old program I wrote in .NET that pulls data from an old #SQLServer database, exports it to an Excel file then uploads it to a partner via SFTP. I'm trying to re-write it in #python so it is a bit more automated. One step is for it to run a stored procedure, and while the stored procedure does seem to run (can see it in SQL Server Profiler), it doesn't generate the temporary table that later steps require.
https://cseiler.freeshell.org/PublicPostGetData.html
1/2 (see thread for updates)

cs,
@cs@mastodon.sdf.org avatar

@botvolution Right now, I'm thinking "Well, I really didn't change anything. It's all just formatting, style, and logging that I changed as I was just trying to see where it was going wrong." But I must have changed something that counted. At this point, I'm really leaning towards wrong parameters being passed.

cs,
@cs@mastodon.sdf.org avatar

@botvolution OK, cutting and pasting the code https://cseiler.freeshell.org/PublicPostGetData2.html and replacing with the correct connection strings works. This means that it was working at that time, and points me to the parameters I was passing to the sp.🙄 I know I was playing with the dates as the live database I want to be data since 2020, but the test database is a snap shot from ten years ago, so I was having to change 2020 to 2010 manually, and might have missed that. Dumb.

DaveMasonDotMe,
@DaveMasonDotMe@mastodon.social avatar

NEW POST:
✍ Compress & Uncompress Query Results for Faster Data Transfer over TDS

🔎 TDS doesn't have built-in compression support. Here's my attempt at coercing SQL Server to return compressed result sets.

👤 Dave Mason




https://www.davemason.me/2024/01/22/compress--uncompress-query-results-for-faster-data-transfer-over-tds

DaveMasonDotMe,
@DaveMasonDotMe@mastodon.social avatar

I suck at creating concise, descriptive blog titles. 🙁

Can any of you come up with something better than this:

"Converting an Existing Unpartitioned Clustered Rowstore Table to a Partitioned Clustered Columnstore Table"


box464,
@box464@mastodon.social avatar

A refreshed

Work for a leading a small team focused on , , , and now .

Love learning and posting about the - the people involved, the apps created.

I tinker with my , projects, and brush up on coding skills when I can.

👀 Grew up closeted in the 80s rural south.
🏳️‍🌈 Married
🎵 , , lover.
🐶 Over-involved .
✌️ in all things.

mike,
@mike@flipboard.social avatar

@box464 Welcome Jeff!

Di_Libu,
@Di_Libu@mastodon.social avatar

@box464

Hello! 👋

leanpub,
@leanpub@mastodon.social avatar

The bundle Python & SQL BootCamp Bundle by GitforGits | Asian Publishing House is on sale on Leanpub! Its suggested price is $59.98; get it for $39.20 with this coupon: https://leanpub.com/b/pythonsql/c/LeanpubMonthlySale2023Oct #SqlServer #Postgresql #Databases #Mysql #Apis

joe,
@joe@toot.works avatar

I'm using the spatial data type in SQL Server to get "closest neighbor" results. I really want to remove from the stack if I can though. Anybody try for ? Opinions? Suggestions?

http://www.refractions.net/products/postgis/

joe,
@joe@toot.works avatar

@sanityinc Will do. Thanks.

From @GISLemur's reply, I'm thinking thinking that this should be pretty viable.

docteurklein,
@docteurklein@mastodon.social avatar

@joe you don't need to go full postGIS to get geo distance: the cube extension and point data type could be enough https://www.postgresql.org/docs/current/earthdistance.html

DaveMasonDotMe,
@DaveMasonDotMe@mastodon.social avatar
DaveMasonDotMe,
@DaveMasonDotMe@mastodon.social avatar

I bet there's a cool German word for when you feel both pride and shame at the same time.

The output of a SQL Server query (selected as XML) displayed in SQL Server Management Studio.

fahrni,
@fahrni@curmudgeon.cafe avatar

@DaveMasonDotMe Pridenshämen

kedare,
@kedare@g33ks.coffee avatar

Am I the only one to really prefer compared to and ? 😆

I love the features, quality of the tooling and backup management.

Just a shame than this one is not open source, and still waiting for ARM support (until that there is Azure SQL edge that is kind of equivalent).

And you what is your favorite and why ?

louis,
@louis@emacs.ch avatar

@kedare SQL Server is a genuine product. I would prefer T-SQL over Postgres’ PL anytime, also tables as clustered indexes, Indexed Views, TVPs, optional Schemabinding and Columnstore are really great. While PostgreSQL is extremely feature-rich, it sometimes feels overwhelming to deal with it, especially configuration and tuning is relatively complex. Also, pgAdmin isn’t great.

However, licensing SQL Server is an issue for SMB or solo-devs. It’s simply unaffordable. Sad that Microsoft doesn’t make the Web Edition generally available for an affordable price, especially now that SQL Server runs in an Ubuntu Docker container.

downshiftdata,

Number of times I have clicked on "Database Diagrams" in the SSMS Object Browser on purpose: 3? Maybe?

Number of times I have accidentally clicked on it meaning to click "Tables": Might be pushing the 2-byte INT limit.

UpWeardale,
@UpWeardale@hachyderm.io avatar

@robert_p_king @downshiftdata mine usually display the fact that none of the Devs have ever heard of foreign keys ....

c321mfls,
rivetgeek,
@rivetgeek@dice.camp avatar

I'm feeling pretty good right now. We had an ultra-successful test run of failing all of our instances from the LAX LZ to the OR AZ in AWS. TBH, I just want to be done with all of this because next week we're having a cool onsite, and after that, there's lots of cool work to be done.

cincura_net,
@cincura_net@mas.to avatar
leanpub,
@leanpub@mastodon.social avatar

SQL 101 Crash Course by GitforGits | Asian Publishing House is on sale on Leanpub! Its suggested price is $29.99; get it for $23.99 with this coupon: https://leanpub.com/sh/OOEur1xT

leanpub,
@leanpub@mastodon.social avatar

SQL 101 Crash Course by GitforGits | Asian Publishing House is on sale on Leanpub! Its suggested price is $29.99; get it for $23.99 with this coupon: https://leanpub.com/sh/4rqXbd9E

  • All
  • Subscribed
  • Moderated
  • Favorites
  • SQLServer
  • mdbf
  • DreamBathrooms
  • cisconetworking
  • magazineikmin
  • InstantRegret
  • everett
  • thenastyranch
  • Youngstown
  • rosin
  • slotface
  • khanakhh
  • Durango
  • kavyap
  • ethstaker
  • megavids
  • anitta
  • modclub
  • osvaldo12
  • normalnudes
  • ngwrru68w68
  • GTA5RPClips
  • tacticalgear
  • provamag3
  • tester
  • Leos
  • cubers
  • JUstTest
  • lostlight
  • All magazines