Forum Replies Created

Viewing 15 posts - 976 through 990 (of 6,486 total)

  • RE: How to correctly sum up the rounded up percentage?

    Rounding in itself is a business decision. As in- it's usually a design constraint imposed by the byusiness on how it SHOULD work. No matter how you look...

  • RE: Not exactly code review or source code control

    SQLKnowItAll (5/23/2012)


    drew.georgopulos (5/23/2012)


    not so good...there are business analysts interposed between the report requestor and developers, so developers rarely speak to the end user.

    My feeling is that GSquared's suggestion hits the...

  • RE: Dinamic query syntax error

    Put a "use" clause in the dynamic statement.

    Something like:

    Declare @SQLExec varchar(1000),

    @BackName varchar(8),

    @dbname varchar(100)

    Set @BackName = replace(convert(varchar,getdate(),101),'/','')

    Set @dbname = 'Database2'

    -- select @BackName

    Set @SQLExec= 'use ['+@dbname+'];'

    Set @SQLExec = @SQLExec+'if exists (select...

  • RE: Dinamic query syntax error

    Take the Exec out and print the SQL statement instead. You will see that the string is missing a bunch of apostrophes around items.

    This should be about right.

    Declare @SQLExec...

  • RE: How integrate existing database to TFS from SSMS?

    Gazareth (5/21/2012)


    Yes, the Team Foundation Server MSSCCI Provider mentioned previously allows you to do this.

    (Open an existing DB solution from TFS in SSMS).

    There's no way to enforce changes to the...

  • RE: Open Event Viewer from SQL Server

    khushbu (5/21/2012)


    Working in restricted environment is pain.. and not having access to windows server is double pain..

    Sometimes, I need to check eventviewer for any errors etc.. and to check this...

  • RE: Passing parameter Dynamically to Open Query inside Function

    Jeff Moden (5/18/2012)


    Matt Miller (#4) (5/18/2012)


    As while you are correct that the compiler currenly isn't smart enough to detect the stored proc call, you are going against the intended use....

  • RE: SomersD and Statistical analyses

    Michael -

    I think the issue is "not enough info".

    There are a fair amount of folks on here that enjoy a nice challenge, but implementing a resonably complex...

  • RE: To TOP or not to TOP?

    The 2012 functionality within the += operator IS in fact a concatenator (if you use it with string data types). As long as you don't particularly case in which...

  • RE: Passing parameter Dynamically to Open Query inside Function

    The list of "allowed constructs" is out of Books Online, and is very specific about what can and cannot be called within a function. It's intended to be an...

  • RE: Passing parameter Dynamically to Open Query inside Function

    preetham gowda (5/17/2012)


    Try it

    Create Function dbo.Fun_Proc_Test1(@id1 int) Returns varchar(30)

    As

    Begin

    Declare @res varchar(30)

    --Set @res = (Select * From OpenQuery(ABHI, N'Declare @result varchar(30) Exec Abhi.Test.dbo.convert2Lower @id = ' + Cast(@id1 As Varchar(5)) +...

  • RE: Condition statements

    OP = Original poster. in this case - you:-)

  • RE: Case in Where Clause? Alternatives pls.

    I'd look at using a work table with a good index on it to track the combinations. The best performance would likely be if you can set up a...

  • RE: To TOP or not to TOP?

    And thank you gemisigo for allowing us to trample over your initial topic. Didn't mean to hijack it.

    Thanks Howard for the input.

  • RE: To TOP or not to TOP?

    I'll bite too...Although expression can be a column, it's defined as:

    Is a combination of symbols and operators that the SQL Server Database Engine evaluates to obtain a single data value.

    And...

Viewing 15 posts - 976 through 990 (of 6,486 total)