Forum Replies Created

Viewing 15 posts - 58,216 through 58,230 (of 59,066 total)

  • RE: Formatting a date in a stored procedure

    I like "simple" when I can get away with it ... here's my take on the date part thingy...

    --===== Create a...

  • RE: significant figure round/convert

    By using some "JBM PFM"... this is actually a programable converter in that you can program the number of significant digits just by changing the contents of a single variable......

  • RE: ltrim and whitespaces

    You can find out if they are spaces or characters that look like spaces (assuming that all the rows for a given column have leading spaces)...

    SELECT ACSII(LEFT(columnname,1))

    FROM yourtable

    If the come...

  • RE: Two SELECT...GROUP BY queries into one query

    quoteFor that query, we will need a calendar table with a search condition like...

    Senthil,

    Joe is absolutely correct about...

  • RE: Limitation of Varchar 8000 in executing a dynamic MDX inside stored Procedure

    Using Noeld's example, the EXEC statement might look like this...

    EXEC (@str1+@Str2)

    Yeah... I know about xp_executeSQL...

  • RE: Need to parse text field

     

    quoteOk... let's hope Business Objects has a cross-tab function

     If it doesn't, post back 'cause...

  • RE: Need to parse text field

    I guess that means you may have more or less than the 4 parts you mentioned in your first post, eh?

    Ok... let's hope Business Objects has a cross-tab function (or not,...

  • RE: Call a function from within a Stored Procedure

    Thanks for the compliment but I'm no God of SQL ... even after 11 years with SQL Server, I still make some really...

  • RE: Call a function from within a Stored Procedure

    Dionisis,

    I'd say your function has a bit of a bug in it...

    SELECT dbo.fn_GetNumber('123-456')

    It choked on that pretty hard, I'd say.  The problem is that ISNUMERIC allows the "+", "-",...

  • RE: Need to parse text field

    >>Thank you for your input. parse name does not work because the values are not as concistent as we want to have

    Ummm... post some real data and let us...

  • RE: Cursors? Variable Tables and Temp Tables?

     

    quoteFinally, so data trolls still use o-sql...great to know there is still a hard-core...

  • RE: Is there a better way?

    If I may make an additional suggestion... it is not necessary to store the data in a Duration column... you could simply make a calculated column consisting of the the...

  • RE: Validating a numeric within SUM on a VarChar field

    Steven,

    See the post that "SQL Junky" directed you to... the bottom line is ISNUMERIC is not an ISALLDIGITS function... ISNUMERIC allows all sorts of "garbage" in...

    Your CASE statement should be...

  • RE: Is there a better way?

    Using your current table structure, you could do this...

     INSERT LogTime (EmployeeID, CompanyID, LogIn, LogOut,

            DaysTotal,HoursTotal,MinutesTotal,SecondsTotal)

     SELECT @EmployeeID, @CompanyID, @login, @Logout,

            DaysTotal    = X.Sec / (24 * 60 * 60),

           ...

  • RE: DateTime Error

    This should do it...

    USE [DashboardSQL-2K5]

    GO

    DECLARE @return_value int

    EXEC @return_value = [dbo].[spWTRalldatareportsummary]

      @dt_src_date = CONVERT(DATETIME,N'28/04/2006',103),

      @chr_div = NULL,

      @vch_portfolio_no = NULL,

      @vch_prop_cat =...

Viewing 15 posts - 58,216 through 58,230 (of 59,066 total)