Forum Replies Created

Viewing 15 posts - 31 through 45 (of 49 total)

  • RE: MSAccess to SQLServer 2000 via ODBC

    Is this Access 2000?

    This sort of behaviour often is related to the indexes (within SQL-Server) on the table. If Access isn't sure which one to use for what then you can read data...

  • RE: Table Variables

    Can you tell us specifically what you're trying to acheive...

    The way I read this, if you can do it using temporary tables then you should be able to do the...

  • RE: store proc insert quesiton

    I'm not really sure I follow... Can you not do the calculation of the primary key as part of the SELECT statement or is it too complicated. If that's the...

  • RE: Error on using user!userid

    Hi

    Sorry for the stoopid question but what are you writing this in?

    I've never seen the "user!userid" construct within  T-SQL. Perhaps it's just something I've missed.

    Sam

  • RE: Stored Procedure Problem - Exits Prematurely?

    Fair point but this wouldn't work if your SP was kicked of by another server process (say, a batch job).

    I do generally dissagree though... you should always have error handling...

  • RE: One "big" Parameter -- Please Help

    Just as a totally off-the-wall idea, have you thought about building your your argument string into an XML stream from your ASP page (which you'd pass to your stored proc...

  • RE: View Oddity

    Hmmmm, very odd.

    The only thing I can think of is, are you sure that the 2 servers are set up the same way (sort orders; collation and that sort of...

  • RE: best way to create a potentail child record

    Hi Yogi,

    The "standard" way I'd do that would be along the lines of :-

    WHERE EndDate IS NULL OR GetDate() BETWEEN StartDate AND EndDate

    I'd steer clear of any "IsCurrent" flags or...

  • RE: best way to create a potentail child record

    Hi

    Yes this will work and it gives you the flexibility that a person could work for more than one company and a company could (of course) have more than one person...

  • RE: Firing a trigger on a yet-to-be-stored field

    Hi

    Are you sure this is a SQL-Server problem.... it sounds to me like it might be that you need to do a REFRESH of the combo box values. It's a...

  • RE: Select from one table, inserting into another

    Hi

    Frank's right - only use a cursor if you have a death wish.

    But this should be fairly straight forward. In your new table make colum 1 you PhoneNumberID, and set it...

  • RE: Views vs Stored Procs

    Hi

    What I mean by "loads more flexible than a stored procedure" is that with a view you've effectively got another table that you can do selects, order, joins and anything...

  • RE: Stored Procedure Problem - Exits Prematurely?

    Hi

    Sorry if this is a bit over-obvious but it looks to me like at the time it "fails" that tables 2 and 3 don't have a Col1 value that matches...

  • RE: Views vs Stored Procs

    Well, yes...

    Effectively a view is giving you another table to work with, and is therefore loads more flexible than a stored procedure.

    You can select specific columns, add "where" clauses or...

  • RE: condition in where to avoid subquery

    Hi

    Do it in 2 steps using a table variable (or temp table)

    First do your initial select "Return <account information> between <2 dates> or <condition regardless of dates>"  where marketing campaign isn't...

Viewing 15 posts - 31 through 45 (of 49 total)