Forum Replies Created

Viewing 15 posts - 4,741 through 4,755 (of 5,111 total)

  • RE: Automate stored credentials updates

    Lowell (12/6/2016)


    the obvious fix is to set up a specific account for the SSRS account that does not password expire.

    What we do, that account has very limited permissions on the...

  • RE: Unable to create index

    What are you doing to get the above pictures. It doesn't look like you have any ordering applied (considering your number go ...336, 337, 338, 1, 2... in your image).

    I...

  • RE: tempdb errors

    kevaburg (12/6/2016)


    Edit: Now I have read the post above you could change the Insert to read:

    insert into tbl_errorlog EXEC sp_readerrorlog 0, 1, 'TempDB';

    Good idea Thom!

    If you're going to way,...

  • RE: tempdb errors

    Maybe?

    EXEC sp_readerrorlog 0, 1, 'Tempdb'

    You'll need to change the value of the first parameter to go back through your archive files.

  • RE: Deny DML on a table

    Adi Cohn-120898 (12/6/2016)


    Thom A (12/6/2016)


    Further Question, why ARE they a member of the db_datareader and db_datawriter roles when they are a member of db_owner role? These roles serve no purpose,...

  • RE: Deny DML on a table

    Further Question, why ARE they a member of the db_datareader and db_datawriter roles when they are a member of db_owner role? These roles serve no purpose, as db_owner grants all...

  • RE: Deny DML on a table

    krishnaroopa (12/6/2016)


    The user has membership in db_datareader, db_datawriter and db_owner roles

    There's your problem.

    db_owner's can do what every they want, whenever they want, in that database.

  • RE: Defaul Date Parameters When it's the 1st of the Month

    Personally I use the same logic in SSRS that I use in SQL, which is:

    DateFrom

    =DATEADD("M", DATEDIFF("M", "01/01/2000", DATEADD("d", -1,TODAY())), "01/01/2000")

    DateTo

    =DATEADD("d", -1,TODAY())

    Today, that would return 01-Dec-2016 and 04-Dec-2016 respectively. Running on...

  • RE: Database/Schema Permissions

    RonMexico (12/5/2016)


    Sue - I must not be setting it up correctly when trying to follow your advice. What permissions do I grant at the database level that won't apply...

  • RE: DTExec with variable

    Thats not what I was saying, you need to escape the special charaters:

    exec xp_cmdshell 'dtexec.exe /F "D:\DBUpdates\Mypackage.dtsx" /SET "\package.Variables[User::JobLoginPassword].Value";"8\:\;xLuZc"'

  • RE: How to compare text in sql server

    Field type text is deprecated, I would definitely use VARCHAR or NVARCHAR. ntext, text, and image (Transact-SQL)

    Are you going to be comparing any other fields as well? As you're on...

  • RE: DTExec with variable

    The escape character for SSIS Expressions is a backslash (\). So, a variable of value; abc"123; would be: ="abc\"123\;".

  • RE: Question on pat index

    Using your example:

    USE DevTestDB;

    GO

    CREATE TABLE #Emp (ID INT IDENTITY(1,1),

    TNum VARCHAR(12),

    ...

  • RE: Question on pat index

    As Steve said, we don't have a lot to work with here.

    The field your testing is clearly a INTEGER, so I'm wondering why you're wrapping it with single quotations....

  • RE: AAG and SQL agent job

    vkundar (12/2/2016)


    I need a code which will check the AAG name and its role , if it is primary then all the jobs status will enabled else disabled. We have...

Viewing 15 posts - 4,741 through 4,755 (of 5,111 total)