[求助]数据库连接问题
											数据库的简单连接问题
从另一个窗口传入一个叁数,叁数能够正确传入(id是从另一个窗口得到的,显示的时候也是没有问题),可是检索还是有问题,出现这样的问题:
   在事件探查器看到这样的代码:
   declare @P1 int
   set @P1=1
   exec sp_prepexec @P1 output, N'@P1 int', N'select firstname , birthDate from employees where employeeid =@P1 ', 4
   select @P1  
   高手帮忙看看是什么问题,请请,以下是代码: 
   string name
   date birthday
   int id
   id=message.doubleparm
   select firstname,birthDate 
   into :name,:birthday 
   from employees 
   where employeeid=:id
   using sqlca;
   if sqlca.sqlcode<>0 then
    if sqlca.sqlcode=100 then
        MessageBox("提示","未找到指定的记录"+string(id))
    else
        MessageBox("提示","检索错误,原因:"+sqlca.sqlerrtext)
    end if
  end if
  sle_employeeID.text=string(id)
  sle_name.text=name
  sle_birthday.text=string(birthday,"yyyy-mm-dd")



 
											





 
	    

 
	