September 17, 2008 at 2:41 am
Hi,
I hope you can help me out of this maze.
I always get an error msg Incorrect syntax near ')' at the line declare @fnfev table (fund as char(8)) and I can't find what's wrong. Something stupid I guess, as usual, but my eyes don't see it. 😉 It'd be great if someone could help me. Thanks ...
declare @val_datedatetime
set nocount on
declare @i int,
@fundchar(8),
@fev_idint,
@today datetime,
@msgvarchar(500),
@nokbit,
@resint,
@fnamevarchar(200),
@cmdvarchar(500),
@dirvarchar(50)
declare @fnfevtable (fund as char(8))
-- -----------------------------------------------------------------
-- INITIALISATIONS
--
select @today = getdate()
insert into @fnfev select * from fnfev(@val_date)
September 17, 2008 at 3:02 am
It's really syntax error, as it says.
Open "Create Table" template in QA and see the correct syntax.
_____________
Code for TallyGenerator
September 17, 2008 at 3:25 am
Thanks Sergiy.
It was definitely a stupid AS error ... 😉
September 18, 2008 at 8:29 am
You are creating a table or declaring a table? there is no syntax which you are using. Please use create table syntax.
September 18, 2008 at 2:34 pm
dva2007 (9/18/2008)
You are creating a table or declaring a table? there is no syntax which you are using. Please use create table syntax.
Ever heard of "Table variables"?
--Jeff Moden
Change is inevitable... Change for the better is not.
September 19, 2008 at 12:48 am
I was declaring a table (@fnfev), not creating a temporary table (like #fnfev).
For my needs a temporary declared table was the best in terms of performance.
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply