Forum Replies Created

Viewing 15 posts - 5,371 through 5,385 (of 8,731 total)

  • RE: Executing a SQL Server Stored Procedure in PHP

    I'm confused.

    Were you able to call your GetMonthDays procedure but you want to use procedures to call data from SQL? If that's the case, it would be the same...

  • RE: Tally-OH! Help

    If I understood correctly, this should help you:

    CREATE TABLE #Source(

    SomeString varchar(8000))

    CREATE TABLE #Test(

    [STD_SiteName] [varchar](20) NULL,

    [STD_Parameter] [varchar](16) NULL,

    [STD_Qualifier] [varchar](6) NULL,

    [STD_PQ] AS (([STD_Parameter]+'_')+[STD_Qualifier])...

  • RE: Comparing Bits and Ints

    This is what I get in the Predicate for each SELECT statement.

    SELECT *

    FROM bitTest

    WHERE somebit = 1

    --[Test].[dbo].[bitTest].[somebit]=[@1]

    SELECT *

    FROM bitTest

    WHERE somebit = 'True'

    --[Test].[dbo].[bitTest].[somebit]=CONVERT_IMPLICIT(bit,[@1],0)

    SELECT *

    FROM bitTest

    WHERE somebit = 112

    --[Test].[dbo].[bitTest].[somebit]=[@1]

    --No results

  • RE: Are the posted questions getting worse?

    I'm working here as most of the people in my office. Except for my boss who said he was sick and now I have to fix all the problems he...

  • RE: Comparing Bits and Ints

    I just made a test and it doesn't seem to be an implicit conversion when using 1 or 0. It's different when you use 'true'.

    CREATE TABLE bitTest(

    ...

  • RE: The End

    Nice question, I checked the answer just to be sure and realized that a nice wrong answer would have been June 6, 2079 which is the limit for smalldatetime. Mostly...

  • RE: Go Pats

    No, way!

    Go Ravens!

    Ravens Nation 😀

  • RE: Wow!!! I didn't know that could be done - Datetime Calculations

    Yes, it's possible, but I wouldn't advice on using decimals on calculations as it's easy to get it wrong.

    For example, .01 translates into 864 seconds instead of 900 seconds. To...

  • RE: Row-level security

    Could you create filtered views and give permissions over those views?

    I'm not sure how you're handling your security.

  • RE: The Rich Rewards of Tuning SQL

    Of course, buying new hardware can get you some time. But how much time would you get if your app is full of crappy code? There's no piece of hardware...

  • RE: Are the posted questions getting worse?

    Happy Holidays to everyone!

    I wish that you can enjoy quality time with your families and beloved ones and may the new year bring you happiness and growth (hopefully not in...

  • RE: Why can't we use variables in DDL?

    You can't use variables to replace object names. That goes for DDL, DML, DCL or anything in T-SQL.

    You could use dynamic SQL for this.

  • RE: Are the posted questions getting worse?

    Eirikur Eiriksson (12/23/2014)


    Lynn Pettis (12/23/2014)


    Eirikur Eiriksson (12/23/2014)


    Lynn Pettis (12/23/2014)


    Okay, I have a question about PASS 2015. I can save a lot of money by registering for PASS 2015 now....

  • RE: Are the posted questions getting worse?

    GilaMonster (12/23/2014)


    http://www.sqlservercentral.com/Forums/Topic1646163-391-1.aspx

    I'll just be in the corner sobbing softly...

    Smile, you're on Candid Camera. 😀

  • RE: Lists

    g.britton (12/23/2014)


    The problem with the fourth option is that the nested query needs to be in parentheses. So this works:

    SELECT SUBSTRING( ( SELECT ', ' + productname...

Viewing 15 posts - 5,371 through 5,385 (of 8,731 total)