Call a SQL Server Stored Procedure using Excel Parameters

preview_player
Показать описание
Sometimes we need to dynamically transfer data from SQL Server into Excel without the manual cutting and pasting. By the end of this video, you'll know how to use sp_executesql and parameters to pass data between Excel and SQL Server. Unlike the first video where I demonstrated using a raw SQL query, parameterized queries can improve query performance by avoiding the need for the database engine to compile the same query multiple times. Additionally, sp_executesql is more secure, as it helps prevent SQL injection attacks.

★☆★ Join this channel to get access to perks: ★☆★

#SQL #analytics #tsql #excel #dataanalyst #data

★☆★ FOLLOW ME BELOW: ★☆★
Рекомендации по теме
Комментарии
Автор

Hey Anthony nice video. What do I need to do if instead of details I want to do pivot table representation? meaning I want to do all this, but then data needs to be transformed to a pivot table without user interaction.

justuju
Автор

Thank you for this video it works perfectly, but i have the error 438 when we run this macro in an other PC

oussamakherroub
Автор

Followed everything. Runs great on mine but some other users get runtime error 1004 on the refresh line of the macro. Thoughts?

HerbertWoelffer
Автор

how to create stored procedure please give me a video step by step

devendrateluguchannel
Автор

I cant get my button to execute I click it and nothing I tried this 3 times and I dont see anything wrong

jaygibbs
Автор

how is this in anyway better than MSQuery where i could just do {Call MyStoredProcedure(?, ?, ?)}. Not a bit of VBA or a macro, i could just assign the 3 parameters to cells on the sheet.

jdwyer
Автор

thanks for the video, please can share this file with us so we can edit it according to our need or share the code you pasted. I will be much greafull thank you sir

emmanuel.aggrey
Автор

Very nice but the video is fast. Please see if you can make it go slow.

mnvsaikiran