Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Everything / database / SQL-Server / SQL-Server-2012

SQL-Server-2012

SQL-Server-2012

Great Reads

by Math08avan
A simple example for CRUD actions using WCF service in ASP.NET
by Md. Marufuzzaman
A simple tip/trick to get rows on n’th maximum number from a table
by Md. Marufuzzaman
A simple example of Microsoft SQL Server Pad String
by Aby Mammen Mathew
IoT devices needs the capability to augment the environment around them, even when sensors utilized by them break down

Latest Articles

by Math08avan
A simple example for CRUD actions using WCF service in ASP.NET
by Md. Marufuzzaman
A simple tip/trick to get rows on n’th maximum number from a table
by Md. Marufuzzaman
A simple example of Microsoft SQL Server Pad String
by Aby Mammen Mathew
IoT devices needs the capability to augment the environment around them, even when sensors utilized by them break down

All Articles

Sort by Score

SQL-Server-2012 

by Math08avan
A simple example for CRUD actions using WCF service in ASP.NET
by Md. Marufuzzaman
A simple tip/trick to get rows on n’th maximum number from a table
by Md. Marufuzzaman
A simple example of Microsoft SQL Server Pad String
by nithyananthams
Different options to get Identity from SQL Server and how OUTPUT clause helped me to get the accurate Identity value compare with other options.
by Gaurav_Chaudhary
This tip is a brief introduction to Apply operator in SQL server
by SatyLepide
By analyzing log-in attempts on SQL server, admins can build the complete picture out of the sequence of events that led to compliance failure or unauthorized access.
by Harsh Aggarwal - India
It's about making back up of database in SQL server 2008 and above you can get rid of making bak file manually.
by NaibedyaKar
How to check the query locking the table and to unlock it
by mohamedkamaleed
Network check v1.0
by Saral S Stalin
Avoiding conversion errors in scripts using TRY_CONVERT.
by Abu Zafor Khairuzzaman
Comparison Chart for Two Different Time Frames in SSRS
by markkang
This tip describes how to generate insert SQL statement from the records in an existing table in SQL server database
by Sunil_Pawar
Learn how quickly you can Create, Run, Debug and Deploy SQL CLR function using integrated features of Visual Studio 2013.
by Diluka Wittahachchige
Creating SQL Server database project use in Visual Studio 2012 and maintain versions use in TFS
by coded007
Designing reports with Dynamics CRM
by Prakash Lekhak
Dynamic SQL to get the list Table names
by Sums Mohs Eds
A brief discussion of when to use cursors and when to use sets.
by HardikPatel.SE
Paging using AJAX
by HardikPatel.SE
Paging and Sorting with AJAX
by rafaelpb
Generate a postalcode database for lookups from dutch national data BAG
by Chetan Naithani
Transforming dynamic row-level data into columns
by Johnny L Washington
Capture data changes in history table
by Bert O Neill
Execute SSIS Package in C# or SQL Sproc
by AshishShukla6
This tip describes step by step implementation of executing stored procedure having user-defined table type as a parameter in entity framework using EntityFrameworkExtras package.
by Anil kumar Bhardwaj
Export all the primary, Unique, Foreign key and default constraints from existing database
by OriginalGriff
Sometimes, you want to extract the filename (with or without the extension) from the full path of a file. It's easy in C# and so forth - just use the Path.GetFileName method. But what if you want it in SQL?
by shijo joseph
A simple and fast CSV reader which you can directly use against Oracle and SQL Server databases or for any direct implementation
by Jitendra Ku. Sahoo
In this article we will discuss about fill factor and its effect on query performance.
by Arvind Singh Baghel
I show a SQL query which finds the size of database mdf and ldf file in SQL Server.
by Md._Mehedi_Hasan
This tip will help you to generate .xml file in AngularJs and ASP.NET MVC5 using XElement of C#.
by Tharaka MTR
This article describes the easiest way to create and process delimited row using SQL XQuery.
by Md. Marufuzzaman
Get accurate age by date using MS SQL Server
by Ed Nutting
How to fix LocalDB / SQL Server: "Cannot open database "XYZ" requested by the login. The login failed. Login failed for user ABC"
by Member 11884108
In this tip, we will learn how to load data dynamically to html dropdownlist using Ajax call.
by Manish kumar choudhary
In this article, we are going to learn the concept of mail sending using SQL Server.
by Md. Marufuzzaman
This tip shows you an easy way to split Microsoft SQL Server table row data.
by Aqeeel
Identifying and deleting duplicate records from SQL Server Table
by TheCardProject.co.uk
Quickly set up the ability to serve up several pages and record which was served in SQL Server
by Arvind Singh Baghel
Import CSV or txt File Into SQL Server Using Bulk Insert.
by furytrader
Yes, Virginia, You Can Do This All With One Simple SQL Statement
by Bohdan Stupak
This tip shows some primary issue which puts a serious limitation on SQL Server MONEY data type.
by Xavi Giqwa
This tip is aimed at helping anyone who encounters a similar problem like I had in displaying charts using ASP MVC and dynamic data.
by Member 8826598
Performance Tuning of DML Operation Insert in different scenario
by Gaurav_Chaudhary
This tip is a brief introduction to Pivot operator in SQL Server
by Sifiso W Ndlovu
This tip illustrates a workaround to SQL Server pivoting on variable character data types.
by Mike_1989
The following code populates a mainmenu within VB.Net dynamically using recursion, until all items are added to the main menu
by groggyjava
SQL 2012 Code Snippet for quick blank transaction
by Gene R. Browning
Generate random dates (and times if you like) for your test data environment.
by gayani dassa
Read & Insert Data Using Stored Procedures
by george bolovan
Read data from the next row
by Gunaprasad Shetty
The tip provides the code snippet for inserting a huge XML file with details such as node level, node value, node desc and node child, etc.The snippet provides the solution for recursive reading of node and provides the value of XML nodes along with its value.
by Gaurav_Chaudhary
This tip is a brief introduction to Recursive CTE in SQL Server and how to implement it.
by Prakash Lekhak
Create an ER diagram for complex database
by Sarathi Balakrishnan
Reset SQL server SA (System Admin) Password when you have lost all possible ways to connect to SQL server and your server has only Windows authentication disabled. You should have Windows administrator permission to do this.
by madhusudhanReddy
Running the SQL Script File
by Jason Parms
Lightweight Directory Access Protocol (LDAP) Injection
by Luca Astolfi
User defined procedure for make an HTML table from T-SQL Select statment
by sandeepmittal11
A sequence is a user defined, schema bound object that generates a sequence of numeric values
by Saral S Stalin
Explains how to run a script with higher priority to avoid it getting terminated in a deadlock situation.
by Bohdan Stupak
This tip will cover several interesting issues of SQL
by TheSqlGuy
This briefly goes over an issue experienced when executing a query against a linked server to Oracle from SQL Server.
by aasim abdullah
Backup and then restore of a database is a normal job for developers and DBAs. This script will be helpfull to findout, from which path, and which backup file a database was restored.
by Ajit Kumar Thakur Microsoft
This tip explains SQL Server metadata information. It will provide internal details of all available SQL Server 2012 Metadata.
by Syed Noman Ali Shah
How to take SQL server database backup and database restoration in C# using SMO
by Dathuraj Pasarge
Know whether your databases are backed up successfully in the last 24 hours or not !!!
by Atul_Kapoor
Perform SQL Server Instance health check simultaneously on more than one server using Powershell
by aasim abdullah
Automatic query execution at every instance startup.
by aasim abdullah
You have place indexes but still queries are slow... are you facing bookmark lookup problem ???
by aasim abdullah
How to use DELETED and INSERTED virtual tables to capture data change in result of any INSERT, UPDATE or DELETE statement.
by DiponRoy
How to do string split and join in SQL Server
by DiponRoy
A utility query to find table generations in SQL Server relational database
by aasim abdullah
How do you know, if someone disabled your job at production database server. Who is the calprit. How to send a mail alert for this change ??
by Mohamad Cheaito
SQL Server: Query to get the date of first Monday of September
by aasim abdullah
The TOP clause is commonly used to get the top required rows from a result set. The beauty of this clause is that it can be used with the WITH TIES clause to retrieve all similar rows to a base result set.
by Sandeep Kumar Tripathi
This tip is used for creating SSRS Report Subscription by using C#.
by Giancarlo Rhodes
Creating the Web UI
by dibley1973
Call stored procedures in a type safe way using my StoredProcedureFramework for .NET
by Jitendra Ku. Sahoo
Below is one template to handle error in SQL server.
by Sushil Pandit
Process for backward migration of code from TFS 2012 to TFS 2010
by Syed Moula Ali
Replicate/Clone/Duplicate selected data in a Table using merge statment
by sukeshchand
Unexpected SQL Interview Questions
by Thiago Gaidzinski
UniDAC allows you to connect your cross-platform application directly with many database's types.
by Pedram_Niloufari
How to create an unlimited category list table in database and how to read category list
by Naresh Patidar
Insert, update and delete operations using stored procedure and DataAdapter in C#
by Ahmad A.A. Ahmad
How to use chart item in your SSRS Report (% labeling)
by grantliu
Utilize NLog.net in a Service-oriented architecture