Exemplo de DATEADD com T-SQL

Fala pessoal, tudo bem com vocês?

Espero que sim, vamos de mais uma dica.

Pode acontecer de você estar em um projeto de dados, e o banco de dados estar configurado com UTC padrão, ficando diferente do UTC da sua região, caso você não seja o administrador e precise resolver de forma simples, você pode usar o DATEADD como parte da solução em um SELECT, veja:

Você deve alterar para sua região onde está -3.

Bacana né?

Espero ter ajudado com essa simples contribuição.
Desejo a todos uma ótima semana, um grande abraço e até o próximo post pessoal!

Felippe Santos

Example using DATEADD with T-SQL

Hi Guys, how are you doing?

I hope you are doing well! Here I come to share one more tip with you.

It may happen that you are in a data project and the database is setting with default UTC, getting different from the UTC of your region, whether you are not the administrator and need to solve in a simple way, can you use DATEADD such as part of the solution in a SELECT, look:

You must change to your region where is -3.

That’s cool, isn’t it?

I hope I helped you with this simple contribution.
I wish you all have a great week, warm hugs and I´ll see you on our next post guys

Santos, Felippe

Deixe uma resposta