Forum Replies Created

Viewing 15 posts - 6,481 through 6,495 (of 7,429 total)

  • RE: Deleting NULLs Without Primary Key

    First, is there a reason why you could get the source to stop doing this. Second if any one of those fields must have data in it you could just...

  • RE: Creating a View

    The problem is B does not exist in the data source. You can however do it like so.

    SELECT A, B,

    C = Case B

    When 'Female' Then 'Woman'

    Else

    'Man'

    FROM (Select A,

    B...

  • RE: how to run bcp

    When you do xp_cmdshell it shells out to the server you are attached to and the file will be exported there. You have to open a CMD prompt on you...

  • RE: Copying a live MDF file

    Not sure, most likely paid Microsoft so the backup hooks or are hooking some API to get to the database. If I come across anything I will pass it on.

    "Don't...

  • RE: Field Name change and trigger problems

    You may need to do it thru QA code by doing an

    ALTER TRIGGER "tblCustomerName_DTrig" ON dbo.tblCustomerName FOR DELETE AS

    SET NOCOUNT ON

    /* * CASCADE DELETES TO 'tblCustomerChallenge' */

    DELETE tblCustomerChallenge FROM deleted,...

  • RE: Restore Date

    Your request is confusing. Can you be more specific about what you mean. First it sounded like you wanted ther date of the last time the database was resotred. But...

  • RE: multi-inserts

    In truth no, except that they execute immediately one after the other. They should ahve the exacte same execution time as doing seperately but you have to keep in mind...

  • RE: Copying a live MDF file

    Do a file backup to the local drive system or a remote drive.

    BACKUP DATABASE [dbnamehere]

    TO DISK = 'D:\Backups\Backup1.dat'

    WITH

    INIT,

    NAME = 'Database Full Backup'

    Just fill your information in then restore to the...

  • RE: vbscript filesystemobject in nt 4.0 vs w2k

    Let us know what happens?

    "Don't roll your eyes at me. I will tape them in place." (Teacher on Boston Public)

  • RE: group by

    You will not be able to group by as the data varies, a piivot table won't work here and you cannot join to self enough to cover every possiblity.

    However this...

  • RE: dbcc shrinkdatabase

    So far this has never failed me and cleans up a number of issues with databases when adjusting size (especially drastic changes). Note: large databases take a while, generally.

    --Truncate Log...

  • RE: Query returning nulls when there is data

    Maybe I am missing something, can you post an example of what you get as the output. Also please post the table DDL so I can see what happens here...

  • RE: UPDATE sp doesn't update???

    Who knows why sometimes things do this. Great to hear it's working.

    "Don't roll your eyes at me. I will tape them in place." (Teacher on Boston Public)

  • RE: Query returning nulls when there is data

    Try

    Select name, date, dept from table

    where

    (date between '2/2/02' and '2/4/02')

    and dept = 'red'

    You should always put between statements in () to make sure parses correctly.

    "Don't roll your eyes at me....

  • RE: List of Stored Procedures

    One way is to run

    for Single DB

    select [name] from sysobjects where xtype = 'P' and base_schema_ver != 16 order by [name]

    for All DB

    sp_MSFOrEachDB 'select ''?'' AS DB , [name]...

Viewing 15 posts - 6,481 through 6,495 (of 7,429 total)