may be .NET problem
From: Paul (Paul_at_discussions.microsoft.com)
Date: 09/14/04
- Next message: Adam Machanic: "Re: Identity Seed : Implications of making it zero"
- Previous message: Anna: "Identity Seed : Implications of making it zero"
- Next in thread: John Bell: "RE: may be .NET problem"
- Reply: John Bell: "RE: may be .NET problem"
- Reply: Mary Chipman: "Re: may be .NET problem"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 14 Sep 2004 10:01:08 -0700
Hi I have a stored procedure that uses the sp_executesql to dynamically build
a query. Anyhow the procedure runs fine from within the server explorer and
query analyzer (after adding declare statements) but when I try to use the
SQL data adapter wizard I get an error (syntax error by keyword 'BY') also a
data set is not created.
I am using a print @SQL and this is the only portion that has the 'BY'keyword
in the ORDER BY section.
AND (dbo.DML$Data_Item_Log_T.POC_ID = @poc_id) AND
(dbo.DML$Data_Item_Log_T.Data_Type_CH = @dt_type) AND
(dbo.DML$Data_Item_Event_Log_T.Event_Entry_Date_DT <= CONVERT(DATETIME,
@logdt_end, 102))
ORDER BY DML$Data_Item_Log_T.Data_Item_Log_ID DESC
Just wondering if anyone has any ideas?
Thanks.
-- Paul G Software engineer.
- Next message: Adam Machanic: "Re: Identity Seed : Implications of making it zero"
- Previous message: Anna: "Identity Seed : Implications of making it zero"
- Next in thread: John Bell: "RE: may be .NET problem"
- Reply: John Bell: "RE: may be .NET problem"
- Reply: Mary Chipman: "Re: may be .NET problem"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|