Forum Replies Created

Viewing 15 posts - 17,701 through 17,715 (of 18,923 total)

  • RE: DTS exec error!

    Your picture didn't show up.. can you describe the problem instead?

  • RE: SQL QUERY problem

    Is this what you need?

    Select DateTime as DATE, CallTypeID as skillgrp,SUM(CallsOfferedHalf) AS offered

    From dbo.t_Call_Type_Half_Hour where (CallTypeID=5002) AND (CONVERT(CHAR(11),DateTime) LIKE CONVERT(CHAR(11),GETDATE()))

    GROUP BY DateTime, CallTypeID

  • RE: Update query error

    You can always make a select of the tickets that need to be updated. Once you have that you can do something like this :

    UPDATE T SET...

  • RE: Update query error

    R u sure this would work??

    Looks like you're returning a null anyways if not match is found...

  • RE: Odd logs

    Really bad. It means that once everybody is out of the database it closes itself. Which doesn't seem really bad, but if you have 200 of those on...

  • RE: Update query error

    this will update all rows ALWAYS, there's no where condition to filter the rows to update, so if no value is found in TicketPriceExVat then a null will be...

  • RE: Problem with searching a table containing apostrophes

    I wish I could go back to .net... stuck in access .

  • RE: Odd logs

    check if the databases are set to autoclose

  • RE: Problem with searching a table containing apostrophes

    Hey Lowell, there's a catch in asp : the vb constants are not all available : (adInteger) doesn't exists unless you have some include file that I don't remember.

  • RE: Problem with searching a table containing apostrophes

    This is the procedure to write on the server

    CREATE PROCEDURE dbo.SearchBookDetails @Title as varchar(50)

    AS

    SET NOCOUNT ON

    SELECT

    Col1, Col2

    FROM dbo.BookDetails

    WHERE Title LIKE '%' + @Title + '%'

    SET NOCOUNT OFF

    GO

    now to...

  • RE: Problem with searching a table containing apostrophes

    Declare @Title

    set @Title = 'Harry potter''s adventure'

    Select * from dbo.BookDetails where Title LIKE '%' + @Title + '%'

    Put this in a stored proc and you're set.

  • RE: How to return a quarter for every person

    You don't HAVE TO but it's better than doing a derived table like I did since it can be modified in the table instead of in the procs...

  • RE: GETDATE() -vs- fn NOW()

    I agree that it returns the same thing.. but I can't find any reference of it in the books online nor yahoo... So I guess it's an undocumented command...

  • RE: Date Conversion

    This means that the data is incorrectly formated in the column.

    Can you run this query and send me the results?

    Select * from dbo.YourTable where IsDate(VarcharDateCol) = 0

    BTW, those are the...

  • RE: GETDATE() -vs- fn NOW()

    Actually now() is not a standard sql function.. are you sure that now is note a view or a user defined function that returns the getdate() value??

Viewing 15 posts - 17,701 through 17,715 (of 18,923 total)