Forum Replies Created

Viewing 15 posts - 121 through 135 (of 164 total)

  • RE: T-SQL programming and interview questions....

    if the job description u were supposed to receive prior the interview DID NOT specifically mention all those things he asked you, then

    1. he should not have asked those questions...

  • RE: Insert Statement error

    same applies I guess to cols NUM1,NUM2,NUM3,NUM4,NUM5 - whay to use string values for those?

  • RE: Insert Statement error

    why are u inserting a string '12' into a fld that is called NUM_ID (P.Key)? Wouldn't it be more logical to use integer type for this fld?

     

  • RE: Splitting 1 column into 2 based on spaces

    or if u use ADO.NET to connect to yr server and do some data processing, u can use this class to split strings according to Regular Expression pattern:

    using

  • RE: assign a val to a var thru EXEC

    Qovinn, I guess I did it the way quite similar to yr: used a temp table:

    --update display_order in all 15 tables

    Declare @n int

    Declare @n_str varchar(55)

    declare @recIDmin int

    declare @recIDmin_str varchar(55)

    declare @TblName...

  • RE: assign a val to a var thru EXEC

    Qovinn,

    i haven't tried yr code yet, I'll definitely do. Thanks for yr time posting it!

  • RE: assign a val to a var thru EXEC

    ic it really works Steve. Tnaks a lot for the science! U right about reading, we could not get anywhere w/o it. If only I had more free time..

  • RE: assign a val to a var thru EXEC

    Ray;

    i still cannot see how var @RecIDmin gets assigned a value equal to:

    'select min(record_id) from ' + @TblName

    that's what I wanted to be done in the first place.

     

    Thanks

     

  • RE: and or

    u r missing the name of yr fld in the query:

    WHERE (Staff_Type = 'I' OR Staff_Type = 'P') AND Status = 1

    u may also rewrite the above as:

    WHERE Staff_Type IN ('I', 'P')...

  • RE: Converting an int to an alphanumeric?

    AFAIknow there is no native, built-in command or function in MS SQL Server for this.

    U'd have to do the rick yourself. Create a mapping table in which link all the...

  • RE: Data modification

    the task like this can be (and should be) much easier accomplished in ADO.NET by implementing the following steps:

    1. connect to the SQL server

    2. fetch all the data from your source...

  • RE: Stripping Out Quotes

    my colleague just said that there is an configuration option in SQL Server to tell it to strip all trailing white spaces before evaluation a string. He would not give...

  • RE: Need To Find ''''s

    if u need to find an apostrophe ['] in a string, u'll have to escape it with another apostrophe. That's exactly what Remi did in his post's code line.

    Ccnversely. if...

  • RE: Stripping Out Quotes

    they are not equal in MS SQL 2000. I tried this

    select ascii('')

    --returns NULL

    select ascii(' ')

    --returns 32

    still:

    IF '' = ' '

         SELECT 'equal'

    ELSE

         SELECT 'not equal'

    --returns 'equal'

    ?

  • RE: Stripping Out Quotes

    still cannot understand why

    IF '' = ' '

         SELECT 'equal'

    ELSE

         SELECT 'not equal'

    --returns 'equal'

    anyone have an idea?

Viewing 15 posts - 121 through 135 (of 164 total)