Forum Replies Created

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

  • RE: SELECT from multiple tables

    So can you write the SELECT query for the unrelated table separately?  Eg something like this:

    select CMclientName

    from SCHOOLNET.dbo.clientmaster

    WHERE CMclientName = 'whatever'

    If you can,...

  • RE: Timer

    Can you use WAITFOR?  Check BOL for more details.

  • RE: SQL Job

    In Enterprise Manager, expand Management, right click on SQL Server Agent and select properties.  You'll be able to change the logon properties for the SQL Server Agent service there.

  • RE: Function usage - help needed!

    Have you run the stored proc with the debugger?  It might shed some light on things.

    Regards

  • RE: always rounding down

    Or this

    declare @m as money

    set @m = 200.2365

    select round(@m,2,1)

    It does the rounding that you want, but leaves the 4 dps.

  • RE: Query

    It's pretty straightforward.  Getdate() takes no parameters and always returns the current (system) datetime.  If you want other dates based on 'now', you'll have to use additional functions (eg for...

  • RE: Query

    I do not see why your query should not work, as long as:

    a) StartDate and EndDate are both DateTimes

    b) In the WHERE clause, you are careful with the getdate() bit. ...

  • 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. ...

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