Posts

Showing posts from 2014

Full Text Search in SQL Server 2008

Image
Introduction SQL Server 2008 Full-Text Search feature can be used by application developers to execute full-text search queries against character based data residing in  a SQL Server table. To use full text search the developer must create a full-text index for the table against which they want to run full-text search queries. For a particular SQL Server Table or Indexed View you can create a maximum of one Full-Text Index. The full-text index can be created for columns which use any of the following data types - CHAR, NCHAR, VARCHAR, NVARCHAR, TEXT, NTEXT, VARBINARY, VARBINARY (MAX), IMAGE and XML. Each full-text index can be used to index one or more columns from the base table, and each column can have a specific language which is supported by SQL Server 2008 Full-Text Search. Full-Text Search in SQL Server 2008 supports more than 50 different languages such as Arabic, Chinese, English, Japanese and Spanish etc. For the complete list of supported full-text languages, run th...

Send Database Mails Using SQL Profile

Image
Using SQL Server you can send Database mails. DB Mails are more secure that SQL mails because mails are in encrypted format. This new future in Database is includes after SQL Server 2005. Database Mail has many enhancement over SQL Mail. This mail is depend on SMTP (Simple mail transfer protocol). Database mail depends on Service Broker so this service must be enabled for Database Mail. Here we will learn how to configure database profile to send database mails. Step 1: Configuration Email to send mail:     Connect to Database Engine .     Expand Management Section .      Double click on Database Mail and click Next.      Select Manage Database Mail account and Profiles and Next.      Select Create New Account.      Add Account Name, Description, Email Address, Server Name and Port Number. For Gmail Server Name : smtp.Gmail.com Port Number :...

Connecting Remote server with Local Server

Image
Introduction: Linked server is powerful functionality provided by SQL Server. We can create object of remote server on local server and use that object to perform operations on remote server. To explain this topic let's consider a scenario Scenario:   Local server having number of databases. We need to take backup of local databases and restored this database into the remote server. For this scenario we will follow certain steps: Step 1 : Create object of Remote Server Add remote server object in local server Syntax:     sp_addlinkedserver @server = N'LinkServer' ,     @srvproduct = N' ' ,     @provider = N'SQLNCLI' ,     @datasrc = N'Server Name ,     @catalog = N'Database Name' Here we have created object of remote server i.e. LinkServer . By using this object you can perform Select, Update functionality on the same. Step 2 : Grant Permission Next Step...