Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Stored Proc Question....

Author  Topic 

benko
Starting Member

24 Posts

Posted - 2004-11-02 : 11:04:55
OK, i have params coming in @temp1 and @temp2. How come in my select statement when i go rxColumn = @temp1, it says i must declare the variable. What the... Thanks in advance

Seventhnight
Master Smack Fu Yak Hacker

2878 Posts

Posted - 2004-11-02 : 11:07:57
can we see a little more??

Are you using dynamic SQL?

Corey
Go to Top of Page

benko
Starting Member

24 Posts

Posted - 2004-11-02 : 11:09:58
it seems pretty simple like this

Create proc ProcName
(
@param1 varchar(20) = null
,@param2 varchar(20) = null
)
AS

select rxField1 = @param1, rxFeild2 = @param2


....and it says i must declare them....
Go to Top of Page

benko
Starting Member

24 Posts

Posted - 2004-11-02 : 11:11:39
n/m dude i got er...stupid mistake..missed the 'rxfield' + @param1


Go to Top of Page
   

- Advertisement -