SQL - Raj Kaimal

Browse by Tags

All Tags » SQL (RSS)

Altering Indexed Views - Gotcha

According to BOL , “ALTER VIEW can be applied to indexed views; however, ALTER VIEW unconditionally drops all indexes on the view .” We can see this behavior by creating an indexed view using the Northwind database. The script is shown below: CREATE VIEW...
Posted by rajbk | with no comments

Uploading an Excel file to SQL through an ASP.NET webform

The method below describes how to upload a file to a webserver and then import the file into SQL using either LinqToSQL or SQL Bulk Copy. The sample code only shows how to import xls and xlsx files but it could easily be extended to support csv files...
Posted by rajbk | 3 comment(s)
Filed under: , , ,

SQL 2005 - Maximum number of characters displayed in each column

This setting in Microsoft SQL server management studio, which has a default setting of 256 characters, caused me to waste almost half an hour yesterday. I was looking in the wrong places trying to troubleshoot my stored procedure and wondering why my...
Posted by rajbk | 1 comment(s)
Filed under: ,
More Posts