Category - SQL Server
Results 1 - 10 of 63
16 Jul 2014
0 Comments   458 Views
Here Mudassar Ahmed Khan has explained with an example, how to pass Table Valued Parameters to SQL Server Stored Procedure from .Net Code Behind using ADO.Net, C# and VB.Net.
03 Jul 2014
0 Comments   916 Views
Here Mudassar Ahmed Khan has explained how to read and write BLOBs (Binary Large Objects) data to SQL Server database using C# and VB.Net.

BLOBs include files such as Images, PDF, Word or Excel Documents, Audio, Video files. Such files are read converted to an array of bytes and inserted into SQL Server VARBINARY or IMAGE fields.
25 Jun 2014
0 Comments   515 Views
Here Mudassar Ahmed Khan has explained how to download and install the Microsoft's Northwind and Pubs databases and then attach them to the SQL Server or SQL Server Express editions.

The Northwind and Pubs databases are available for free by Microsoft and can be downloaded and used in any SQL Server or SQL Server Express version namely 2005, 2008, 2008R2 or 2012.
12 Jun 2014
2 Comments   1506 Views
Here Mudassar Ahmed Khan has explained how to send or pass DataTable as parameter to Stored Procedure in C# and VB.Net using the SQL Server User Defined Table Type.

The User Defined Table Type has to be created in SQL Server and it must have the same schema as that of the DataTable that we need to pass to the Stored Procedure as parameter.
08 Jun 2014
0 Comments   1620 Views
Here Mudassar Ahmed Khan has explained how to use SqlBulkCopy to insert bulk data from GridView to database in ASP.Net.

SqlBulkCopy class as the name suggests does bulk insert from one source to another and hence multiple selected rows from the GridView can be easily read and inserted in SQL Server database table using the SqlBulkCopy class.
30 Apr 2014
0 Comments   4449 Views
Here Mudassar Ahmed Khan has explained how to upload and save PDF files to SQL Server Database table using File Upload control and then retrieve and display the PDF Files from database in browser.

The PDF File will be embedded in browser and displayed using HTML OBJECT tag.
22 Apr 2014
4 Comments   4970 Views
Here Mudassar Ahmed Khan has explained SQL Injection attack, how SQL is injected to hack your system with example, how can we prevent SQL Injection and what are the possible prevention mechanisms and techniques to make ASP.Net websites safe from SQL Injection attacks.
22 Apr 2014
0 Comments   2259 Views
Here Mudassar Ahmed Khan has explained how to use and pass parameters to dynamic SQL in SQL Server.
05 Apr 2014
0 Comments   4500 Views
Here Mudassar Ahmed Khan has explained how to send email from database using stored procedure in SQL Server.
This technique makes use of Collaboration Data Objects (CDO) for sending email messages which works in most SQL Server versions 2000, 2008, 2008R2 and 2012.
29 Nov 2013
4 Comments   23197 Views
Here Mudassar Ahmed Khan has explained how to display images stored in database in ASP.Net Image control without using Generic HTTP Handler.

The images stored as Binary data will be fetched as BYTE Array and then the BYTE Array will be converted to BASE64 string and then assigned to the ASP.Net image control.