Forum Replies Created

Viewing 15 posts - 5,281 through 5,295 (of 7,505 total)

  • RE: how to fiind data inside of a string

    So is this what you are looking for ?

    declare @myfile varchar(256)

    set @myfile='D:\MailRoomImporter\incoming_documents\releases\OC\11000248.pdf'

    Select datalength(@myfile)

    SELECT @myfile

    , substring(@myfile, 40, datalength(@myfile)) as TheRest

    , CHARINDEX('\',substring(@myfile, 40, datalength(@myfile)),1) as theslash

    , substring( substring(@myfile, 40, datalength(@myfile)), 1,...

  • RE: confused on a select into..

    You'll have to name those columns (in the exact sequence as needed for your target table) from the source table.

    Using query analyser, in the object explorer, rightclick the source table,...

  • RE: Dropping a partition

    thank you for the feedback (urls and demo script) 😎

  • RE: The Mistake

    if the SQL2005 SP2 release is to be considered an omen for SQL2008 ....

    I'm right there with you :doze::blink:

  • RE: Dropping a partition

    - Can you post the DDL for the PF, PS, the table and all its indexes ?

    and the results for :

    /*

    show partitioned objects

    */

    select distinct

    p.[object_id],

    ...

  • RE: filegroups and files

    and whyle you're at it ....

    Split user object and system objects.

    Create another filegroup, set it to be the default.

    Move all your tables/clustered indexes to it.

    There will be no immediate profit,...

  • RE: scheduling update statistics

    - use auto update stats in the database options. This way you can lower the frequency of your updatestatistics job

    Is this a SQL2005 enterprise edition ?

    also schedude online index...

  • RE: Sql 2005 Instance; dynamic ports and firewall issue

    yep.

    That's how I would do it.

    btw.you can install the instance using dynamic ports, up to the sp/cu level you want it to be and then fix the portnumber.

    Maybe it isn't...

  • RE: Slower and slower.. what will you do...?

    If you cannot convert to set-based inserts (preferable bulk inserts) ...

    skip the "if exists" but use the new SQL2005 try catch methode and put a unique constraint at the field...

  • RE: Deleting

    just my 2 ct

    - with mass deletes:

    - limit the number or deletes per transaction to avoid (dead) locking.

    - perform full table(s) maintenance after the operation to...

  • RE: xp_cmdshell problem

    -if the cmdshell hadn't been actived, the exec would never work.

    - put a print statement right befor the exec statement

    print 'cmd: ' + @cmd

    this way you'd...

  • RE: Deadly table scans

    well ... let's hope you are on SP2 with at least CU4.

    - install MS performance dashboard (download free at MS):cool:

    download it an install at as well client as server. It...

  • RE: Deleting

    By the way (almost forgot)... they haven't fixed the code windows on this forum, yet. If you just copy and paste, they come out all on one line.

    If you...

  • RE: Dropping a partition

    I should also note that after I created the partitioned table, I created a clustered Primary Key Index that was NOT partitioned (since the PK is different than the partitioning...

  • RE: Restore

    saveguard the query. :rolleyes:

    There's some nice data in the box.

Viewing 15 posts - 5,281 through 5,295 (of 7,505 total)