Forum Replies Created

Viewing 15 posts - 13,591 through 13,605 (of 13,869 total)

  • RE: DTS import Question

    One way of approaching this is to import the files into a new intermediate table (which has no constraints) and to use standard SQL on this table to perform validation...

  • RE: Multiple Column Join

    As far as I can see, you have solved your own problem:

    SELECT

    d.company, d.address1, d.address2, d.city_id, d.state_id, d.country_id, d.zip, dr.directory_roletype_id, x.eng_itemdesc

    FROM

    T_MTSTM_DIRECTORY d INNER JOIN

    T_MTSTM_DIRECTORY_ROLE dr ON...

  • RE: Error 21770: [SQL-DMO]The name ''''(null)'''' was not found in the specified collection.

    Never seen the error.

    Maybe it's worth reinstalling the client tools on your PC and see whether that resolves it.

  • RE: Error 21770: [SQL-DMO]The name ''''(null)'''' was not found in the specified collection.

    Does this happen for all databases, or just specific ones?

    Do other users experience the same error?

    Regards

    Phil

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

    Thanks Kemp ... yet another requirement that I didn't quite understand

    Here's another version of your query that does not require wildcards:

    SELECT * FROM...

  • 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...

Viewing 15 posts - 13,591 through 13,605 (of 13,869 total)