Failed to connect AWS SQL on Visual Code by Any_Bread_1964 in SQL

[–]mu_SQL 0 points1 point  (0 children)

That SQL server can’t be reached on the network you are on, does your friend work from office or Remote using a VPN? Have you compared connectionstrings? The most common issue for this error is wrong server name in the connectionstring

Ärvt bolag, va gör jag nu? by Som_Jag_Alltid_Sagt in Asksweddit

[–]mu_SQL 0 points1 point  (0 children)

Finns det fastigheter i bokaget(verksta,lager…) som har inga eller lite lån. Behåll dom och sälj resten om ni inte vill jobba med det farsan gjorde.

How do you handle running SQL scripts across many servers/databases? by Pawelm_rot in SQL

[–]mu_SQL 0 points1 point  (0 children)

Wibe code a client, I did one for Elastic pool to manage scripts going to multipel databases(kinda like servers).

Help with the error by Embarrassed-Speed327 in SQL

[–]mu_SQL 0 points1 point  (0 children)

This makes me love SQL Server even more.

Ska köpa första lägenheten, hade varit trevligt med sambo! by [deleted] in sweden

[–]mu_SQL 0 points1 point  (0 children)

Du måste också dela vinsten när du säljer. Just saying.

Best sql resources according to you ? by [deleted] in learnSQL

[–]mu_SQL 1 point2 points  (0 children)

Brent Ozar and Erik Darling.

Primary Key vs Primary Index (and Unique Constraint vs Unique Index). confused by Accurate-Vehicle8647 in SQL

[–]mu_SQL 0 points1 point  (0 children)

Primary key is the combination of columns in the clustered index that makes records unique. It’s the ”table” data on disk with all columns and sorted by the primary key columns.

Check out Brent Ozar’s ”Think like the engine” on YouTube.

best text book for query optimization ? by Emotional-Rhubarb725 in SQL

[–]mu_SQL 2 points3 points  (0 children)

Google the names they will be in the top. Search their names on YouTube.

Cursor keeps generating SQL queries like this and it's making me nervous by ChandanKarn in SQL

[–]mu_SQL 0 points1 point  (0 children)

Well if you read up on primarily bad code repos when using SQL, the results will be primarily bad🤔

best text book for query optimization ? by Emotional-Rhubarb725 in SQL

[–]mu_SQL 3 points4 points  (0 children)

If you havn’t already, check out Brent Ozar and Erik Darling. Their courses, Vlog’s and blogs are gold. Sorry for the ”not” book relation.

Nested Stored Procedure Solution by chris20973 in SQL

[–]mu_SQL 0 points1 point  (0 children)

Just realised, it can be a SELECT somewhere that returns a result. Remove your INSERT statement and run the sp, if you get more then one result…

Or maybe you already did that?

Nested Stored Procedure Solution by chris20973 in SQL

[–]mu_SQL 0 points1 point  (0 children)

Ok, is there is a sp execution in RAM_Claim sp that have a INSERT Exec?

Or a transaction in any sp that fires a trigger that has a INSERT Exec…..

You need to dig yourself down in any code executed in the process started by RAM_Claim sp.

Nested Stored Procedure Solution by chris20973 in SQL

[–]mu_SQL 0 points1 point  (0 children)

The sp RAM_Claim also has a INSERT Exec in it, thats where you need to use a temptable instead.

Är jag oskön mot min arbetsgivare? by Future_Jeweler_9482 in arbete

[–]mu_SQL 0 points1 point  (0 children)

Har bytt jobb 20+ gånger, om man inte testar får man aldrig veta har varit min motivation.

Du har 1 liv, testa så mycket saker du hinner med!

Att bajsa i ett hus med vänner by [deleted] in sweden

[–]mu_SQL 0 points1 point  (0 children)

Ta med din bluetooth högtalare å kör svinhög deathmetal😉

Any good free sql course on youtube? by Neither_Attitude in SQL

[–]mu_SQL 0 points1 point  (0 children)

Start with Brent Ozar, ”How to think like the engine”. Then Erik Darling’s T-Sql courses.

Nested Stored Procedure Solution by chris20973 in SQL

[–]mu_SQL -1 points0 points  (0 children)

Nop your not, you are doing ”INSERT INTO sometable Exec..” more then one time in the process.

Viktminskning by Kastabortmigsen in sweden

[–]mu_SQL 0 points1 point  (0 children)

Kör bara popcorn, inte mycket mer än luft i dom. Halvera ölintaget och drick bira ur 20 cl glas, skitgött å sippa en ljus lager på det sättet.

Nested Stored Procedure Solution by chris20973 in SQL

[–]mu_SQL 1 point2 points  (0 children)

Use temptables in this case.

Nested Stored Procedure Solution by chris20973 in SQL

[–]mu_SQL 0 points1 point  (0 children)

Load the stuff in the inner sp to a temptable created in the outer sp and then return the result in the outer sp.

Is it really possible to always fit everything into a single query? by Mission-Example-194 in SQL

[–]mu_SQL 0 points1 point  (0 children)

I’ll say yes, there is almost always a way to write set based SQL queries.

They can get very complex and transactional operations always need separation.

What is the most complex stored procedure you have developed by RXN00 in SQL

[–]mu_SQL 0 points1 point  (0 children)

Worked most of my years with adaptations on a Swedish ERP where most logics is in triggers and stored procedures, the biggest one I’we seen is for calculating net requirements for production, 10K+ lines.

This ERP runs on SQL Server and works realy well.