Αποτελέσματα Αναζήτησης
29 Ιουλ 2020 · In this tip we look at an easy way to build DDL for SQL Server tables using an Excel template to generate the T-SQL for the table structure.
17 Οκτ 2018 · INNER JOIN INFORMATION_SCHEMA.COLUMNS c ON t.TABLE_SCHEMA=c.TABLE_SCHEMA. AND t.TABLE_NAME=c.TABLE_NAME. WHERE t.TABLE_TYPE = 'BASE TABLE'; --With 'VIEW' you'd find views, or just omit the WHERE... You can use a simple Excel to connect to the database and read this result into a Sheet.
18 Ιουν 2020 · In this article we look at how we can generate SQL Server INSERT, UPDATE and DELETE statements by dynamically building the statements using data and formulas within Excel.
The SQL Spreads Table Creator is a new feature in SQL Spreads 5.0 to create SQL Server tables directly from within Excel and pre-load them with the existing data in your Excel spreadsheet. The Table Creator makes it possible to create SQL Server tables in just a few clicks.
The SQL CASE Expression. The CASE expression goes through conditions and returns a value when the first condition is met (like an if-then-else statement). So, once a condition is true, it will stop reading and return the result. If no conditions are true, it returns the value in the ELSE clause.
This Excel template allows you to simply enter the field the statement is based on along with the values and results without any quotation marks. The template then generates the entire case statement for you and all you have to do is copy and paste it. This has saved me countless hours. Go ahead and download the template using this link.
The CASE expression in SQL server allows us to apply if-then-else logic in a SQL statement. A CASE consists of a number of conditions with an accompanying custom result value in a case body followed by an optional ELSE clause.