Click here to Skip to main content
15,902,938 members
Home / Discussions / Database
   

Database

 
GeneralRe: Join 3 Fields - Show all records From Table 1 Pin
RichardBerry14-Feb-06 23:32
RichardBerry14-Feb-06 23:32 
AnswerRe: Join 3 Fields - Show all records From Table 1 Pin
cbhkenshin14-Feb-06 21:42
cbhkenshin14-Feb-06 21:42 
GeneralRe: Join 3 Fields - Show all records From Table 1 Pin
Colin Angus Mackay14-Feb-06 22:34
Colin Angus Mackay14-Feb-06 22:34 
GeneralRe: Join 3 Fields - Show all records From Table 1 Pin
RichardBerry15-Feb-06 0:39
RichardBerry15-Feb-06 0:39 
QuestionRunning DTS against 2005 Pin
Tad McClellan14-Feb-06 16:50
professionalTad McClellan14-Feb-06 16:50 
QuestionThird Party Control Pin
welbert14-Feb-06 15:18
welbert14-Feb-06 15:18 
AnswerRe: Third Party Control Pin
Dave Kreskowiak15-Feb-06 4:31
mveDave Kreskowiak15-Feb-06 4:31 
Questionif condition error in Sp Pin
Vipin.d14-Feb-06 7:39
Vipin.d14-Feb-06 7:39 
my sp is


create procedure insertApplcn

@txtjcode as nvarchar(20),
@txtcname as nvarchar(30),
@dtdob as smalldatetime,

@txtpaddr1 as nvarchar(30),
@txtpaddr2 as nvarchar(30),
@txtpaddr3 as nvarchar(30),
@txtppin as nvarchar(6),


@txtcourse1 as nvarchar(50),
@txtcourinst1 as nvarchar(45),
@txtcouruniv1 as nvarchar(50),
@txtcourstart1 as nvarchar(4),
@txtcourend1 as nvarchar(4),
@intmark1 as decimal(5),

@txtcourse2 as nvarchar(50),
@txtcourinst2 as nvarchar(45),
@txtcouruniv2 as nvarchar(50),
@txtcourstart2 as nvarchar(4),
@txtcourend2 as nvarchar(4),
@intmark2 as decimal(5),

@txtcourse3 as nvarchar(50),
@txtcourinst3 as nvarchar(45),
@txtcouruniv3 as nvarchar(50),
@txtcourstart3 as nvarchar(4),
@txtcourend3 as nvarchar(4),
@intmark3 as decimal(5)









as insert into applcn(txtcname,txtjcode,dtdob,txtpaddr1,txtpaddr2,

txtpaddr3,txtppin,txttaddr1,txttaddr2,txttaddr3,txttpin,

--Qualification


txtcourse1,txtcourinst1,txtcouruniv1,txtcourstart1,txtcourend1,intmark1,

If (@txtcourse2 <>'--Select One--') Then

txtcourse2,txtcourinst2,txtcouruniv2,txtcourstart2,txtcourend2,intmark2,

End If

If @txtcourse3 <> "--Select One--" Then

txtcourse3,txtcourinst3,txtcouruniv3,txtcourstart3,txtcourend3,intmark3,

End If

)

it show error incorrect syntax near 'if' condition?????

plz help.is it posiible???















All I ever wanted is what others have....

CrazySanker



-- modified at 13:39 Tuesday 14th February, 2006
AnswerRe: if condition error in Sp Pin
Colin Angus Mackay14-Feb-06 10:49
Colin Angus Mackay14-Feb-06 10:49 
QuestionCast Pin
dev dhoundiyal14-Feb-06 5:12
dev dhoundiyal14-Feb-06 5:12 
AnswerRe: Cast Pin
Paul Conrad14-Feb-06 5:33
professionalPaul Conrad14-Feb-06 5:33 
AnswerRe: Cast Pin
Scott Serl14-Feb-06 7:05
Scott Serl14-Feb-06 7:05 
QuestionSQL Server 2005 Pin
Brendan Vogt14-Feb-06 1:49
Brendan Vogt14-Feb-06 1:49 
AnswerRe: SQL Server 2005 Pin
Slow Learner14-Feb-06 2:26
Slow Learner14-Feb-06 2:26 
QuestionRe: SQL Server 2005 Pin
Brendan Vogt14-Feb-06 19:26
Brendan Vogt14-Feb-06 19:26 
AnswerRe: SQL Server 2005 Pin
Paul Conrad14-Feb-06 19:35
professionalPaul Conrad14-Feb-06 19:35 
GeneralRe: SQL Server 2005 Pin
Brendan Vogt14-Feb-06 19:54
Brendan Vogt14-Feb-06 19:54 
AnswerRe: SQL Server 2005 Pin
Slow Learner15-Feb-06 4:44
Slow Learner15-Feb-06 4:44 
GeneralRe: SQL Server 2005 Pin
Paul Conrad15-Feb-06 15:51
professionalPaul Conrad15-Feb-06 15:51 
GeneralRe: SQL Server 2005 Pin
Brendan Vogt15-Feb-06 19:41
Brendan Vogt15-Feb-06 19:41 
QuestionSQL Datatypes Pin
Brendan Vogt14-Feb-06 1:12
Brendan Vogt14-Feb-06 1:12 
AnswerRe: SQL Datatypes Pin
Colin Angus Mackay14-Feb-06 1:44
Colin Angus Mackay14-Feb-06 1:44 
QuestionRe: SQL Datatypes Pin
Brendan Vogt14-Feb-06 1:52
Brendan Vogt14-Feb-06 1:52 
AnswerRe: SQL Datatypes Pin
Colin Angus Mackay14-Feb-06 2:26
Colin Angus Mackay14-Feb-06 2:26 
QuestionRe: SQL Datatypes Pin
Brendan Vogt14-Feb-06 19:14
Brendan Vogt14-Feb-06 19:14 

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.