Viewing 15 posts - 1 through 15 (of 18 total)
Thanks for all your help everyone.
Got the query to function properly by declaring a variable and building the string based on values passed to the procedure.
But the answers have...
January 18, 2006 at 5:09 am
Mike
Thanks for the reply. I thought about doing it this way, but thought there might be a more efficient way of doing it in the Where clause somehow.
Something along...
January 18, 2006 at 4:13 am
I have went with the following SQL code from the first reply by Michael Du Bois:
CREATE PROCEDURE spGetDocuments
@DateFrom datetime,
@DateTo datetime,
AS
Declare @AddedDateTo datetime
Set @AddedDateTo= DateAdd(DD,+1,@DateTo)
SELECT RecID, Desc
FROM tblFiles
WHERE CTimeStamp BETWEEN '...
August 25, 2005 at 10:04 am
Thanks for all the replies so far, but in reply to the post asking why I am converting, I get the following error "Syntax error converting datetime from character string."...
August 25, 2005 at 9:48 am
Thank you both for your help.
As always with this forum, the help has been spot on.
August 15, 2005 at 9:53 am
All, thanks for your help. As always in this forum, the help is spot on and replies are lightning fast.
Keep up the good work.
Brendan
July 18, 2005 at 12:43 pm
Remi
Thanks for the amazing quick reply. Your solution was exactly what I needed.
Cheers
Brendan
July 14, 2005 at 8:28 am
Hi
Thanks again for all your help. Have taken Philips advice and coded so that the date format sent to the database is of the format MMM DD YYYY. All seems...
June 28, 2005 at 3:42 am
Thanks for the quick reply. Will try to code your solution, just thought it might be easier to change a setting on the database.
Sending dates from web apps to databases...
June 27, 2005 at 10:33 am
Dinakar
Thanks for all your help. I will give this a try.
Brendan
May 6, 2005 at 10:15 am
Hi
Instead of the following record being returned:
AgendaID = 1
AgendaItem = "Make cuppa"
ProposedBy = 1
SecondedBy = 2
I would like it to return:
AgendaID = 1
AgendaItem = "Make cuppa"
ProposedBy = "John Doe"
SecondedBy =...
May 6, 2005 at 10:01 am
TblContacts:
ContactID - Primary Key
FullName - text field
Company - text field
Address - text field
tblAgenda
AgendaID - Primary Key
AgendaItem - Text field
ProposedBy - Numeric field linking to ContactID of tblContacts
SecondedBy - Numeric field...
May 6, 2005 at 9:41 am
Hi
Thanks to all for your help. I have managed to take something from each reply to get the problem sorted.
Brendan
September 22, 2004 at 4:42 am
Have made a seperate table which now links the section to the Contact, but
am now having trouble inserting into this table using SQL. The code I have
(simplified) is:
Declare @ContactID...
September 21, 2004 at 5:48 am
Thanks for all the help. The code works perfectly!
Brendan
September 7, 2004 at 2:59 am
Viewing 15 posts - 1 through 15 (of 18 total)