Forum Replies Created

Viewing 15 posts - 2,746 through 2,760 (of 2,840 total)

  • RE: help-how to generate date backward from end to start

    I dont know if this is what you have in mind but You could use dateadd function to do that.

    Create table #tbDate (id int identity, dt datetime)

    declare @effectiveDate datetime

    set @effectivedate...

    -Roy

  • RE: Execute permission was denied

    Do not update any System tables. What you can do is drop the user and the login and recreate them again and add it to the Role that is there.

    -Roy

  • RE: Login Auditing

    We have a profiler trace running 24/7. But we only store information of SP's that take more than 250 Millisec. We do not see any perfomance issue on our DB...

    -Roy

  • RE: Help with SQL View

    Thanks Adam. I still am not good at answering questions yet I guess. I am not good at explaining..:-)

    -Roy

  • RE: Help! I'm a DBA! How did that happen?

    You can always feel free to ask questions here with your problem and you will get atleast 2 to 3 different ways to solve it... There are lots of real...

    -Roy

  • RE: Execute permission was denied

    When you created the user, did you create it with the their SID?

    If not try recreating the logins with the SID. Or drop the user from the DB and the...

    -Roy

  • RE: Using 'OR' drastically increases execution time of query?

    John Higginbotham (1/16/2008)


    I get the same execution time when I specify the parameter as a specific value as follows

    OR

    @BusinessObjectInstanceId = 2817

    Like someone said above, You are doing a coinditional search...

    -Roy

  • RE: Help with SQL View

    You could try using DateAdd and give a between condition. Dateadd(dd,30,ColumnName) and Dateadd(dd,-30,columnName)

    -Roy

  • RE: Using 'OR' drastically increases execution time of query?

    You can add an index on multipole columns. Username, BusinessObjectTypeFullName and Timestamp.

    Also try to rewrite the where clause with CASE Statement. It will look more clean.

    Where USERNAME = CASE when...

    -Roy

  • RE: Using 'OR' drastically increases execution time of query?

    Indexing would defiently help you query speed since you are not querying based on the primary Key.

    Be carefull about adding too many indexes since indexes can slow down DML...

    -Roy

  • RE: Desperate Help needed

    Check on the Services under what account The SQL Server is being Run. If it is a domain account try with it. Also try to alter the DB and let...

    -Roy

  • RE: Desperate Help needed

    What user did you use to get access to the DB and see user tables? Is Windows Authentication blocked on the DB? If not, try logging on to the DB...

    -Roy

  • RE: Stored Procedure Parameters Majorly Slowing Execution Down!

    Tagging along with the two of them have already stated, you could also use PLAN Hints

    OPTION (OPTIMIZE FOR (@parameter = ))

    -Roy

  • RE: Dealing with Comma's in a Comma delimited file?

    I dont know if this will help but, Cant you use replace? Something like this?

    declare @t char(20)

    set @t = 'testing, for comma'

    Select replace(@t,',','","')

    -Roy

  • RE: General SQL Error

    SQL 2005 does not support JOINS that uses *=. If you still want it to work, you will have to put SQL in either 7 or 8 compatability Mode. But...

    -Roy

Viewing 15 posts - 2,746 through 2,760 (of 2,840 total)