Forum Replies Created

Viewing 15 posts - 286 through 300 (of 2,469 total)

  • RE: Don''''t blame SQL please....

    "have to use AS for column aliasing..."...not true...do you actually get an error if you don't use "AS"?!?!?!?!







    **ASCII stupid question, get a stupid ANSI !!!**

  • RE: Don''''t blame SQL please....

    Agree with everything said - just curious about one statement..."why do we use AS for column aliases...."..far as I know it's only for readability that we use this - we...







    **ASCII stupid question, get a stupid ANSI !!!**

  • RE: Returning custome list of values with sequence no

    If you're looking for numbering your rows "on the fly" you'll find several examples on this site...

    Here's one way of doing it...

    SELECT IDENTITY(INT,1,1) AS RowNum, col1, col2...
    INTO #tempResults
    FROM myTable
    WHERE...
    
    SELECT...







    **ASCII stupid question, get a stupid ANSI !!!**

  • RE: "CASE Function: it powers in theoretical and practical scripting?"

    Here's a comprehensive article on the numerous uses of case







    **ASCII stupid question, get a stupid ANSI !!!**

  • RE: How to Use EOF - end of file

    ritesh - it has been more than many months of sundays since I dealt with asp code...I can provide the logic...for syntax hopefully someone else will step in...

    1) dim an...







    **ASCII stupid question, get a stupid ANSI !!!**

  • RE: Is that SQL SELECT possible

    Have you tried...

    select patientName, memoCol from myTable where (memoCol like '%headache%') or (memoCol like '%aspirin%') order by patientName?!







    **ASCII stupid question, get a stupid ANSI !!!**

  • RE: Selecting a record from a string containing a value

    hmm..it appears that I didn't understand the requirement correctly...(& Paul does.. )..so you can get a string with any day of the week and...







    **ASCII stupid question, get a stupid ANSI !!!**

  • RE: Selecting a record from a string containing a value

    Rob - Don't think you read Paul's "select" carefully enough...he's using wildcards in his "select..."..

    LIKE '%Friday%'...you should read this on BOL for a compreshensive grasp!







    **ASCII stupid question, get a stupid ANSI !!!**

  • RE: Using EOF -HELP

    ritesh - please do not cross-post..

    follow this post here!







    **ASCII stupid question, get a stupid ANSI !!!**

  • RE: How to Use EOF - end of file

    Are you trying to loop through the same recordset twice ?! If so, you'd have reached "EOF" the first time you loop through it!

    Why not just store the values in...







    **ASCII stupid question, get a stupid ANSI !!!**

  • RE: dbo prefix for tables only or for all?

    Bill..for that you'd have to read this discussion







    **ASCII stupid question, get a stupid ANSI !!!**

  • RE: dbo prefix for tables only or for all?

    I always post this link to chris hedgate's article on this topic..

    qualifying objects with owners







    **ASCII stupid question, get a stupid ANSI !!!**

  • RE: inner join same table twice

    unless he has other fish to fry of course...

    sorry Jeff - you caught me on a Friday when my penchant for silly comebacks is...







    **ASCII stupid question, get a stupid ANSI !!!**

  • RE: How to Retrieve the columns...

    Just realized that Venkat's using information_schema views which is a much better option:

    change your select to get your column names from this instead..

    DECLARE @strColNames VarChar(500)
    DECLARE @tblName VarChar(50)
    
    SET @tblName =...







    **ASCII stupid question, get a stupid ANSI !!!**

  • RE: How to Retrieve the columns...

    It it's just one table then I can't understand why you don't just type out the column names...

    At any rate, Venkat has already posted...







    **ASCII stupid question, get a stupid ANSI !!!**

Viewing 15 posts - 286 through 300 (of 2,469 total)