Click here to Skip to main content
15,903,175 members
Home / Discussions / Database
   

Database

 
GeneralRe: error? Pin
suni_dotnet5-Mar-09 15:39
suni_dotnet5-Mar-09 15:39 
GeneralRe: error? Pin
Blue_Boy5-Mar-09 15:46
Blue_Boy5-Mar-09 15:46 
Questionregister password Pin
cyannaz5-Mar-09 6:42
cyannaz5-Mar-09 6:42 
QuestionRe: register password Pin
cyannaz5-Mar-09 16:11
cyannaz5-Mar-09 16:11 
Questionsp execute problem Pin
Dilum5-Mar-09 6:20
Dilum5-Mar-09 6:20 
AnswerRe: sp execute problem Pin
Rami Said Abd Alhalim9-Mar-09 22:03
Rami Said Abd Alhalim9-Mar-09 22:03 
QuestionFilling a table with select statement Pin
Muammar©5-Mar-09 1:59
Muammar©5-Mar-09 1:59 
AnswerRe: Filling a table with select statement Pin
Blue_Boy5-Mar-09 2:27
Blue_Boy5-Mar-09 2:27 
GeneralRe: Filling a table with select statement Pin
Muammar©6-Mar-09 4:37
Muammar©6-Mar-09 4:37 
QuestionMultipart Problem on the Following Query Pin
Vimalsoft(Pty) Ltd4-Mar-09 23:25
professionalVimalsoft(Pty) Ltd4-Mar-09 23:25 
AnswerRe: Multipart Problem on the Following Query Pin
Vimalsoft(Pty) Ltd4-Mar-09 23:56
professionalVimalsoft(Pty) Ltd4-Mar-09 23:56 
QuestionPrivileges in Oracle Pin
Muammar©4-Mar-09 21:29
Muammar©4-Mar-09 21:29 
Question2 Oracle Question Pin
E_Gold4-Mar-09 19:19
E_Gold4-Mar-09 19:19 
QuestionMS-ACCESS Query Problem Pin
M Riaz Bashir4-Mar-09 19:14
M Riaz Bashir4-Mar-09 19:14 
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 

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.