Forum Replies Created

Viewing 15 posts - 13,381 through 13,395 (of 13,841 total)

  • RE: Nested SPs where the inner SP returns a recordset

    I think that table variables might give you what you need - they can be passed as parameters to/from stored procedures - try reading the on-line help and see how...

  • RE: How to create one sql table from linked tables

    What do you mean by 'linked table'?  Are you talking about a table residing in a linked server?  Or perhaps you're using Access and have linked to a SQL Server...

  • RE: ActiveX component can''''t create object: ''''Excel.Application''''

    I still think that the error is happening before processing gets to the

    Set Excel_WorkBook = Excel_Application.Workbooks.Open(sFilename)

    line.  To prove it one way or the other, try changing sFilename to...

  • RE: Decimals and formatting

    Why do the CONVERT when the ROUND works without it?

  • RE: User Defined Function Problem

    No problem.  The other thing you should consider doing is creating a lookup table:

    DayNo (int, PK), Day (varchar(10))

    and then populating it as follows:

    1     Monday

    2     Tuesday

    ........

    7     Sunday

    Then you can just do...

  • RE: User Defined Function Problem

    This can be achieved in many fewer lines, try this:

    declare @days char(100), @classday varchar(10), @dayno int

    set @days = '         Monday    Tuesday   Wednesday Thursday  Friday    Saturday  Sunday'

    set @classday = 'Sunday'

    set @dayno...

  • RE: RE:

    Eh?  Was this supposed to be part of another thread?  If not: "Which stored procedure?"

    If your question is just: "Can stored procedures be called from VB6?", the answer is yes. ...

  • RE: ActiveX component can''''t create object: ''''Excel.Application''''

    Sorry if this is obvious, but is Excel installed on the SQL Server server itself (if you know what I mean)?

    Your error is happening at the CreateObject line, before the...

  • RE: I know it''''s a long shot, but.......

    But I've just eaten 3 pieces of fried chicken & need to remove the grease somehow - not on my screen either

  • RE: Reading Text file

    A fixed-length file has ALL records the same length!  Yours does not, so it is not.

    If you've got less than 65,535 rows you can do it in Excel in 1...

  • RE: Decimals and formatting

    Here's another way that might be faster as it's not doing the CONVERTs

    SELECT floor(0.4799608993157 * 1000) / 1000

  • RE: Union Flaw

    Following your own explanation, surely the formula is

    UNION ALL = UNION + duplicates

    ?

  • RE: Log off and deny access to database

    Somethink like this might be what you need:

    ALTER DATABASE <dbname> SET SINGLE_USER WITH ROLLBACK IMMEDIATE

    go

    Regards

  • RE: Union Flaw

    I don't think that this is enough detail.

    Can you also possibly include some sample source data and what you are seeing - highlighting the spurious rows.

    Regards

  • RE: Migration ''''Group BY'''' SQL, from Sybase to MS SQLServer 2000

    OK - can you provide a small sample of the data you have and what you want to be returned.  No need to include all of the existing GROUP BY...

Viewing 15 posts - 13,381 through 13,395 (of 13,841 total)