Hi friends
I am learning DTS now...I am trying to transfer the data from excel to sql server using DTS...i am getting an error..type mismatch DTSSource
my code in active script is
Function Main()
thesno=DTSSource("sno")
if thesno >1 then
DTSDestination("sno")=thesno
else
DTSDestination("sno")=thesno+10
end if
Main = DTSTaskExecResult_Success
End Function
i have a column "sno" in both excel sheet and in my sql table (stud)
can u pls tell me whats my mistake..pls give me a idea how to write DTS Active script..
lot of thanks
Satya
I am learning DTS now...I am trying to transfer the data from excel to sql server using DTS...i am getting an error..type mismatch DTSSource
my code in active script is
Function Main()
thesno=DTSSource("sno")
if thesno >1 then
DTSDestination("sno")=thesno
else
DTSDestination("sno")=thesno+10
end if
Main = DTSTaskExecResult_Success
End Function
i have a column "sno" in both excel sheet and in my sql table (stud)
can u pls tell me whats my mistake..pls give me a idea how to write DTS Active script..
lot of thanks
Satya