Forum Replies Created

Viewing 15 posts - 37,906 through 37,920 (of 39,456 total)

  • RE: try/catch

    no. you have to manually check the @@error variable after every statement.

    Steve Jones

    steve@dkranch.net

  • RE: how to create a user without a login name

    Logins are stored in master..syslogins. Users are stored in the db in the sysusers table. They are mapped together. If you have a "none", then the user-> login mapping is...

  • RE: how to join 2 tables using a wildcard?

    select *

    from table1 t1

    inner join table2 t2

    on t2.wildcard + '%' like t1.product

    Steve Jones

    steve@dkranch.net

  • RE: Assigning value of a search

    Two things:

    Global temp tables, unnique to your user connection.

    Perm table, include a spid column and poopulate this with @@spid when you run. Be sure to delete all matching @@spid values...

  • RE: Is 0% Downtime Possible?

    They have fantastic rerouting and fault tolerance. BUT, there is still downtime and not just my local circuit. Mostly I deal with data, but I have seen minutes to hours...

  • RE: Assigning value of a search

    Probably when you run this, there is more of a hit than you need, but if it doesn't run that often, might not be worth it. Of course, it depends...

  • RE: Remote Backup

    It should be possible technically, but over dialup there may not be enough bandwidth. Also, it the sizes grow there may not be enough time to send this via dialup...

  • RE: Log file 13 GB

    backup database <db name> to disk <disk file path and filename>

    backup transaction <db name> to disk <disk file path and filename>

    If you need to shrink the log, it doesn't always...

  • RE: Assigning value of a search

    Yikes? How often would this change? If not often, I'd spend the effort to write the stored procs to handle each case and return the right results. It is a...

  • RE: Best Practices - Editing

    It's pretty easy to build a web interface to allow edits. That would allow you to trap the changes.

    Alternatively you could get a copy of Log Explorer (see our newsletter...

  • RE: dual primary keys?

    In SQL this would be a compound PK. You could setup two fields as the PK with

    ALTER TABLE dbo.<xxx, char( 32), TblName> ADD CONSTRAINT

    Table_PK PRIMARY KEY NONCLUSTERED

    (

    FieldA Int

    ...

  • RE: Is 0% Downtime Possible?

    Thanks guys, I have long felt that it was impossible overall and have adopted the items mentioned. There is always some maintenance window, sometimes on the spur of the moment...

  • RE: Assigning value of a search

    You can't really do this because the exec() statement essentially "shells" to another batch. The best way would be to build a table (perm or global temp ) and then...

  • RE: Clustering

    In reading Pauls reply, I just thought of something. Has anyone tried to simulate clustering using instances? Or can anyone? Be curious to see if the "shared disk" can be...

  • RE: DTS job Failed, Pkg started manually and work.

    Sorry for the late reply. Can you log into the server as the SQLAgent account and exucute them? Have you checked that none of the other packages have started running...

Viewing 15 posts - 37,906 through 37,920 (of 39,456 total)