Forum Replies Created

Viewing 15 posts - 766 through 780 (of 920 total)

  • RE: query to find out last date of the previous month

    Substitute the date you have for getdate()

    select

    dateadd(d,-1,convert(datetime,convert(varchar(2),datepart(mm,


    And then again, I might be wrong ...
    David Webb

  • RE: Creating read only user

    You might check out what permissions have been given to the 'public' user group.  I've seen databases where public was given everything (usually test/development databases) and it was very difficult...


    And then again, I might be wrong ...
    David Webb

  • RE: programming

    I'd give you the opposite advice.  Do everything you can with stored procs.

     

    Performance is usually better

    It keeps the data management in the database where, in my opinion, it belongs

    Impact analysis...


    And then again, I might be wrong ...
    David Webb

  • RE: Converted Sybase to SQL Script

    This looks a little strange:

    AND     JBS_BEFORE_QUANTITY > 0

    AND     JBS_BEFORE_QUANTITY < 1

    What's the data type for this column?  If it's integer, that might explain the 'no rows returned' problem.


    And then again, I might be wrong ...
    David Webb

  • RE: Binary data pros/cons

    Just to be a little contrarian...

    Text and image data types can be performance concerns and you need to make sure your hardware is up to the task and your physical...


    And then again, I might be wrong ...
    David Webb

  • RE: Database Locking Page Locking

    It will release the lock when the transaction is committed.  If you have an update that spans a large number of rows, the server maintains the locks on all of...


    And then again, I might be wrong ...
    David Webb

  • RE: SQL Server Error 18456

    Just off the top of my head:

    Make sure the server is set to accept the type of login you're using (SQL Server, Windows authentication, or mixed mode)

    Make sure the user...


    And then again, I might be wrong ...
    David Webb

  • RE: RTRIM

    I'm guessing that @to is defined as char(xx), so it will always be xx long.  Define it as varchar(xx) and the variable will hold only what you stuff in.


    And then again, I might be wrong ...
    David Webb

  • RE: cursor error msg

    It doesn't appear that the cursor ever stops, so you're running off the end of the result set.

    Try

    WHILE @@FETCH_STATUS = 0

    instead of the 0=0 condition.

    0 indicates a successful fetch,...


    And then again, I might be wrong ...
    David Webb

  • RE: Things I know for certain...

    Absolutely spot on.  Though I do thnk Peter Davison desrves honorable mention for Doctor Who.

    I might add:

    Whatever new management paradigm is proposed by the latest business guru will have worked...


    And then again, I might be wrong ...
    David Webb

  • RE: How to turn 3 into ''''03'''' ?

    How about ...

    declare @y int

    set @y = 3

    select substring(convert(varchar(3), @y + 100),2,2)

    It's not a builtin, but it doesn't look too painful.


    And then again, I might be wrong ...
    David Webb

  • RE: SOA (multiple database)

    No.  Why would that need to be the case?  I'm working with a vendor who is service-enabling our banking transaction system.  We haven't decided on the service granularity yet, but...


    And then again, I might be wrong ...
    David Webb

  • RE: Database inconsistency--which report to believe?

    I don't have any good news, I'm afraid, but you might want to check

    http://support.microsoft.com/default.aspx?scid=kb;en-us;828337

    to see if this looks like your problem.

     


    And then again, I might be wrong ...
    David Webb

  • RE: Help! Client Connectivity software needed

    Give this a try:

     

    http://msdn.microsoft.com/data/mdac/default.aspx

    It should let you download the latest data access components.  If you need the database tools, you might try downloading the trial version of SQL Server...


    And then again, I might be wrong ...
    David Webb

  • RE: HELP - Recovery Model

    If the log is set to auto-grow, the percentage will drop at the point where the log expansion has occurred.  That's a guess, not a certainty, since I'm not on...


    And then again, I might be wrong ...
    David Webb

Viewing 15 posts - 766 through 780 (of 920 total)