Quantcast
Channel: Database –龙堂
Browsing latest articles
Browse All 12 View Live

Image may be NSFW.
Clik here to view.

This backend version is not supported to design database diagrams or tables –...

When I am attempting to create a new database diagram from a SQL SERVER 2008 R2 Client(SSMS 2008) to a SQL SERVER 2012 Instance, I got the error shown as: “This backend version is not supported to...

View Article



Image may be NSFW.
Clik here to view.

Create your own TSQL code snippets in Visual Studio 2010

Mark the way for how to create custom TSQL(or other language) code snippets in Visual Studio 2010 1. Create a .snippet text file similar like the following from your favorite text editor <?xml...

View Article

Image may be NSFW.
Clik here to view.

View the column design for a table by using T-SQL in Microsoft SQL Server

Sometimes I want to check the column design for a certain table but don’t want to click the table in object explorer window, then we can use “sp_help ‘SchemaName.TableName” to view all details of the...

View Article

Image may be NSFW.
Clik here to view.

SQL Server Data Tools 2012 installation

Download the Tools from here: http://msdn.microsoft.com/en-us/data/hh297027 During the installation, if you encounter the following error message: [1644:1654][2013-02-27T12:35:02]: Registry key not...

View Article

Image may be NSFW.
Clik here to view.

Example: Python connect to Microsoft SQL SERVER 2012 on Windows

Preconditions: Python 2.7.3 (32bit) installed Pymssql win32 module 2.0.0b1 module installed Microsoft® SQL Server® 2012 Native Client installed(search for “sqlncli.msi”) Assuming that you have a table...

View Article


Image may be NSFW.
Clik here to view.

Create an Excel Report from Microsoft Query by execute the SQL Query directly...

Recently I was required to provide an excel report related to Microsoft Team Foundation Server workitems, but the requirement is kind of hard to get from Microsoft Visual Studio 2012 Queries directly,...

View Article

Image may be NSFW.
Clik here to view.

Microsoft SQL Server – Search specified column or table in all database at a...

In a development environment normally there are multiple databases installed at one DB Server, and there is a system store procedure called: “sp_msforeachdb” can help us to search a specified column or...

View Article

Image may be NSFW.
Clik here to view.

TSQL: Search keyword in XML Column

Sometimes you would need to search certain keyword inside a XML column using a like clause, here is a simple example: SELECT XmlColumn, OtherColumns FROM TableWithXmlColumn WHERE cast(XmlColumn as...

View Article


Image may be NSFW.
Clik here to view.

Fastest way to insert 1 million rows

Here is the fastest way to insert 1 million rows to a table in SQL Server Credit goes this post: Generate and Insert 1 million rows into simple table WITH L0 AS (SELECT c FROM (SELECT 1 UNION ALL...

View Article


Sublime Text SQL syntax to highlight temp table

For Sublime Text 2/3 by default the SQL syntax highlight will treat temp table like #tmpTable as comment, here’s how to adjust it to accept the temp table as part of highlight: Install OverrideAudit...

View Article
Browsing latest articles
Browse All 12 View Live




Latest Images