Forum Replies Created

Viewing 15 posts - 3,361 through 3,375 (of 3,544 total)

  • RE: Importing Data

    Not sure if this helps or not. SQL only stores decimal data type, numeric is a synonym for decimal. If you create a table with numeric data type sql will...

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

  • RE: AVG # of cases created per DAY

    Presume it must be a restriction and that sql cannot do implicit aggregate within an aggregate and therefore you will have to do it explicitly (or is that the other...

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

  • RE: Stored Proc modification

    Thats great, it's what we're here for.

    What I meant with my last post was to create a parameter to the proc not in, such as

    Create Procedure spInsertNProject(

    @requestorname varchar(50),

    @requestorLoc varchar(50),

    @dueDate datetime,

    @projName...

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

  • RE: Stored Proc modification

    Declare a new parameter in your proc

    @projectType varchar(50)

    and change the where to

    WHERE a.projectType = @projectType

    I have noticed that you have specified projectType in your list of 'project table' columns but...

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

  • RE: Stored Proc modification

    What I outlined should work fo you. My tblProjectType would contain the project types, e.g.

    1 New DB Creation

    2 DB Amendment

    ...

    and tblTypeTask would contain the relationships of projectTypes and Tasks, e.g.

    1...

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

  • RE: HELP: Dropping a column damages a stored procedure

    Excellent Jeremy

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

  • RE: Identity

    Or simply use Design Table option in EM and remove tick from identity.

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

  • RE: Concat with conditional if's

    or

    ISNULL(REPLICATE('0',5-LEN(PALLET_NUMBER)),'')+PALLET_NUMBER

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

  • RE: Stored Proc modification

    You have not specified the relationship between projectType and Task.

    Assuming two new tables

    tblProjectType:

    typeID int primary key

    projectType varchar(50)

    tblTypeTask

    typeID int

    taskID int

    Then change insert/select to

    INSERT INTO tblProjectTasks (

    Project_ID,

    TaskID,

    statusID

    )

    SELECT...

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

  • RE: Calculating Financial Performance question

    If by product you mean row1.numb * row2.numb etc. Then

    declare @r numeric(28,0)

    set @r=1

    select top 100 @r=@r*numb from tabela

    select @r

    Can't seem to find a way not to use TOP.

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

  • RE: Nested Cursors

    I think you have a logic problem, try

    open pncursor1

    fetch next from pncursor1 into @pname1

    while (@@fetch_status = 0)

    begin

    print '...................p1'

    open pncursor2

    fetch next from pncursor2 into @pname2

    while (@@fetch_status = 0)

    begin

    print 'p2'

    fetch next from...

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

  • RE: Conditional Sum

    What order do you want for the selection and does the table have a PK or IDENTITY column?

    e.g.

    create table #t (IDno int identity(1,1),val int)

    insert into #t values(34)

    insert into #t values(67)

    insert...

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

  • RE: Upgrading to Outlook 2000 Client

    I have SQL7 SP4 on WIN2K and wanted to do external emails with attachments and due to our security policy and firewall restrictions I cound not use SMTP. Therefore I...

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

  • RE: Importing data from txt file (fixed length fields)

    I have used this method before but could never get it to work with fields greater than 255 chars, even when following the documentation!

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

  • RE: DTS Package Run Status

    I run my DTS via SQL agent and use two scripts I found on this site (modified for my own use) to show failed and running jobs. I also log...

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

Viewing 15 posts - 3,361 through 3,375 (of 3,544 total)