Click here to Skip to main content
15,917,320 members
Home / Discussions / Database
   

Database

 
GeneralAbout .mdf Database..... Pin
Isaac Gordon9-Jun-09 20:22
Isaac Gordon9-Jun-09 20:22 
GeneralRe: About .mdf Database..... Pin
Jerry Hammond10-Jun-09 5:38
Jerry Hammond10-Jun-09 5:38 
QuestionNeed Query for this Pin
sujithkumarsl9-Jun-09 19:31
sujithkumarsl9-Jun-09 19:31 
AnswerRe: Need Query for this Pin
_Damian S_9-Jun-09 19:37
professional_Damian S_9-Jun-09 19:37 
GeneralRe: Need Query for this Pin
sujithkumarsl9-Jun-09 20:08
sujithkumarsl9-Jun-09 20:08 
AnswerRe: Need Query for this Pin
sujithkumarsl9-Jun-09 19:43
sujithkumarsl9-Jun-09 19:43 
GeneralRe: Need Query for this Pin
_Damian S_9-Jun-09 19:47
professional_Damian S_9-Jun-09 19:47 
GeneralRe: Need Query for this Pin
sujithkumarsl9-Jun-09 20:08
sujithkumarsl9-Jun-09 20:08 
Questioncross query question in access 2007 (sum & avg) Pin
E_Gold9-Jun-09 19:31
E_Gold9-Jun-09 19:31 
AnswerRe: cross query question in access 2007 (sum & avg) Pin
E_Gold9-Jun-09 19:31
E_Gold9-Jun-09 19:31 
AnswerRe: cross query question in access 2007 (sum & avg) Pin
_Damian S_9-Jun-09 19:46
professional_Damian S_9-Jun-09 19:46 
GeneralRe: cross query question in access 2007 (sum & avg) Pin
E_Gold10-Jun-09 0:14
E_Gold10-Jun-09 0:14 
Questionpassword protect sql views Pin
Anoop Brijmohun9-Jun-09 4:57
Anoop Brijmohun9-Jun-09 4:57 
AnswerRe: password protect sql views Pin
Mycroft Holmes9-Jun-09 14:45
professionalMycroft Holmes9-Jun-09 14:45 
Questionconnection parameters in configuration file Pin
Fadi Yoosuf9-Jun-09 4:29
Fadi Yoosuf9-Jun-09 4:29 
AnswerRe: connection parameters in configuration file Pin
Eddy Vluggen9-Jun-09 7:30
professionalEddy Vluggen9-Jun-09 7:30 
AnswerRe: connection parameters in configuration file Pin
Mycroft Holmes9-Jun-09 14:47
professionalMycroft Holmes9-Jun-09 14:47 
QuestionRe: connection parameters in configuration file Pin
Fadi Yoosuf10-Jun-09 8:12
Fadi Yoosuf10-Jun-09 8:12 
AnswerRe: connection parameters in configuration file Pin
Mycroft Holmes10-Jun-09 12:59
professionalMycroft Holmes10-Jun-09 12:59 
QuestionConfusion on Full Text Searching Pin
Brendan Vogt9-Jun-09 3:33
Brendan Vogt9-Jun-09 3:33 
AnswerRe: Confusion on Full Text Searching Pin
Eddy Vluggen9-Jun-09 7:23
professionalEddy Vluggen9-Jun-09 7:23 
QuestionPerfomance Question on the Following Query Pin
Vimalsoft(Pty) Ltd8-Jun-09 22:39
professionalVimalsoft(Pty) Ltd8-Jun-09 22:39 
Good Morning All

i have the Following Query

ALTER PROCEDURE [dbo].[sp_Staff_Select_NEW] 
(
@lETTER CHAR(2)
)
AS
SELECT DISTINCT ID, DESCR, NOTE  
FROM TBL_STAFF
WHERE LEFT(ltrim(rtrim(Descr)), 1)  = @lETTER
ORDER BY Descr
--SELECT DISTINCT ID, DESCR, NOTE  
--FROM TBL_STAFF
--WHERE SUBSTRING(Descr,1,1)= @lETTER
--ORDER BY Descr


As you can see there is a Commented part. Which one is more Faster between

SELECT DISTINCT ID, DESCR, NOTE  
FROM TBL_STAFF
WHERE LEFT(ltrim(rtrim(Descr)), 1)  = @lETTER
ORDER BY Descr


and

SELECT DISTINCT ID, DESCR, NOTE  
FROM TBL_STAFF
WHERE SUBSTRING(Descr,1,1)= @lETTER
ORDER BY Descr


Thank you

Vuyiswa Maseko,

Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."

C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.somee.com
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/

AnswerRe: Perfomance Question on the Following Query Pin
J4amieC8-Jun-09 23:00
J4amieC8-Jun-09 23:00 
GeneralRe: Perfomance Question on the Following Query Pin
Vimalsoft(Pty) Ltd8-Jun-09 23:11
professionalVimalsoft(Pty) Ltd8-Jun-09 23:11 
AnswerCan you cache the data ? Pin
David Mujica9-Jun-09 2:48
David Mujica9-Jun-09 2:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.