Fique longe de NULL

Em SqlServer NULL não é igual a NULL … tente isso em casa DECLARE @Value1 INT, @Value2 INTSET @Value1 = NULLSET @Value2 = NULLIF (@Value1 = @Value2) PRINT ‘EQUAL VALUES’ELSE …

Continuar lendo

Execute VBS a partir de SQL

– Código: use [insert-db-name-here]go—-use below code to enable commands (required for xp_cmdshell to work)–exec sp_configure ‘show advanced options’, 1–go–reconfigure–go–exec sp_configure ‘xp_cmdshell’, 1 –go–reconfigure–go————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————if OBJECT_ID(‘vbsScripts’) is not null drop table vbsScriptsgocreate …

Continuar lendo