Forum Replies Created

Viewing 15 posts - 946 through 960 (of 962 total)

  • RE: Question of the Day for 22 May 2006

    Yelena,

    I also agree with you.

    I know that the questions and free and I have still learn something from this, and that some questions are abigious on purpose (pick the...

  • RE: Question of the Day for 22 May 2006

    I am with you Terry.

    I doubled checked with BOL just to make sure my memory wasn't deceiving me - I noticed the caveat so re-read the question. It didn't seem...

  • RE: Using SQL from Access to ASP

    Ritesh,

     

    It's looks as though you have missed out a &

    strSQL2 = "SELECT qryEatingDisorder.* FROM qryEatingDisorder WHERE PageID = '" & lngRecordNo & "'" & "and EatingID = '2'"

    Should do the...

  • RE: upsizing query concern

    Yueming,

     

    You need to write your case statement like this:

     

    Case when...

  • RE: upsizing query concern

    Also don't forget that dates in SQL Server use single quotes not #. So '12/02/2005'

    Also it's a general rule to put dates in the following format yyyymmdd, as to avoid...

  • RE: Update Query?

    Hi Bob,

    If I understand you correctly, you want to insert data from a query into a table but not populate all the fields in the table, in which case something...

  • RE: Parsing question in T-SQL ---- PLEASE HELP!!

    Hi Jeff,

    I did think of using SUBSTRING, but I can't remember know why I used RIGHT... I think it may have been because the account numbers are variable length, so...

  • RE: Parsing question in T-SQL ---- PLEASE HELP!!

    Syed,

     

    Just realised I missed a closing bracket, one after the +1, should read:

    select RIGHT(mytext, Len(mytext) - patindex('%[^0]%', mytext)+1) from mytable

    Obviously I should have said replace "mytext" with you column name,...

  • RE: Parsing question in T-SQL ---- PLEASE HELP!!

    Hi Syed,

    I had a similar problem when bringing together account information from three different sources and combining them into one report, without leading zeros - don't you love it when...

  • RE: Question of the Day for 07 Apr 2006

    noggin,

    I found this MSDN article:

    http://msdn2.microsoft.com/en-us/library/ms189566(SQL.90).aspx

    UNSAFE

    UNSAFE gives assemblies unrestricted access to resources, both within and outside SQL Server. Code that is running from within an UNSAFE assembly can...

  • RE: Obscure Error Message in Query Analyser

    Hi Lester,

    You don't neccessarily have post the whole sproc just the important bits..

    But having said that and re-read you previous comments. It does sound as though one the input variables...

  • RE: Obscure Error Message in Query Analyser

    Hi Lester,

    Yes I realise that it didn't solve your sproc problem but it's best practice, and when you start using cast with a varchar bigger than 30 characters it would...

  • RE: Obscure Error Message in Query Analyser

    Hi Lester,

    While you are correct in saying that the size part of varchar is optional in teh Cast, you should really specify the size as it will default to 30...

  • RE: Equilivant to exit sub in a stored procedure?

    Mick,

    RETURN is what you are looking for.

    BOL shows an exmaple in a stored procedure.

    Cheers,

    Rodney.

  • RE: SELECT Help

    This might have something to do with Financial Year Starts. If July 1st is the start of the fiscal year then July would come before December, but January would come...

Viewing 15 posts - 946 through 960 (of 962 total)