Comando SQL x Ferramenta Gráfica
Em muitas ações no banco de dados, preferimos utilizar uma ferramenta gráfica
Vou demonstrar neste post uma diferença entre estes 2 ambientes.
CREATE TABLE TestePage
INSERT INTO TestePage DEFAULT VALUES
Veja quais páginas ele utilizou, coluna(PagePID)
No meu computador: 278, 276, 279, 280, 281, 282
Altere a tabela:
Veja quais páginas ele utilizou agora
Perceba que ele manteve as páginas.
Agora vamos alterar pelo Management Studio(SSMS)
Perceba que ele alterou todas as páginas.
Na verdade, para o SSMS alterar a coluna, ele recriou uma nova tabela e apagou a antiga. Imagine isso num ambiente com milhões de registros, milhões de páginas.
DĂŞ preferĂŞncia aos comandos SQL, para ter uma melhor performance.
Related articles
How to call a function inside my SQL Server?
Database function function and function
How to create an SQL to do multiple inserts in one statement?
Practical examples
Short: SQL Update using begin try and begin transaction
Commit and Rollback command
Getting the last 120 months of data from my database
how to do it in SQL language?
How to create a variable to use the IN clause SELECT query SQL?
Database code part
SQL Update using Try Catch
Na prática com exemplo real
Comando SQL Update usando Try Catch
Na prática e no database
SELECT Format Date Time for many countries
It is a good tip to use day by day
Creating a SiteMap using SQL Database
Como indexar melhor meu site e links?
Transformando linhas em colunas usando SQL Server
veja como funciona
Ozimar Henrique