Forum Replies Created

Viewing 15 posts - 2,851 through 2,865 (of 3,544 total)

  • RE: Loose the pagination

    For Active Topics, I agree.

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

  • RE: .

    ..-. --- - ..-. .-..

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

  • RE: How to cut off error message when inserting data.

    DECLARE @rval int 
    
    EXEC @rval = sp_helprotect @username=@UserName

    @rval will be 0 if worked otherwise 1

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

  • RE: using grouping

    SUM(CASE WHEN cbostatus <> 'closed' THEN 1 ELSE 0 END) as [Num Requests Open] 

    Will give you the count of open requests

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

  • RE: using grouping

    I'm getting confused on what the problem is now. This query is based on your original plus 'All' in front of Team for Team totals and the data is ordered...

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

  • RE: using grouping

    Try this

    select case when (GROUPING(ddtreasuryteam) = 1) THEN 'All Requests' 
    
    ELSE isnull(ddtreasuryteam, 'n/a') END as Team,
    case when (GROUPING(CBOSTATUS) = 1) THEN 'Total Received'
    else...

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

  • RE: using grouping

    Try changing the first part of the select to

    select case when (GROUPING(ddtreasuryteam) = 1) THEN 'All Requests' 
    
    else isnull(case when (GROUPING(CBOSTATUS) = 1) THEN 'All...

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

  • RE: SP Problem With VB6

    quote:


    If possible I would avoid using the ADO Command.Refresh statement because it has a noticeable performance hit.


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

  • RE: T-SQL Datetime Problem

    When designing a table, if a column is going to contain a date then I automatically make it datetime. There are a lot of pros and cons on what dataype...

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

  • RE: SP Problem With VB6

    It is the RETURN value of the stored procedure. Every SQL Server stored procedure has this parameter (whether it is explicitly used or not).

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

  • RE: T-SQL Datetime Problem

    If you want to remove the time portion from input dates then cast them to varchar(11). Is this the whole procedure? The reason I ask is that I question the...

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

  • RE: variable tablename in cursor select stmt

    The problem is that your table names are in a table and that is why you are using cursors.

    How many 'Volume_Control.tblFilenames_' tables are there and what size are they (rows)....

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

  • RE: variable tablename in cursor select stmt

    Change the cursor2 declare to this

    declare @sql nvarchar(4000)
    
    set @sql = '
    DECLARE cursor2 CURSOR
    GLOBAL
    DYNAMIC
    FOR
    SELECT sum(file_size_bytes) , Lseries from ' + @filename + ' group...

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

  • RE: 20 % records

    Ah! Thought so when I looked at the code as it did not look like traditional sql server.

    Unfortunately I have not used Oracle and cannot help you, maybe someone else...

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

  • RE: How to test DOS "file in use" status?

    Could use fso but would have to trap errors

    DECLARE @fso int 
    
    DECLARE @hr int
    DECLARE @file int
    DECLARE @iomode int
    DECLARE @filename varchar(255)

    SET @filename...

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

  • Viewing 15 posts - 2,851 through 2,865 (of 3,544 total)