News

See performance gains by using indexed views in SQL Server Your email has been sent A view is a saved T-SQL query in SQL Server. The view definition is stored by SQL Server so that it can be used ...
Why are there INFOMATION_SCHEMA and catalog views in SQL Server that do very similar things? For example, to retrieve a list of tables in a database, I can do it via sys.tables or INFORMATION ...
A reader recently pointed out to me that I could drastically simplify that retrieval code by leveraging SQL views. A SQL view pulls together multiple tables (and selected columns from those tables) ...
PROC SQL allows you to specify the ORDER BY clause in the CREATE VIEW statement. Every time a view is accessed, its data are sorted and displayed as specified by the ORDER BY clause. This sorting on ...
To do this in MS SQL Server, add the following to the beginning of your column selection: ROW_NUMBER() OVER( ORDER BY b.Id) as NID which alters the example view to: SELECT ROW_NUMBER() OVER( ORDER ...
A Version 6 PROC SQL Pass-Through view does not need to be updated to be used in Version 7 or Version 8. The conversion of PROC SQL Pass-Through views is automatic and does not require you to use the ...
I'm using MSSQL Server 2000. Is it possible to use SET statements in views. I need to use SET ARITHIGNORE ON & SET ARITHABORT OFF to allow a divide/0 to return null (which I can change to 0 using ...
"For NLtoSQL prompts, Copilot queries the database metadata to provide context about the tables and views in your database, and it can also assist with fixing and explaining T-SQL queries." Future ...