Sql Server
Index in Sql Server
Submitted by shantanu on Wed, 01/06/2010 - 04:29Understanding Indexes
Indexes speed up the querying process by providing filtered access to rows in the data tables (just like book’s index) if they are used efficiently.
Indexes are created on columns in tables or views.
Set two variables using a Select query in a stored procedure.
Submitted by shantanu on Wed, 12/09/2009 - 21:59SET @Password = ( SELECT Value1,Value2 FROM [dbo].[Table1] WHERE [Expr1])
I am trying to get both values 'Value1' and 'Value2' in two variables to be used in same SP in next query. Is it possible or do I have to write two queries for this. Is it there a concept of arrays in sql server
SQL Server 2005 error 10061
Submitted by vaibhav on Mon, 11/30/2009 - 15:31I needed to connect to sql server from a remote computer which is on my home lan.
But got this error message.
AutoIncrement vs UniqueIdentifier
Submitted by sam on Sat, 11/21/2009 - 17:48How to decide which key to used in your application? Whether to use AutoIncrement or UnqiueIdentifier.
Please tell me the different scenarios for using these keys.
SQL Server: Backup and Restore Database using T-SQL
Submitted by vaibhav on Wed, 11/11/2009 - 12:18Its very easy to take Backup and Restore your Database using T-SQL even if you are not a DBA. In one of the client application, I wanted to take periodic Backup without logging in to SQL Server Management Studio. Here in this small tutorial I will try to elaborate the procedure of taking database backup using T-SQL.
1. Create a Database
CREATE DATABASE PracticeDB
2. Take Backup of the Database
BACKUP DATABASE PracticeDB TO DISK='C:\PracticeD.bak' WITH DESCRIPTION='Database Backup', INIT, PASSWORD='TryAgain'
"Error: 26 – Error Locating Server/Instance" Specified SQL Server
Submitted by shantanu on Tue, 10/27/2009 - 15:13“An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connection. (provider: SQL Network Interfaces, error: 26 – Error Locating Server/Instance Specified)”
This error might have occured due to the following reasons.