Skip to content

Instantly share code, notes, and snippets.

View danilopo's full-sized avatar
🎯
Focusing

Danilo Oliveira danilopo

🎯
Focusing
View GitHub Profile
@danilopo
danilopo / gist:04702605fe1cec1cc7366b0fbcac5c3e
Created March 15, 2023 02:00 — forked from metaskills/gist:893599
A Copy Of sp_MSforeachtable Stored Procedure For Azure, Uses sp_MSforeach_worker
CREATE proc [dbo].[sp_MSforeachtable]
@command1 nvarchar(2000), @replacechar nchar(1) = N'?', @command2 nvarchar(2000) = null,
@command3 nvarchar(2000) = null, @whereand nvarchar(2000) = null,
@precommand nvarchar(2000) = null, @postcommand nvarchar(2000) = null
AS
declare @mscat nvarchar(12)
select @mscat = ltrim(str(convert(int, 0x0002)))
if (@precommand is not null)
exec(@precommand)
@danilopo
danilopo / teste.txt
Last active October 1, 2019 21:55
Teste
public enum TipoDebito { ContaCorrente, Poupanca }
public class Debito {
public void Debitar(int valor, TipoDebito tipo) {
if (tipo == TipoDebito.Poupanca){
// Debita Poupanca
}
if (tipo == TipoDebito.ContaCorrente){