Viewing 15 posts - 5,266 through 5,280 (of 5,393 total)
I don't know if this is exactly what you desire to achieve, but you could take a look at table partitioning. There's an interesting article in technet that could help...
March 31, 2009 at 2:42 am
Poor performance is due to data tranfer between SQL Server and client application. There's no simple solution: in some way you will have to change your application or your system...
March 30, 2009 at 2:25 am
Try this:
SELECT *
FROM (
select '0' + dbo.date_format(getdate(), 'MMDDYY') AS End_Date
union all
select
'1' +
CONVERT(varchar, dbo.date_format(mt.end_date, 'MMDDYY')) +
left(right('0000000'+mt.client_num, 7) + '.' + right('0000000'+mt.matter_num, 7) + ' ...
March 12, 2009 at 11:12 am
SQLServer translates COALESCE in CASE / WHEN, so it would be exactly the same to do:
CASE
WHEN field IS NULL THEN '0'
WHEN...
March 12, 2009 at 10:07 am
varchar with no length means varchar(1), so you'll get 1 as result.
Gianluca
March 12, 2009 at 4:49 am
Thanks Gail,
I have a new top ranked item for my to-do list today...
March 12, 2009 at 2:40 am
Thank you very much Gail, I didn't know about page splits!
I use sometimes NOLOCK when my data is partially static and I need to read only the static part, avoiding...
March 12, 2009 at 2:26 am
GilaMonster (3/11/2009)
NOLOCK allows for a possibility of missing rows or reading rows twice.
Gail, what do you mean "reading rows twice"? I know I could miss some rows with NOLOCK,...
March 11, 2009 at 11:38 am
Try this:
UPDATE TempFactTable
SET CodeID = LookupID
FROM TempFactTable t
INNER JOIN (
SELECT LookupCode, MAX(LookupID) AS LookupID, MAX(OtherCode) AS OtherCode
FROM LookupTable
...
March 11, 2009 at 11:22 am
You can query the ASCII code for the first char:
'a' is different from 'A'
try this:
SELECT ASCII('A')
SELECT ASCII('a')
One thing you could do is:
SELECT *
FROM MyTable
WHERE ASCII(LEFT(FirstName,1)) <> ASCII(LEFT(UPPER(FirstName),1))
Onether thing you...
March 11, 2009 at 8:29 am
Your result set is too big. Work on the server side.
March 11, 2009 at 3:04 am
If you're sure every user works only on his data, try putting some NOLOCK in the select satements to avoid table and page locking during reads.
With this little information this...
March 11, 2009 at 3:01 am
It depends! What does the procedure do? Does it select or modify data?
Gianluca
March 11, 2009 at 2:48 am
Babar Javaid (3/11/2009)
March 11, 2009 at 2:42 am
If you can alter the stored procedure code, aggregate the data with the appropriate group by clause, in order to get the data formatted the same way you need to...
March 11, 2009 at 2:35 am
Viewing 15 posts - 5,266 through 5,280 (of 5,393 total)