Quantcast
Channel: SQL Server 2012 – Justin Cooney
Browsing all 11 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Three Free Online Code Sandbox and Collaboration Tools for SQL, .NET, JavaScript

Being able to write and test code snippets in your Web browser in collaboration with others anywhere in the world is an empowering experience. This is especially true when the tool is free for anyone...

View Article



Image may be NSFW.
Clik here to view.

T-SQL Simple Example of Finding Records with More than One Entry

Here is a super-simple example of using a T-SQL query to find records that have more than one table entry. In this example we’ll populate a temporary table with entries of pets at a pet shop. Then...

View Article

Image may be NSFW.
Clik here to view.

Basic Example of using the ASP.NET FileUpload to Save into a Database

Here is a super-simple bare-bones example of an ASP.NET Web form page in C# that uses the .NET FileUpload component to allow a user to upload a file into a SQL Server database table. I’ve put this...

View Article

Image may be NSFW.
Clik here to view.

T-SQL to Enforce Proper Case Capitalization

This handy-dandy T-SQL query will take any input string and capitalize the start of each word within the string. It will also enforce proper use of lower-case throughout the string without affecting...

View Article

Image may be NSFW.
Clik here to view.

Steps Restore a SQL Server Database into a New Database and Rename it

If you want to create a working backup of one of your production databases that you can use without jeopardizing the production data, you’ll need to copy the database in its entirety to a new name. In...

View Article


Image may be NSFW.
Clik here to view.

TSQL Search for the Last Record in a Group

In this article I’ll show how to get the most recent record for a group of records in a SQL Server table. There are a number of ways to do this including CTEs and nested subqueries. Since nested...

View Article

Image may be NSFW.
Clik here to view.

TSQL Query to List Tables in a Database with Row Counts

In a previous post I talked about how to find highly populated tables in a database. I’m going to expand on that in this post to show how to catalog a database into data-holding tables and supporting...

View Article

SharePoint Dealing with the Huge and Growing File Size of...

It’s amazing how some SharePoint issues are known problems that don’t get fixed by Microsoft even after many years, and that don’t get mentioned as things one needs to look out for. I found this out...

View Article


SQL Server Error: Fixing The Transaction Log for Database is Full Due to...

If you are working with SQL Server, you may see an ominous sounding error: the transaction log for database {Your Database Name} is full due to log_backup This error can be due to one of two things: 1)...

View Article


TSQL How to Query the Recovery Model and Log Location of all Databases

If you are maintaining the databases on a server, you’ll likely want a comprehensive view of what each database’s recovery model is as well as where the database and log files are stored. An added...

View Article

TSQL Query to Compare Row Counts of Tables in a Local and a Remote Database

This is a fun thought exercise…. in MS SQL Server, use a linked server to compare how many rows are in each table of a backup development server with how many rows are in the actual production server....

View Article
Browsing all 11 articles
Browse latest View live


Latest Images