Re: stored procedure
From: Daran Johnson (daranj_at_hotmail.com)
Date: 06/22/04
- Next message: Mike: "Re: stored procedure"
- Previous message: Kirk: "Re: Check if a table exists"
- In reply to: Mike: "stored procedure"
- Next in thread: Mike: "Re: stored procedure"
- Reply: Mike: "Re: stored procedure"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 22 Jun 2004 13:06:10 -0700
Mike,
If it's variable then use a varchar(x) where x equals the number of
characters - make sure it is enough characters for the strings you are
passing.
Don't use @@ as a prefix because that is used for system functions.
That should allow you to pass the string successfully.
Good Luck,
Daran
"Mike" <anonymous@discussions.microsoft.com> wrote in message
news:ucrymJJWEHA.3492@TK2MSFTNGP10.phx.gbl...
> I'm not sure if I'm in the correct group or not, but I need some help on
> something
> I'm new to this so,
> What I need to do is create a stored procdure were the server name is
being
> passed in to it from a Batch File.
> How can I make the server name a variable and an input field to the sp?
>
> I've tried
>
> CREATE PROCEDURE [dbo].[refresh_data] (@SERVER as nchar(20)) AS
>
> and
>
> CREATE PROCEDURE [dbo].[refresh_data] (@@SERVERNAME as nchar(20)) AS
>
>
>
> and it keeps failing
>
>
> thanks
>
>
- Next message: Mike: "Re: stored procedure"
- Previous message: Kirk: "Re: Check if a table exists"
- In reply to: Mike: "stored procedure"
- Next in thread: Mike: "Re: stored procedure"
- Reply: Mike: "Re: stored procedure"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|