Forum Replies Created

Viewing 15 posts - 3,031 through 3,045 (of 3,543 total)

  • RE: xp_cmdshell fails and returns 255

    I suggest you begin/commit another transaction for CM_Error_LogWrite or use a second connection altogether. Using OSQL will cause you more problems and introduce more points of failure.

  • RE: Update Excel from SQL server

    Based upon your example you are using Linked Server to access Excel. When doing this sql does not know it is Excel (this is handled by the driver) and will...

  • RE: Update Excel from SQL server

    Ooops!

    Just noticed this is in the DTS section and therefore assume you want to DTS to Excel.

    You can either DTS direct to Excel but there are...

  • RE: Update Excel from SQL server

    Can you be more specific.

    Do you want Excel to update the worksheet or for sql to create the worksheet?

  • RE: Complicated SQL Query

    Alternative to using cursor using temp table but depends on volume.

    create table #temp (rowid int IDENTITY(1,1),file_no varchar(6), ref_no varchar(6), container_no varchar(7)) 
    

    insert into #temp (file_no,ref_no,container_no)...
  • RE: Using CASE to open a search

    A bit late but if you want a solution without CASE then

    AND (@id = 0 or @id = UserID) 

    Edited by - davidburrows on 09/24/2003...

  • RE: Executing Stored Procedures in a Job in MSSQL 7.0

    The file will contain output from the job as a result of PRINT or SELECT FROM. A SELECT...INTO will not output to the file. Therefore the output from the snippet...

  • RE: Avoiding NOT EXISTS or NOT IN

    jollyguy4all,

    quote:


    select * from labels_19_jul_2003 where id not in (select id from labels_19_jun_2003)


    I...

  • RE: Problems with XP_FILE

    Sorry about that, I realized that a few minutes ago. I haven't got SQL2K so I don't know. I suggest you look on the server to locate where sql was...

  • RE: Problems with XP_FILE

    The error is due to wrong or out of date include files. Replace srv.h, srvapi.h, srvconst.h, srvdbtyp.h, srvmisc.h, srvstruc.h, srvtok.h, srvtypes.h in your C++ include folder (making a copy first)...

  • RE: Avoiding NOT EXISTS or NOT IN

    I prefer joins but don't know if performance is better though.

    SELECT t1.field1,t1.field2,t1.field3 
    
    FROM Table1 t1
    LEFT OUTER JOIN Table2 t2
    ON t2.field1 = t1.field1
    AND...
  • RE: Need help speeding up my Website

    Agree with Phillip. In cases like this I put time calculation displays in the page to see what is taking the longest. If you have tuned the query then it...

  • RE: Importing from Access Error

    Access Memo field equates to SQL text field and allows for text greater than 255 for Access and 8000 for SQL. If you try to DTS a memo column that...

  • RE: SQL Help (first and last record)

    or

    SELECT o.EmployeeId,f.Freight,l.Freight 
    
    FROM (SELECT EmployeeId,
    MIN(OrderID) AS 'FirstOrderID',
    MAX(OrderID) AS 'LastOrderID'
    FROM Orders
    GROUP BY EmployeeId) o
    INNER JOIN Orders f
    ON f.EmployeeId = o.EmployeeId...
  • RE: requirements for a development web server

    IIS 5.0 comes with Windows 2000 and .NET Framework is downloadable from Microsoft (see http://msdn.microsoft.com/netframework/downloads/howtoget.aspx )

    Edited by - davidburrows on 09/22/2003 07:07:00 AM

Viewing 15 posts - 3,031 through 3,045 (of 3,543 total)