Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot find data type

Status
Not open for further replies.

rajeshkanna

Programmer
Apr 24, 2002
9
IN
Hi all,

I user defined the data type "t_varchar_15"

The following is the sample sp.

create procedure test
as
begin
DECLARE @tmp_TBL TABLE(empno t_varchar_15)
insert into @tmp_tbl select empno from employee
select * from @tmp_tbl
end
go

The Error is
Column or parameter #1: Cannot find data type t_varchar_15.

How to solve this problem. Anyone help me.

N. Rajesh kanna
India
 
First, check that it really has been created with sp_help

Dickie Bird (:)-)))
 

You can change it to following and it does the same thing.

create procedure test
as
begin
create table #tmp_tbl(empno t_varchar_15)
insert into #tmp_tbl select empno from employee
select * from #tmp_tbl
end
go
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top