Forum Replies Created

Viewing 15 posts - 13,576 through 13,590 (of 13,849 total)

  • RE: when was database updated last?

    Hi Jim

    As far as I know, there is no 'date last updated' property for a database, so there is no straightforward solution to your question.

    The following thread may be of...

  • RE: how to insert a date into a column

    If you are inserting a date into a table, why are you not using a datetime field to store it?

    If you want to select just the date part of getdate(),...

  • RE: sql returning no records when search field left blank

    Try this:

    SELECT * FROM dbo.AGSVC_Idx_Res

    WHERE neighborhood = 'MM_neighborhood' AND city = 'MM_city' AND PRICE BETWEEN 'MM_price_start' AND 'MM_price_finish' AND BEDROOMS >= 'MM_bed_start' AND (HIGH_SCHOOL LIKE 'MM_school' or...

  • RE: how to optimize this query

    You should get a performance improvement if you take the dynamic getdate() out of the queries ...

    declare @now datetime

    set @now = getdate()

    INSERT INTO monitordata

    SELECT * FROM data (NOLOCK) WHERE DATEDIFF(hh,time_stamp,@now)...

  • RE: UPDATE question

    Agree with this. Alternatively, you could create a 'Payment Number' field (1, 2, ...) in both tables and then match on Voucher Number and Payment Number to perform the...

  • RE: Rounding to zero

    Sounds like you are performing integer division (the result of dividing one integer by another is an integer - so if the real result is < 1, the result you...

  • RE: SQL code to combine 2 queries

    Hmmmm ... maybe you should accelerate your migration to SQL Server and all of your problems (well, this one anyway) will go away

    I'd...

  • RE: SQL code to combine 2 queries

    Aha. No, views do not exist in Access - the closest equivalent is a straightforward query.

    You will notice in Access when you are building a query (using the 'create...

  • RE: SQL code to combine 2 queries

    Quick solution ...

    Haven't looked too much at your code - don't have two hours spare, but have you thought about creating 2 views (one...

  • RE: How to copy identity column in Enterprise Manager

    When you say a 'local' database, do you mean SQL Server, or something else (eg Access)?

    How are you performing the export?

    I tried this using the DTS export table wizard and...

  • RE: How to change table, column name of existing table (with data, indexes, constrains...)

    Check out the sp_rename stored procedure in BOL. Haven't used it myself, but it looks as though you can script your required changes fairly easily if you use it.

    Regards

    Phil

  • RE: Help !!!!

    Launch Enterprise Manager and navigate to Management/SQL Server Agent/Jobs. Right-click in the Jobs window and select 'New Job'. Give the job a name and click on the Steps...

  • RE: Calculating number of seconds

    Please explain what Indian time is.

  • RE: Debuging a Stored Procedure

    Your error message is not appearing - please add it to your post.

  • RE: Which version of SQL Server do I need?

    If SQL Server is powering a web app, you cannot buy a licence that refers to CALs and must instead purchase a 'processor' licence.

    So you need the standard edition with...

Viewing 15 posts - 13,576 through 13,590 (of 13,849 total)