Forum Replies Created

Viewing 15 posts - 2,836 through 2,850 (of 3,544 total)

  • RE: BOL Update

    Prior to Frank's post I downloaded sqlbolsetup.cab (SQL2K (SP3) BOL). The cab contains setup plus msi's for the Windows Installer and one msi for BOL. It installed to the default location

    C:\Program...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Text function in T_sql

    For non negative values I prefer

    REPLACE(STR(512,15,0),' ','0')

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Date String wont store correctly

    Check language setting for login on new server. This can affect date input.

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Storing Records to a cursor

    You can only build a cursor using a SELECT statement.

    Use a temp table, e.g.

    CREATE TABLE #temp (col1, col2 ...)

    INSERT INTO #temp EXECUTE proc1

    DECLARE cursor_name CURSOR

    FOR SELECT col1, col2 ......

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Flattening several rows into one row

    This solution uses a loop instead of a function

    CREATE TABLE #temp (Claim_ID, Cust_Name, Entry_Date, ReportsPrinted)

    INSERT INTO #temp

        SELECT DISTINCT Claim_ID,Cust_Name,Entry_Date,NULL 

        FROM Claim

    DECLARE @report_type char(1)

    SELECT @report_type...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Revert back to old forum software

    Hi Frank,

    No problems here

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Conditional logic in DTS workflow?

    Use ActiveX workflow script to stop processing if duplicate_count>0 by setting

    Main = DTSStepScriptResult_DontExecuteTask

     

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: sp_change_user_login

    The sid of the specified user in the 'current database' is changed to the sid of the specified login. If you use the proc on the 'new database' the 'old...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: SP accessing 2 DBs on 2 Servers

    Try adding

    ;ANSINPW=OFF

    to the OPENROWSET connection string.

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: New Forums are Live!

    Hi Frank,

    Yeh and the avatar looks better

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: New Forums are Live!

    Nice

    Just beginning to get to grips with it.

    Noticed today in Active threads, if on a page a while and then move to...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Importing Flat File with no Key

    I would preprocess the files first before loading into sql.

    Use DOS command

    findstr /i /r "." \folder\* > \difffolder\newfile.txt

    this will produce single file containing each line of all the files with the...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Cant change logical name during restore

    Example TSQL from BOL

    RESTORE DATABASE MyNwind2_Test

        FROM MyNwind_2

        WITH

        MOVE 'MyNwind2_data' TO 'D:\MyData\MyNwind2_Test_data.mdf',

        MOVE 'MyNwind2_log' TO 'D:\MyData\MyNwind2_Test_log.ldf'

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Reporting

    Why not bcp?

    Create a proc to output the data in the format you want then use either bcp, dts or isql to output to a text file.

     

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Transferring info from one tab file to multipe tables

    I would do the following

    Create a staging table (RecordID int IDENTITY(1,1), name, otherinfo, grade1, grade2, grade3, grade4)

    Create a single DTS package to

    1. Truncate staging table

    2. RESEED if...

    Far away is close at hand in the images of elsewhere.
    Anon.

Viewing 15 posts - 2,836 through 2,850 (of 3,544 total)