T-SQL Solutions


102 results found for T-SQL Solutions, displaying items 1 - 20

Detailed Aggregates This article is only available to subscribers.  Sign up now and get instant access!

When you want more than just the summary data that GROUP BY can give, using COMPUTE and COMPUTE BY is the best way to get the details and aggregates.

SQL Server Magazine

Viewer Advisory This article is only available to subscribers.  Sign up now and get instant access!

Learn what you can and can't do with SQL Server views, and a few tips on better viewing habits.

SQL Server Magazine

User-Defined Data Types This article is only available to subscribers.  Sign up now and get instant access!

In SQL Server, data types can have owners, and in some circumstances, you might want to change a data type’s owner. But to do so, you must first understand user-defined data types and know how to find information about them in your database.

SQL Server Magazine

Do-It-Yourself Searching This article is only available to subscribers.  Sign up now and get instant access!

Do you need full-text search capabilities? Microsoft provides a full-text search component in SQL Server, but you might find that creating a custom solution is less expensive and easier to maintain.

SQL Server Magazine

Complicated Permissions This article is only available to subscribers.  Sign up now and get instant access!

Assigning permissions isn’t always straightforward, especially when you’re working with dependent objects. Here are some complications you might encounter in your permissions and how to solve the problems that can crop up.

SQL Server Magazine

The View from Here This article is only available to subscribers.  Sign up now and get instant access!

Part one in a series of articles that explain everything you need to know about using views and achieving the best query performance with them.

SQL Server Magazine

One Exception This article is only available to subscribers.  Sign up now and get instant access!

In general, the only kinds of permissions that are inheritable are those that you can grant. But one exception to this rule is the RAISERROR command.

SQL Server Magazine

T-SQL Tutor Project, December 2002 This article is only available to subscribers.  Sign up now and get instant access!

Here's a small homework assignment to help you create and access views.

SQL Server Magazine

Improving Retrieval Performance This article is only available to subscribers.  Sign up now and get instant access!

Use this method of rewriting queries to improve the performance of your custom search solution.

SQL Server Magazine

More Bitwise Wisdom This article is only available to subscribers.  Sign up now and get instant access!

In the second of two articles, Itzik Ben-Gan explains how to use the XOR and NOT bitwise operators and shows you how to how to extend the bitwise manipulation capabilities in T-SQL by writing your own user-defined functions.

SQL Server Magazine

Managing Permissions This article is only available to subscribers.  Sign up now and get instant access!

User permissions let you control exactly which users have access to what data. Learn how to use specific commands to set permissions and how to use system tables to track permissions information.

SQL Server Magazine

Making Sense of Sysperfinfo This article is only available to registered users.  Sign up now and get instant access!

Use the information in the sysperfinfo system table to put specific performance counter values into your T-SQL scripts.

SQL Server Magazine

Defining a Custom Sort Order This article is only available to subscribers.  Sign up now and get instant access!

Here are two ways to define a list in the sort order you choose.

SQL Server Magazine

Using the POWER() Function with a Negative Exponent This article is only available to subscribers.  Sign up now and get instant access!

It seems so easy: The query should return the decimal number you want when you use the POWER() function with a negative exponent. But hidden in this combination is a trap that Itzik Ben-Gan reveals.

SQL Server Magazine

Calculating a Percentage of Correct Answers This article is only available to subscribers.  Sign up now and get instant access!

Writing a query that calculates percentages from a bit column might prove to be more difficult than you think. Itzik Ben-Gan describes an efficient method.

SQL Server Magazine

Using CAST() and AVG() Functions to Return Numeric Values This article is only available to subscribers.  Sign up now and get instant access!

When you try to convert sales data in an integer column to numeric form, you might receive a different result than you expect. Here’s a way to avoid the pitfalls.

SQL Server Magazine

Managing Multiple-User Access This article is only available to subscribers.  Sign up now and get instant access!

Because they both have generalized purposes, people sometimes confuse the PUBLIC role and the guest username. Learn why this special role and special username are different and how to use them effectively.

SQL Server Magazine

Get Wise About Bits This article is only available to subscribers.  Sign up now and get instant access!

Storing two-valued flags such as on/off or true/false can create sticky problems for developers. Learn how you can use bitwise operators to create flexibility in manipulating flags.

SQL Server Magazine

Simplify, Parameterize, Reuse This article is only available to subscribers.  Sign up now and get instant access!

Until the advent of SQL Server 2000, if you wanted to encapsulate a simple expression, you had to hard-code it in a view. Now you can use a UDF to encapsulate the expression and reuse it. Flexibility is the key.

SQL Server Magazine

T-SQL Tutor Project This article is only available to subscribers.  Sign up now and get instant access!

This homework assignment can help you further improve your ability to write scalar UDFs.

SQL Server Magazine

Add these Headlines to your Website



     [1]  2  3  4  5  6   next page