Feeds:
Posts
Comments

Archive for February, 2007

/* Author : Abhishek Joshi SP Name : usp_Quoter_ListAll Date : 15 Feb, 2007 Desc : Select all [...]

Read Full Post »

Using Index ================select *from ZIPCodes where StateName = ‘New York’
– Create Indexcreate nonclustered index idxStateName on ZIPCodes(StateName)create nonclustered index idxZIPType on ZIPCodes(ZIPType)
– Use Indexselect *from ZIPCodes with(INDEX(idxZIPType)) where ZIPType = ‘S’
– List of Indexes on Perticular Tableexec sp_helpindex ‘ps_client_master’
– Drop Indexdrop index ps_client_master.ps_client_master_Index_1
Using Cursors===============
DECLARE @ClientID char(11)
declare cl CURSOR FOR select int_id from [...]

Read Full Post »