Forum Replies Created

Viewing 15 posts - 5,716 through 5,730 (of 7,636 total)

  • RE: delete repeated rows

    Mine should work on SQL 2000. Did you try it?

  • RE: Find all objects in Server Owned by a Login

    Yep, they are that way on my SQL 2008 box also.

    Well here is a corrected and tested version that should work for all of the databases, including the Reporting DBs:

    ALTER...

  • RE: approle

    Try editing the Connection properties and on the Definition tab, edit the Command Text and put the following in front of the text that is already there:

    EXEC sp_setapprole 'test',{encrypt N...

  • RE: Find all objects in Server Owned by a Login

    Hmm, thats a new one on me. Of course I hardly ever get to work with DB's with different collations.

    Try this altered version and let me know...

  • RE: Run as Proxy in SQL Agent Jobs

    What edition of SQL Server do you have?

    And what kind of step is it? (CmdExec, T-SQL, etc.)

  • RE: approle

    As far as I know.

  • RE: Excel Result Vs DB Result

    Heh, I made the same mistakes. Here is a correct version:

    Select MID,

    (((1.0+Dt1/100.0)

    *(1.0+Dt2/100.0)

    *(1.0+Dt3/100.0)

    *(1.0+Dt4/100.0)

    *(1.0+Dt5/100.0)

    *(1.0+Dt6/100.0)

    *(1.0+Dt7/100.0)

    *(1.0+Dt8/100.0)

    *(1.0+Dt9/100.0)

    *(1.0+Dt10/100.0)

    *(1.0+Dt11/100.0)

    *(1.0+Dt12/100.0))-1.0) * 100.0

    from Prod_Issue

    This gives the same results as the Excel.

  • RE: Excel Result Vs DB Result

    Karthik: Product multiplies, Sum adds. What you want is something like this:

    Select MID,

    ( 1.0+Dt1/100.0-1.0

    + 1.0+Dt2/100.0-1.0

    + 1.0+Dt3/100.0-1.0

    + 1.0+Dt4/100.0-1.0

    + 1.0+Dt5/100.0-1.0

    + 1.0+Dt6/100.0-1.0

    + 1.0+Dt7/100.0-1.0

    + 1.0+Dt8/100.0-1.0

    + 1.0+Dt9/100.0-1.0

    + 1.0+Dt10/100.0-1.0

    + 1.0+Dt11/100.0-1.0

    + 1.0+Dt12/100.0-1.0) * 100.0

    from...

  • RE: delete repeated rows

    Simple way:

    Delete From YourTable T

    Where EXISTS( Select * from YourTable T2

    Where T.REFNOCOLUMN = T2.REFNOCOLUMN

    ...

  • RE: approle

    As I recall in .Net, you need to switch from SQLClient.net to ODBCClient. (not sure?)

  • RE: Greek Characters on SQL Server

    Yes, it takes more space. But Unicode/NChar is the solution for this and this is exactly the reason that it exists.

    I don't know about the "N" before the quote,...

  • RE: approle

    psangeetha (8/28/2008)


    Are you using this method currently without encryption??

    I have seen it both ways, though I myself may not be actually "using" it. Most of the time...

  • RE: approle

    psangeetha (8/28/2008)


    Does the below command store the password in encrypted format or plain text??

    [codee]EXEC sp_setapprole 'test', N'test';[/code]

    Plain text. By the way the ODBC Encrypt does not store the password,...

  • RE: approle

    Actually, I do notice one difference between your code and the BOL Example. This line:

    psangeetha (8/28/2008)


    EXEC sp_setapprole 'test',{encrypt N'test'}, odbc

    Is actually like this in the example:

    EXEC sp_setapprole 'test',{encrypt N...

  • RE: approle

    Sadly, I have never had the opportunity to implement the ODBC Encryption feature, so I cannot help you much. Hopefully, someone else here can. If you do figure...

Viewing 15 posts - 5,716 through 5,730 (of 7,636 total)