Viewing 15 posts - 76 through 90 (of 106 total)
You can rewrite the query but execution plan are same for both t-sql (index scan)
select * from contact where patindex('%a',first_name)>0
February 21, 2011 at 11:28 pm
Please check below sql , might help you
select top 50 * from
(select top (90) percent * from table_name order by column_name ) t
order by column_name
February 21, 2011 at 11:06 pm
Try to access the table same order in each procedure and use NOLOCK hint to avoid the sahred lock(while access the table ). It may help some exetend
February 14, 2011 at 12:18 am
this may help if you Ignore only first number char from Str
select * from Table where isnumeric(left(column_name,1))=0
February 6, 2011 at 10:27 pm
Below sql may help you ...
SELECT SUBSTRING(result,1,LEN(result)-1) AS [O/P]
FROM (SELECT LTRIM(SNO) + ','
FROM #ad
...
February 3, 2011 at 4:24 am
U can Use below sql query to count the record from any user table
select rows
from sys.sysindexes
where id = object_id('Table_Name')
and...
January 27, 2011 at 10:56 pm
Server version
Microsoft SQL Server 2005 - 9.00.4035.00 (Intel X86) Nov 24 2008 13:01:59 Copyright (c) 1988-2005 Microsoft Corporation Standard Edition on Windows NT 5.2...
January 19, 2011 at 3:51 am
Error message
The definition for column unique must include a data type.
Version
Microsoft SQL Server 2005 - 9.00.4035.00 (X64) Nov 24 2008 16:17:31 Copyright (c) 1988-2005...
January 18, 2011 at 3:30 am
Error Message while execute statment
MSG 173 level 15
January 18, 2011 at 3:16 am
T-SQL code
declare @t table (
CustomerName VARCHAR(30),
CustomerRefNumber int,
InvoiceNumber VARCHAR(20),
InvoiceAmount ...
December 21, 2010 at 12:27 am
I will do from next time . Thanks
March 11, 2010 at 6:19 am
Viewing 15 posts - 76 through 90 (of 106 total)