Forum Replies Created

Viewing 15 posts - 61 through 75 (of 194 total)

  • RE: small query help me out

    Interesting... Thanks Gail

  • RE: small query help me out

    I want to Correct myself....

    I just tested this again and even explicit conversion gives the result as in Jeffs first example. I played some more and it appears that...

  • RE: small query help me out

    Jeff, I think your example is somewhat misleading...

    In the first query SQL converts all the inputs into the most datatype of highest precedence possible, i.e Binary, which is always Numeric.

    In...

  • RE: T-sql Datatypes

    nChar() is Fixed length

    and nVarChar is variable length.

    In practice, the disk space used is

    nChar(5) => will always use 12 Bytes ( 2 *n ) +2

    nVarChar(5) = > uses 3...

  • RE: T-SQL Development Standards

    I second Jeffs sentiments. I had to do this aswell, and without management support DB standards get nowhere. Especially in the face of non DB developers and Administrators...

  • RE: help with leap year

    If you had a Date you could also use

    Declare @Date int

    Set @Date = getDate()

    Select Case Datepart( year, @Date ) % 4

    when 0 Then 1

    ...

  • RE: Need help on performance and integrity

    Sorry for posting the whole script again. some minor changes required but the code below gives the required result.

    I changed the script to

    1. Take All codes into Account...

  • RE: Need help on performance and integrity

    No problem with the delay. I just wanted to know if it has solved your problem...I will check the scenario where it gives the incorrect answer

  • RE: Select Last Dates on each job

    A data sample ( real or fictional) would help to understand the problem and therefore solve the problem

  • RE: weird behaviour executing stored procedure in SQL2005

    In my experience when dealing with dates it is best to be explicit about the format. Although format 112 (ISO) is nice, I Have found that format 120 (ODBC...

  • RE: Column Check using T SQL

    This should be what you are looking for

    If Exists(

    ---Check if such a row exists

    Select top 1 * From Tab where Col is...

  • RE: Column Check using T SQL

    This should be what you are looking for

    If Exists(

    Select top 1 * From Tab where Col is Null

    )

    Begin

    Raiserror( msg.......)

    End

  • RE: Wierd Counter!

    The solution to this is very much like a solution I posted earlier, but not without a row identifier as mentioned before.

  • RE: Extracting pieces of a string...

    You asking for standard Split functionality... There are many threads (and articles) on this site dealing with this)

    A search on "split" should give you the result you want

    Sorry I...

  • RE: Updating Values Without Cursor

    either one of the following does what you are asking. The Second query is marginally faster

    Update Tgt

    Set ColA = Src.ColA

    From #MyTable as tgt

    Left join(

    Select

    TgtID = t.CoID

    ,Src.*

    , RowNum...

Viewing 15 posts - 61 through 75 (of 194 total)