Forum Replies Created

Viewing 15 posts - 46,231 through 46,245 (of 49,571 total)

  • RE: Inline Function

    Ah. Now I see what you're getting at.

    I'd probably call that a macro-type replacement than an inline function, but that's just nomenclature. Probably more of a parser enhancement than an...

  • RE: Inline Function

    I'm sorry I misunderstood you. If you're willing to explain more what you mean (or link to DB2 documetation) I'll try and help.

  • RE: Inline Function

    You mean like this?

    create function dbo.cube(@x float)

    returns FLOAT AS

    BEGIN

    return( @x * @x * @x )

    END

    GO

    SELECT dbo.cube(4)

    😉

  • RE: TechEd - Day 2

    I can't imagne a TechEd with 10000+ people. The local one is max 1200. PASS 2 years ago seemed huge to me, with a bit under 3000 people

  • RE: Inline Function

    They've been there since SQL 2000, along with the table-valued functions.

    eg:

    CREATE FUNCTION DoSomeThing (@ID int) RETURNS INT

    AS

    BEGIN

    DECLARE @Result INT

    SELECT @Result = SomeValue FROM SomeTable Where SomeKey = @ID

    ...

  • RE: Indexes on table with more than 20 columns

    No, because DocumentID is your clustered index and you're not filltering on it anywhere.

    Maybe stick with just DocumentTypeId , IsActive, IsTemplate if the ordering column is going to change. It...

  • RE: General queries regarding SQL Server

    Is there anyone who knows SQL there?

    What @@Servername returns is the full name of the SQL instance. In your case, you have a named instance.

    "OEMSBSCN-3935" is the server name

    "SBSMONITORING" is...

  • RE: Doubt in Understanding in Where condition

    ID & 3 is doing bitwise manpulation

    3 has the bit pattern (just using 1 byte) 00000011

    2 has the bit pattern 00000010.

    When you do a logical and of 3 and...

  • RE: Indexes on table with more than 20 columns

    What % of the table is likely to have IsActive 1 and IsTemplate 0?

    As a first suggestion, consider this:

    CREATE INDEX idx_Documents_Search1 ON Documents

    (DocumentTypeId , IsActive, IsTemplate, Title)

    Title is in the...

  • RE: Blocking or Block By

    In general neither. It's not a really good idea to go around killing connections unless you know what the consequences will be.

    Better idea is to fix code so that long...

  • RE: Primary Data file currpted

    If you don't have any backup (why not?) then you are very likely out of luck.

    You can try the following.

    Create a new database with the same number of that the...

  • RE: Indexes on table with more than 20 columns

    Hmmm. It's not an easy indexing scenario.

    Are there any columns or set of columns that are always or most of the time specified in the queries?

  • RE: Oracle SSIS Package

    Please don't cross post. It just wastes people's time and fragments replies.

    No replies to this thread please. Direct replies to:

    http://www.sqlservercentral.com/Forums/Topic516329-148-1.aspx

  • RE: Oracle SSIS package

    Please don't cross post. It just wastes people's time and fragments replies.

    No replies to this thread please. Direct replies to:

    http://www.sqlservercentral.com/Forums/Topic516329-148-1.aspx

  • RE: Optimizing an index for select count(distinct)

    Can you post the execution plan in its xml format please? (saved as a .sqlplan file zipped and attached to a post)

    What indexes do you currently have on the table?

Viewing 15 posts - 46,231 through 46,245 (of 49,571 total)