Mike Taulty: 44 Amazing Silverlight 2.0 Screencasts
- Silverlight – Hello World
- Silverlight – Anatomy of an Application
- Silverlight – The VS Environment
- Silverlight – Content Controls
- Silverlight – Built-In Controls
- Silverlight – Width, Height, Margins, Padding, Alignment
- Silverlight – Using a GridSplitter
- Silverlight – Grid Layout
- Silverlight – StackPanel Layout
- Silverlight – Canvas Layout
- Silverlight – Databinding UI to .NET Classes
- Silverlight – Simple Styles
- Silverlight – Custom Types in XAML
- Silverlight – Binding with Conversion
- Silverlight – List Based Data Binding
- Silverlight – Simple User Control
- Silverlight – Templating a Button
- Silverlight – Resources from XAP/DLL/Site Of Origin
- Silverlight – Animations & Storyboards
- Silverlight – Uploads with WebClient
- Silverlight – Downloads with WebClient
- Silverlight – Calling HTTPS Web Services
- Silverlight – Calling Web Services
- Silverlight – Making Cross Domain Requests
- Silverlight – Using HttpWebRequest
- Silverlight – File Dialogs and User Files
- Silverlight – Using Sockets
- Silverlight – Using Isolated Storage
- Silverlight – .NET Code Modifying HTML
- Silverlight – Using Isolated Storage Quotas
- Silverlight – Calling JavaScript from .NET
- Silverlight – Evaluating JavaScript from .NET Code
- Silverlight – Handling HTML Events in .NET Code
- Silverlight – Handling .NET Events in JavaScript
- Silverlight – Calling .NET from JavaScript
- Silverlight – Displaying a Custom Splash Screen
- Silverlight – Passing Parameters from your Web Page
- Silverlight – Loading Media at Runtime
- Silverlight – Dynamically Loading Assemblies/Code
- Silverlight – Reading/Writing XML
- Silverlight – Multiple Threads with BackgroundWorker
- Silverlight – Insert/Update/Delete with the DataGrid
- Silverlight – Getting Started with the DataGrid
- Silverlight – Embedding Custom Fonts
Mike Taulty: 44 Amazing Silverlight 2.0 Screencasts | Dan | Channel 9
XamlpadX 4.0 now available
The latest version of the excellent XamlpadX utility here. This is a must-have for anybody who’s doing serious XAML development.
Displaying the Sizes of Your SQL Server’s Database’s Tables
Determining the Space Used by a Database or a particular Table
SQL Server has a handy little system stored procedure namedsp_spaceusedthat will return the space used by a database or by a particular table. To determine the size used by the database, simply run:
EXEC sp_spaceused [table]Returning the Space Used for All Tables
The
sp_MSforeachtablestored procedure is one of many undocumented stored procedures tucked away in the depths of SQL Server. A list of these handy stored procedures can be found at SQL Server 2000 Useful Undocumented Stored Procedures. In short, you can usesp_MSforeachtablelike so:
EXEC sp_MSforeachtable @command1="command to run"In the command to run put a
?where you want the table name to be inserted. For example, to run thesp_spaceusedstored procedure for each table in the database, we’d use:
EXEC sp_MSforeachtable @command1="EXEC sp_spaceused '?'"This will execute
EXEC sp_spaceused 'TableName'for each user table in the database.Combining Multiple Result Sets Into a Single Result Set Using Temporary Tables
CREATE PROCEDURE dbo.TableSpaceUsed AS -- Create the temporary table... CREATE TABLE #tblResults ( [name] nvarchar(50), [rows] int, [reserved] varchar(18), [reserved_int] int default(0), [data] varchar(18), [data_int] int default(0), [index_size] varchar(18), [index_size_int] int default(0), [unused] varchar(18), [unused_int] int default(0) ) -- Populate the temp table... EXEC sp_MSforeachtable @command1= "INSERT INTO #tblResults ([name],[rows],[reserved],[data],[index_size],[unused]) EXEC sp_spaceused '?'" -- Strip out the " KB" portion from the fields UPDATE #tblResults SET [reserved_int] = CAST(SUBSTRING([reserved], 1, CHARINDEX(' ', [reserved])) AS int), [data_int] = CAST(SUBSTRING([data], 1, CHARINDEX(' ', [data])) AS int), [index_size_int] = CAST(SUBSTRING([index_size], 1, CHARINDEX(' ', [index_size])) AS int), [unused_int] = CAST(SUBSTRING([unused], 1, CHARINDEX(' ', [unused])) AS int) -- Return the results... SELECT * FROM #tblResultsThis stored procedure will return a single result set. The fields that end in
_intare the integer representations of those fields that are returned with KB fields.
4GuysFromRolla.com – Displaying the Sizes of Your SQL Server’s Database’s Tables
