Forum Replies Created

Viewing 15 posts - 481 through 495 (of 533 total)

  • RE: Managing Permissions accessing Data

    Generally your application will use one particular account (either Windows or SQL) that has the permissions on SQL Server that you need it to have. That's not an account...

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: PATINDEX one set against another?

    Please provide enough detail for people to be able to help you without guessing what you're talking about. Start with table definitions and go from there.

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Managing Permissions accessing Data

    Create an account for SQL access for your Windows application. Use that account in your application. Don't give any information about that account to your users.

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: CROSS Apply or Outer Apply? DDL attached

    Can you give an example of the output you want versus an example of the output you're getting? (It's not possible for me to run the code that you've...

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: How would you build a customer portal?

    Obviously a lot of choices are made on the basis of personal experience and strengths.

    That being said, personally I would use IIS and set up an https site and build...

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Howt to identify spaces in coulmn

    This would return the position of the first space found, 0 if no spaces are found:

    DECLARE @vc_test VARCHAR(255) = 'dlfkal djksfak ldfj'

    SELECT CHARINDEX(' ', @vc_test)

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: How would you build a customer portal?

    SSRS is a ton easier to manage if all your users are already being authenticated by Windows. If they are logging onto your corporate network already, I'm fairly sure...

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: SQL Union parameter question

    You mean like this?

    select [person],

    case [type]

    when 'e' then 'e'

    else null end as type,

    [number]

    from table1 where [type] in ('a', 'b', 'c', 'd', 'e')

    order by [person],[type]

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Want to check 6 columns, if NULL return 0 if NOT NULL return 1

    declare @TestCols table(

    RecNum int not null,

    Col1 decimal(10,5) null,

    Col2 decimal(10,5) null,

    Col3 decimal(10,5) null,

    Col4 decimal(10,5) null,

    ...

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Max Date Horrors

    This may or may not be what you're looking for. (As has been pointed out, you've given very little information.)

    SELECT A1.PASTDEALDATE,

    A2.Account,

    A1.AccountId,

    A1.PROCEEDS,

    A1.TOTALCOST,

    A1.MKTDISC,

    A1.UWFEE,

    A1.WARRANTCOST,

    A1.IMPACTCOST,...

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Want to check 6 columns, if NULL return 0 if NOT NULL return 1

    And actually, using the +1 to correct the flaw GSquared pointed out negates the need to use the CEILING function since any non-null is going to be a number >=...

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Want to check 6 columns, if NULL return 0 if NOT NULL return 1

    GSquared (4/12/2010)


    bteraberry (4/12/2010)


    If you have an aversion for case statements you could also do

    select isnull(CAST(ceiling(coalesce(Col1,Col2,Col3,Col4,Col5,Col6)) as bit), 0)

    😛

    I'm pretty sure, if one of the values is 0, that will return...

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: Want to check 6 columns, if NULL return 0 if NOT NULL return 1

    If you have an aversion for case statements you could also do

    select isnull(CAST(ceiling(coalesce(Col1,Col2,Col3,Col4,Col5,Col6)) as bit), 0)

    😛

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: How to calculate ranks or position?

    Take a look at ROW_NUMBER in BoL. If you wanted to use a table variable or temp table you could do the same thing with an identity column but...

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • RE: How to build 7 day slots based on start and end dates?

    Are you wanting to delete any user record if that user has another record within 7 actual days or are you only wanting to do this if it's in the...

    └> bt



    Forum Etiquette: How to post data/code on a forum to get the best help[/url]

Viewing 15 posts - 481 through 495 (of 533 total)