Click here to Skip to main content
15,891,316 members
Home / Discussions / Database
   

Database

 
GeneralRe: calling procedure within trigger Pin
Mr.Kode2-Jun-08 22:42
Mr.Kode2-Jun-08 22:42 
GeneralRe: calling procedure within trigger Pin
Ashfield3-Jun-08 1:23
Ashfield3-Jun-08 1:23 
AnswerRe: calling procedure within trigger Pin
Member 33013254-Jun-08 10:00
Member 33013254-Jun-08 10:00 
QuestionProblem on applying MySql.Data.dll into Visual Studio 2003 for VB.NET Pin
drexler_kk2-Jun-08 16:31
drexler_kk2-Jun-08 16:31 
AnswerCross post Pin
dan!sh 2-Jun-08 20:31
professional dan!sh 2-Jun-08 20:31 
Questionsql editor Pin
xybroxymoron2-Jun-08 16:12
xybroxymoron2-Jun-08 16:12 
QuestionSelect Query problem... Pin
tthellebuyck2-Jun-08 3:04
tthellebuyck2-Jun-08 3:04 
AnswerRe: Select Query problem... Pin
Peter Josefsson Sweden2-Jun-08 4:54
Peter Josefsson Sweden2-Jun-08 4:54 
The one who designed the database probably thought it would be a good idea to use char. Could be right, could be wrong... but without speculating on that, here is one solution:

create procedure FindMatch(@param varchar(100)) as
select * from TheTable where TheKey = right('000000' + @param, 6)


I'm assuming the actual column type is char(6). Otherwise, adjust the right invocation. Also, I've assumed you've already trimmed the parameter - otherwise, replace @param with ltrim(rtrim(@param)).

Peter the small turnip

(1) It Has To Work. --RFC 1925[^]

AnswerRe: Select Query problem... Pin
Om Prakash Pant12-Apr-11 23:03
Om Prakash Pant12-Apr-11 23:03 
QuestionProblem with the Following Cursor Pin
Vimalsoft(Pty) Ltd2-Jun-08 2:30
professionalVimalsoft(Pty) Ltd2-Jun-08 2:30 
AnswerRe: Problem with the Following Cursor Pin
Alsvha2-Jun-08 4:32
Alsvha2-Jun-08 4:32 
AnswerRe: Problem with the Following Cursor Pin
Mike Dimmick2-Jun-08 5:25
Mike Dimmick2-Jun-08 5:25 
GeneralRe: Problem with the Following Cursor Pin
Vimalsoft(Pty) Ltd2-Jun-08 7:57
professionalVimalsoft(Pty) Ltd2-Jun-08 7:57 
QuestionWhy DataColumn.DefaultValue is null Pin
Ahmad Safwat2-Jun-08 2:28
Ahmad Safwat2-Jun-08 2:28 
AnswerRe: Why DataColumn.DefaultValue is null Pin
Ahmad Safwat2-Jun-08 3:10
Ahmad Safwat2-Jun-08 3:10 
AnswerNew Problem Pin
Ahmad Safwat2-Jun-08 21:25
Ahmad Safwat2-Jun-08 21:25 
QuestionMSMQ vs Service Broker performance Pin
Member 42747082-Jun-08 1:52
Member 42747082-Jun-08 1:52 
Questionsql2000 + distinct rows Pin
ritu43212-Jun-08 0:04
ritu43212-Jun-08 0:04 
AnswerRe: sql2000 + distinct rows Pin
Alsvha2-Jun-08 0:08
Alsvha2-Jun-08 0:08 
GeneralRe: sql2000 + distinct rows Pin
ritu43212-Jun-08 0:27
ritu43212-Jun-08 0:27 
GeneralRe: sql2000 + distinct rows Pin
Alsvha2-Jun-08 0:34
Alsvha2-Jun-08 0:34 
GeneralRe: sql2000 + distinct rows Pin
SomeGuyThatIsMe2-Jun-08 2:18
SomeGuyThatIsMe2-Jun-08 2:18 
AnswerRe: sql2000 + distinct rows Pin
Hesham Amin2-Jun-08 10:47
Hesham Amin2-Jun-08 10:47 
Questioncan we use stored procedure in user defined function ???? Pin
Shaik Haneef1-Jun-08 23:51
Shaik Haneef1-Jun-08 23:51 
AnswerRe: can we use stored procedure in user defined function ???? Pin
Ashfield2-Jun-08 0:00
Ashfield2-Jun-08 0:00 

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.