Damage's Profile User Rating: -----

Reputation: 27 Craftsman
Group:
Contributors
Active Posts:
1,074 (0.59 per day)
Joined:
05-June 08
Profile Views:
8,455
Last Active:
User is offline Mar 12 2013 08:47 PM
Currently:
Offline

Previous Fields

Country:
NZ
OS Preference:
Windows
Favorite Browser:
FireFox
Favorite Processor:
AMD
Favorite Gaming Platform:
PC
Your Car:
Who Cares
Dream Kudos:
75

Latest Visitors

Icon   Damage has not set their status

Posts I've Made

  1. In Topic: Helpdesk webdesign language

    Posted 12 Mar 2013

    schweet, thanks
  2. In Topic: Updating values using 3 seperate tables

    Posted 20 Feb 2012

    awesome thanks, didnt know you could use a select like that. heres what i ended up with

    DECLARE @filename VARCHAR(max) 
    DECLARE @fileprecis VARCHAR(max)
    DECLARE @tccref integer
    
    declare precisCursor Cursor for
    select tccref + '1',precis from tempBC
    
    open precisCursor
    fetch next from precisCursor into @filename,@fileprecis
    
    while @@FETCH_STATUS = 0 
    begin
    
    --print @filename + '		' + @fileprecis
    
    
    select @tccref = b.docsetid
    	from tempBC a
    	join files b on a.tccref + '1' = b.origname
    	where a.tccref + '1' = @filename
    
    
    update document set precis = @fileprecis
    where docsetid = @tccref
    --select * from document where docsetid = @tccref
    
    
    fetch next from precisCursor into @filename,@fileprecis
    end
    
    close precisCursor
    deallocate precisCursor
    
    
  3. In Topic: Updating values using 3 seperate tables

    Posted 20 Feb 2012

    it's a db that i can't change unfortunately modi.
    e_i_pi, it's for a set of rows but yup thats pretty much the idea. Theres a title associated with a filename in table one that i need to use to update the row in table three with the correct id

    This is what i had, but it's only affecting one row(using a select instead of update just to see the results)

    DECLARE @filename VARCHAR(50) 
    DECLARE @fileprecis VARCHAR(max)
    DECLARE @tccref integer
    
    
    declare precisCursor Cursor for
    //original file name  title
    select tccref + '1',precis from tempBC
    
    open precisCursor
    fetch next from precisCursor into @filename,@fileprecis
    
    while @@FETCH_STATUS = 0 
    begin
    
    declare refCursor Cursor for
    //ID
    select docsetid from files where origname like @filename
     open refCursor
     fetch next from refcursor into @tccref 
    
    //id    title
     select docsetid,precis from document where docsetid = @tccref
     fetch next from refcursor into @tccref 
    
    fetch next from precisCursor into @filename,@fileprecis
    end
    
    close refcursor
    deallocate refcursor
    
    close precisCursor
    deallocate precisCursor
    
    
  4. In Topic: Unauthorized Access

    Posted 11 Jan 2012

    K, figured out that it's because the file is readonly, thanks. But am i being really dense here? Shouldn't that still cause an io error not and unauthorized access one?
  5. In Topic: Unauthorized Access

    Posted 11 Jan 2012

    Sure,it's pretty sparse


    UnauthorizedAccessException was unhandled
    
    Access to path 'c:\Datawrks\temp\4897128\TCC435674.pdf' is denied
    
    
    

My Information

Member Title:
D.I.C Lover
Age:
30 years old
Birthday:
February 1, 1983
Gender:
Location:
I live in the great state of Denial but i often visit the neighbouring state of Hysteria

Contact Information

E-mail:
Click here to e-mail me
Website URL:
Website URL  http://

Friends

Comments

Damage has no profile comments yet. Why not say hello?