Click here to Skip to main content
15,889,462 members
Home / Discussions / Database
   

Database

 
AnswerRe: MS-ACCESS Query Problem Pin
Rupesh Kumar Swami4-Mar-09 20:32
Rupesh Kumar Swami4-Mar-09 20:32 
GeneralRe: MS-ACCESS Query Problem Pin
ChandraRam4-Mar-09 20:57
ChandraRam4-Mar-09 20:57 
QuestionGlobalization Pin
icanmakeiteasy4-Mar-09 18:42
icanmakeiteasy4-Mar-09 18:42 
AnswerRe: Globalization Pin
Rupesh Kumar Swami4-Mar-09 20:23
Rupesh Kumar Swami4-Mar-09 20:23 
AnswerRe: Globalization Pin
ChandraRam4-Mar-09 20:58
ChandraRam4-Mar-09 20:58 
QuestionChange DataType Pin
mehrdadc484-Mar-09 18:16
mehrdadc484-Mar-09 18:16 
AnswerRe: Change DataType Pin
Rupesh Kumar Swami4-Mar-09 20:38
Rupesh Kumar Swami4-Mar-09 20:38 
QuestionHelp with the SQL Query Pin
Vimalsoft(Pty) Ltd4-Mar-09 3:49
professionalVimalsoft(Pty) Ltd4-Mar-09 3:49 
Good Day All

I have the Following SP

SQL
ALTER PROC GET_BASED_PATTERN
(
@SUBJECT VARCHAR(30),
@Pattern  nvarchar(128) output 
)
AS
SET @Pattern = (SELECT TOP 1 TERM.[CYCLETEMPLATES]FROM tbl_term TERM 
INNER JOIN dbo.TBL_ACTV v
on TERM.ID = V.TERM
INNER JOIN  DBO._Subjects S
ON V.TERM = S.[LEVEL]
WHERE CODE = @SUBJECT)
SELECT 
CASE 
WHEN LEN(@Pattern) > 1 THEN @Pattern
ELSE '00000000'
END


It returns
00000000


and NUll at the Bottom if the len is not greater than 1. i want it to return 00000000 if its like that.

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.tiyaneProperties.co.za
vuyiswa@its.co.za
www.ITS.co.za

AnswerRe: Help with the SQL Query Pin
Syed Mehroz Alam4-Mar-09 8:07
Syed Mehroz Alam4-Mar-09 8:07 
QuestionAppend to WHERE clause on condition Pin
Phillip Donegan4-Mar-09 1:22
Phillip Donegan4-Mar-09 1:22 
AnswerRe: Append to WHERE clause on condition Pin
Rob Philpott4-Mar-09 5:24
Rob Philpott4-Mar-09 5:24 
GeneralRe: Append to WHERE clause on condition Pin
Phillip Donegan4-Mar-09 5:43
Phillip Donegan4-Mar-09 5:43 
GeneralRe: Append to WHERE clause on condition Pin
Rob Philpott4-Mar-09 5:49
Rob Philpott4-Mar-09 5:49 
GeneralRe: Append to WHERE clause on condition Pin
Mycroft Holmes4-Mar-09 16:21
professionalMycroft Holmes4-Mar-09 16:21 
Questionhow can i call a function in stored procdeure in sql server 2005 Pin
lakshmichawala4-Mar-09 0:30
lakshmichawala4-Mar-09 0:30 
AnswerRe: how can i call a function in stored procdeure in sql server 2005 Pin
www.Developerof.NET4-Mar-09 0:37
www.Developerof.NET4-Mar-09 0:37 
AnswerRe: how can i call a function in stored procdeure in sql server 2005 Pin
lakshmichawala4-Mar-09 0:51
lakshmichawala4-Mar-09 0:51 
QuestionOracle Question Pin
E_Gold4-Mar-09 0:25
E_Gold4-Mar-09 0:25 
AnswerRe: Oracle Question Pin
Eddy Vluggen4-Mar-09 1:19
professionalEddy Vluggen4-Mar-09 1:19 
AnswerRe: Oracle Question Pin
M Riaz Bashir4-Mar-09 19:45
M Riaz Bashir4-Mar-09 19:45 
QuestionFiring trigger on a bulk like insert Pin
www.Developerof.NET4-Mar-09 0:11
www.Developerof.NET4-Mar-09 0:11 
AnswerRe: Firing trigger on a bulk like insert Pin
Mycroft Holmes4-Mar-09 16:30
professionalMycroft Holmes4-Mar-09 16:30 
QuestionStore 10000 characters Pin
.NET- India 3-Mar-09 20:47
.NET- India 3-Mar-09 20:47 
AnswerRe: Store 10000 characters Pin
Vimalsoft(Pty) Ltd3-Mar-09 20:58
professionalVimalsoft(Pty) Ltd3-Mar-09 20:58 
GeneralRe: Store 10000 characters Pin
.NET- India 3-Mar-09 21:06
.NET- India 3-Mar-09 21:06 

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.