Viewing 15 posts - 436 through 450 (of 660 total)
sorry guys to add another doubt here
@dbname varchar(30),
@jDate DateTime
AS
Begin
exec(
'use ' + @dbname + ';
sql statements (14k lcharcters includes 30+ union operators)
'
end
when i try executing above proc i get a dead...
January 4, 2008 at 12:43 pm
as you passing string and values... I have a doubt
in this proc
ALTER PROCEDURE spgetemp
@empname varchar(30),
@jdate datetime
AS
SET NOCOUNT ON
insert into #t exec spcheckemp @empname,@jdate
set @cmd='
select * from #t where joindate>='+ ''''+...
January 4, 2008 at 8:25 am
thanks jeff..
in the same situation how can i pass parameters to a store proc executed inside another proc.
inner proc will be like
ALTER PROCEDURE spgetemp
@empname varchar(30),
@jdate datetime
AS
SET NOCOUNT ON
insert into #t...
January 4, 2008 at 6:59 am
thanks jeff.
How can i enter time in tenths of an hour or has to check if the time entered is in tenths of an hour
January 2, 2008 at 7:46 am
Jeff..cud u pls elaborate your method, i didnt follow wht ur doing there?
MAdhavanan.. its not a date am storing but its a number which starts with 4 digit year and...
January 2, 2008 at 7:05 am
1st proc
CREATE PROCEDURE mailsecurity
@dbname varchar(20),
@name varchar(10),
@emp varchar(4),
@admin-2 char(1) output
as
begin
set nocount on
declare @SQLCmd nvarchar(4000)
set @SQLCmd = 'use ' + @DBName + ';
DO SOME STUFF
'
END
2nd proc
CREATE PROCEDURE ...
December 27, 2007 at 7:12 am
yeah when i do that am getting the following error
exec mailsecurity @dbname = @dbname, @name = @emp, @emp = NULL, @admin-2 = @admin-2 OUTPUT
error is
Msg 137, Level 15, State...
December 26, 2007 at 7:40 am
when i run like
exec mailsecurity @dbname,@emp,NULL,Admin output
it is asking to me to delcare @dbname but there is already a parameter @dbname for the second proc
December 21, 2007 at 1:16 pm
A small change in the proc...
1st proc
CREATE PROCEDURE mailsecurity
@dbname varchar(20),
@name varchar(10),
@emp varchar(4),
@admin-2 char(1) output
as
begin
set nocount on
declare @SQLCmd nvarchar(4000)
set @SQLCmd = 'use ' + @DBName + ';
DO SOME STUFF...
December 21, 2007 at 12:42 pm
so there is no way to run a view from any database?
is it possible by using master db?
December 21, 2007 at 6:46 am
Viewing 15 posts - 436 through 450 (of 660 total)