Forum Replies Created

Viewing 15 posts - 1,216 through 1,230 (of 1,315 total)

  • RE: Customized Output Labels

    How about using extended properties instead?

    This approach will use field names from extended properties, or the original field name if the property is missing:

    create

    table

  • RE: PASS Summit 2004

    The biggest complaint I have is that I was so busy trying to get to all the sessions I never seemed to have time for the hands-on labs.  But I...

  • RE: Optimising a Distributed Query

    If the remote stored procedure call is faster, how about a stored procedure that returns the DOB in an output parameter?

    I have also seen that slow linked server response is...

  • RE: SQL2000 - Very long query using IN does not generate the same query plan.

    I remember reading somewhere that long IN lists are not efficient, they should be changed to joins.  I don't remember a specific definition of "long", but you might consider it. ...

  • RE: Backing up/restoring a replication db as another name...

    Try sp_removedbreplication 'dbname'

    This will clear replication from the specified database, without affecting other publications.

  • RE: SQL2000 - Very long query using IN does not generate the same query plan.

    NULLS in the IN list can have strange effects.  If you're using "WHERE a IN (SELECT x FROM ...)", and [x] is a nullable field, its a good idea to include...

  • RE: Backup strategy for replication

    Sounds like transactional replication would be a good way to go.  It's fairly easy to configure, and there are lots of options for scheduling the timing of updates.

    Some questions I would...

  • RE: EXEC & sp_executesql

    If you're saying that this will work if you change the last line to EXEC (@sql), then why not do that?  I don't know why sp_executesql can't handle it, but...

  • RE: Scheduling dos commands through jobs dtsrun

    If its a permissions problem, its almost certainly an OS permissions problem not SQL Server and having "similar privelges to SA" may not be good enough.  To close security loopholes...

  • RE: Attached and Detached

    The previous post can help you list the names of detached databases, but not the detached files that I think you're looking for.

    It sounds like you have a large file system (SAN?)...

  • RE: Scheduling dos commands through jobs dtsrun

    I have to deal with a Teradata data warehouse and gave up on the ODBC driver long ago.  I don't know if it is Microsoft or Teradata code at fault,...

  • RE: Question of the Day for 08 Oct 2004

    So if results over 75 chars are a problem, how can Query B (which returns a longer result) possibly work without using the workaround given in the explanation?  The question says the...

  • RE: Question of the Day for 08 Oct 2004

    The question as posed says Query B works (in spite of the missing quote).  Assuming the missing quote is a misprint, are we to believe that Query B works without...

  • RE: Update with zero

    Ignore that last post, I reread the question and realize you want fixed-width numbers and the letters are extra.  Go back to Chris' solution.

  • RE: Update with zero

    If your goal is to pad with zeroes to a fixed width, this works with no CASE statements:

    set housenumber = right('0000' + ltrim(rtrim(housenumber)), 4)

    This assumes your desired field width is...

Viewing 15 posts - 1,216 through 1,230 (of 1,315 total)