Quantcast
Channel: Manjuke's Blog
Browsing all 56 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Locks and Duration of Transactions in MS SQL Server

 It is a common argument which I hear among developers these days, regarding SQL locks. Some say that the ‘locks are held for the duration of the entire transaction’. But others debate that ‘locks will...

View Article


Image may be NSFW.
Clik here to view.

Resolved ~ How to get back SSMS ‘Find and Replace’ Alert

 As you know in SQL Server Management Studio (SSMS), once you have cleared the check box value of ‘Always show this message’, from the ‘Find and Replace’ alert, there’s no way of getting it back.If you...

View Article


Image may be NSFW.
Clik here to view.

Installing SQL Server Data Tools (SSDT)

What is SQL Server Data Tools?SQL Server Data Tools (SSDT) is a toolset which provides an integrated environment for database developers to carry out all their database design work for any SQL Server...

View Article

Image may be NSFW.
Clik here to view.

Introduction to SSDT (SQL Server Data Tools)

What is SSDT ?SQL Server Data Tools (SSDT) is a toolset which provides an integrated environment for database developers to carry out all their database design work for any SQL Server platform (both on...

View Article

Image may be NSFW.
Clik here to view.

Create a Cursor using Dynamic SQL Query

Even though we are advised not to use or to minimize the usage of cursors in SQL, there are times which, it’s the only available option, depending on the task and the situation. But there are times you...

View Article


Image may be NSFW.
Clik here to view.

Conflict in log4net on GAC when a Crystal Report is viewed through .Net Code

We faced an issue sometime ago, which put us into a very tight situation. The issue was when a Crystal Report file is loaded through .Net code it threw the following error. This is the first of a...

View Article

Image may be NSFW.
Clik here to view.

Error occurs when CTE Alias is ‘RESULT’ - Incorrect syntax near 'RESULT'

Few days back one of my colleague ran into a very strange issue when he was asked to do an alteration to an existing procedure. The procedure was having a SELECT statement which included few Common...

View Article

Image may be NSFW.
Clik here to view.

Elevate permission on a SQL login having read access to run the SQL Profiler

Sometime it’s necessary to allow SQL logins only to have read access to the respective SQL Servers. But it becomes a necessity to allow the developers to run the SQL Profiler when it comes to...

View Article


Image may be NSFW.
Clik here to view.

Elevate permission on a SQL login having read only access to Execute Stored...

Due to an unavoidable situation, it was decided that all the write access to a particular server (SQL Server) was required to be removed immediately. And only few people should be able to access the...

View Article


Image may be NSFW.
Clik here to view.

Capturing and Analyzing deadlocks in SQL Server

Technorati Tags: SQL Server,SQL Deadlocks,Capture SQL Server DeadlocksNo matter how perfect your code and how optimized the way you have written is, facing a situation of getting a deadlock is...

View Article

Image may be NSFW.
Clik here to view.

Enabling Instant File Initialization in SQL Server

Technorati Tags: MicroSoft SQL ServerEvery time the SQL data file or log file expands, it fills the newly allocated (expanded) space with zero. There are few good and bad having this feature (Zeroing...

View Article

Image may be NSFW.
Clik here to view.

Analyzing SQL Server Error Logs / Agent Logs using T-SQL

Even though you design our SQL Scripts with the best methods using best practices, or configure the SQL Server to perform correctly and in the optimized manner, you cannot prevent things going wrong....

View Article

Image may be NSFW.
Clik here to view.

Error accessing Oracle Database Objects via Linked Server in SQL Server (The...

In one of the project we are working these days, there was a requirement to fetch some details, directly from the Oracle Database via VIEWS. Initially everything was setup correctly on the Oracle...

View Article


Index REBUILD vs. REORGANIZE in SQL SERVER

Couple of days back there was an interesting statement (or rather a question) was brought up by one of the colleagues in the company. Ultimately the initial stement left us with one simple question,...

View Article

Extracting Date (Excluding Time) from a DateTime value in SQL Server

 SQL Server supports many data types where we can store the Date along with the time, such as DateTimeSmallDateTimeDateTimeOffsetDateTime2But in some cases it’s required only to fetch only the date...

View Article


Image may be NSFW.
Clik here to view.

String or binary data would be truncated / Arithmetic overflow error...

 There’s nothing more annoying than getting the error ‘String or binary data would be truncated’ or ‘Arithmetic overflow error converting numeric to data type numeric’, when you need to insert data to...

View Article

Image may be NSFW.
Clik here to view.

Connecting to an MS SQL Instance using NodeJS (Fixing ConnectionError: Port...

After few debates and discussions on new technologies in the market and how to adapt to them, during the weekend I thought of exploring NodeJS and it applications. Since I spent most of my time...

View Article


DROP IF EXISTS in SQL Server 2016 (DIE)

 Prior to SQL Server 2016, when we need to drop a SQL Object, it's the best practice to check whether the respective object exists or not. Otherwise the operation will return in an error.DROP TABLE...

View Article

Image may be NSFW.
Clik here to view.

Native JSON Support in SQL Server 2016

When it comes to modern web development, JSON is one of the well known technologies when you require to exchange information between different applications. Before JSON, XML was used (and still being...

View Article

Image may be NSFW.
Clik here to view.

Enable Code Lense feature on VS 2015 Community Edition

As per the Visual Studio 2015 feature comparisson between the editions, Microsoft has clearly mentioned that certain features will only be available in Professional & Enterprise editions of VS...

View Article
Browsing all 56 articles
Browse latest View live