Click here to Skip to main content
15,912,329 members
Home / Discussions / Database
   

Database

 
GeneralRe: Incorrect query result onINNER JOINS over three tables Pin
Joe Smith IX5-May-07 0:45
Joe Smith IX5-May-07 0:45 
GeneralRe: Incorrect query result onINNER JOINS over three tables Pin
Arun.Immanuel5-May-07 1:07
Arun.Immanuel5-May-07 1:07 
GeneralRe: Incorrect query result onINNER JOINS over three tables Pin
Joe Smith IX5-May-07 2:04
Joe Smith IX5-May-07 2:04 
GeneralRe: Incorrect query result onINNER JOINS over three tables Pin
Arun.Immanuel5-May-07 2:29
Arun.Immanuel5-May-07 2:29 
GeneralRe: Incorrect query result onINNER JOINS over three tables Pin
Joe Smith IX5-May-07 4:42
Joe Smith IX5-May-07 4:42 
QuestionXPO vs SQL Statement or Persistent Object VS SQL Pin
mfcuser4-May-07 8:01
mfcuser4-May-07 8:01 
AnswerRe: XPO vs SQL Statement or Persistent Object VS SQL Pin
Kevin McFarlane5-May-07 5:19
Kevin McFarlane5-May-07 5:19 
QuestionSyntax error converting datetime from character string. Pin
rujuc#4-May-07 0:57
rujuc#4-May-07 0:57 
I ve written a stored procedure to fetch data from a table. Here i m getting an error "Syntax error converting datetime from character string.". Please guide me.

//////////////////////////////////////////////////////////////////////////

CREATE PROCEDURE ic_get_processeddata
(
@frmDate DateTime,
@toDate DateTime,
@empType varchar(20),
@ein varchar(15)
)
as
declare @sqlStr as varchar(255)
set @sqlStr =''
set @sqlStr='select EIN,empName,empType,I2C,callAnswered,I2CPer,USLeaves,CBF,SOS,SOI,FCR,Bonus from ic_process where frmDate='+@frmDate+' and toDate='+@toDate
if(@empType !='')
begin
set @sqlStr = @sqlStr + ' and empType=' + @empType
end
if(@ein !='')
begin
set @sqlStr = @sqlStr + ' and EIN='+@ein
end
set @sqlStr = @sqlStr + (' order by empName,empType')
print(@sqlStr)
exec @sqlStr
GO

thanx in advance
AnswerRe: Syntax error converting datetime from character string. Pin
Marek Grzenkowicz4-May-07 1:07
Marek Grzenkowicz4-May-07 1:07 
AnswerRe: Syntax error converting datetime from character string. Pin
szukuro4-May-07 1:09
szukuro4-May-07 1:09 
GeneralRe: Syntax error converting datetime from character string. Pin
rujuc#4-May-07 2:22
rujuc#4-May-07 2:22 
GeneralRe: Syntax error converting datetime from character string. Pin
szukuro4-May-07 2:50
szukuro4-May-07 2:50 
Questiondownload Pin
lakkudavanam3-May-07 22:39
lakkudavanam3-May-07 22:39 
AnswerRe: download Pin
Hesham Amin4-May-07 21:54
Hesham Amin4-May-07 21:54 
QuestionDoes this Query return results based on the output of First Query? Pin
Vimalsoft(Pty) Ltd3-May-07 22:13
professionalVimalsoft(Pty) Ltd3-May-07 22:13 
AnswerRe: Does this Query return results based on the output of First Query? Pin
Arun.Immanuel3-May-07 22:35
Arun.Immanuel3-May-07 22:35 
GeneralRe: Does this Query return results based on the output of First Query? Pin
Vimalsoft(Pty) Ltd3-May-07 22:50
professionalVimalsoft(Pty) Ltd3-May-07 22:50 
GeneralRe: Does this Query return results based on the output of First Query? Pin
Arun.Immanuel3-May-07 23:37
Arun.Immanuel3-May-07 23:37 
GeneralRe: Does this Query return results based on the output of First Query? Pin
Vimalsoft(Pty) Ltd4-May-07 4:32
professionalVimalsoft(Pty) Ltd4-May-07 4:32 
QuestionBULK data import Pin
pmpdesign3-May-07 17:40
pmpdesign3-May-07 17:40 
AnswerRe: BULK data import Pin
PIEBALDconsult3-May-07 18:00
mvePIEBALDconsult3-May-07 18:00 
GeneralRe: BULK data import [modified] Pin
pmpdesign3-May-07 18:36
pmpdesign3-May-07 18:36 
QuestionStored proc or query Pin
topcatalpha3-May-07 2:21
topcatalpha3-May-07 2:21 
AnswerRe: Stored proc or query Pin
Colin Angus Mackay3-May-07 3:14
Colin Angus Mackay3-May-07 3:14 
GeneralRe: Stored proc or query Pin
topcatalpha3-May-07 3:22
topcatalpha3-May-07 3:22 

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.