Forum Replies Created

Viewing 15 posts - 3,376 through 3,390 (of 3,543 total)

  • RE: General Network Error

    If your client is connecting to server1 and server1 is doing a distributed query on server2 (linked server) then you need to test connectivity from server1 to server2 (ie ping,...

  • RE: General Network Error

    Have you the rest of the error message which shows the library and protocol used. Has this ever worked? If so what has changed? Is the server behind a firewall?...

  • RE: stored proc scenario

    use either

    SELECT @ProjectID,t.taskID,1

    FROM tblTask t

    or

    SELECT @ProjectID,t.taskID,s.statusID

    FROM tblTask t

    CROSS JOIN tblstatus s

    WHERE s.statusID = 1

    First option will be faster as you do not need extra join but the second will only...

  • RE: stored proc scenario

    1. No. The data types are int and you can do what you like with them. IDENTITY is only used to create new number (int) when a row is inserted.

    2....

  • RE: Find Maximum Consecutive Years In a Series

    create table #a (ID int,Year int)

    insert into #a values(1,1993)

    insert into #a values(1,1994)

    insert into #a values(1,1995)

    insert into #a values(1,2001)

    insert into #a values(1,2002)

    insert into #a values(2,1995)

    insert into #a values(2,1996)

    insert into #a values(2,2000)

    insert...

  • RE: Breaking up a list into separate columns

    declare @CT int

    set @CT = 1

    while @CT > 0

    begin

    insert into #tableb select LEFT(Team,CHARINDEX(',',Team+',')-1) AS 'Name',CallID from #tablea where Team <> ''

    update #tablea set Team = LTRIM(REPLACE(Team,LEFT(Team,CHARINDEX(',',Team+',')),'')) where Team <> ''

    select...

  • RE: Error status from ISQLW?

    Try using isql with -b parameter.

  • RE: stored proc scenario

    If you want to insert into tblProjectTasks all the combinations of taskID and statusID then you can use

    INSERT INTO tblProjectTasks

    SELECT @ProjectID,

    t.taskID,

    s.statusID

    ...

    FROM tblTask t

    CROSS JOIN tblstatus s

  • RE: Help needed

    No easy answers, depends on disk space available. If you have restrictions for the database, ie cannot create new table, copy & delete then your only choice is to export...

  • RE: Rounding Issue

    Is NewPrice defined as numeric?

    Can you post data types for all fields (NewPrice,RGPSOPRC,SOPPriceIncrease.AMOUNT etc) and sample (non sensitive) data as well to show what you are getting and what you...

  • RE: Leading Zero's

    I have used that way as well but I also use

    REPLACE(STR(table.version,2,0),' ','0')

    don't know about performace though.

  • RE: Update Stored procedure text

    I always script my procs and therefore change the text files and update DB. In your case I would use EM to script all the procs into a single file,...

  • RE: Extracting AS/400 data to SQL Server 2000

    Cannot help you with AS400 connection as I have never done that. I do connect to a third party db using their own ODBC driver and found the best way...

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

    ctcampbell, I agree that it is best to format dates as yyyy-mm-dd to avoid confusion. Your statement about bcp not properly convert a date like '20020310' may be true for...

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

    Stephen,

    The problem causing your date errors is due to you specifying zero length input. CHange your file to the following and try again.

    8.0

    7

    1 SQLCHAR 0 5 "" 2 GroupCode ""

    2...

Viewing 15 posts - 3,376 through 3,390 (of 3,543 total)