Forum Replies Created

Viewing 15 posts - 346 through 360 (of 13,429 total)

  • RE: Help with SQL Query

    this does what you are asking, I guess:
    this assumes your a ticket is always opened and always closed, and forces an order via the Row_number so i can join...

  • RE: Presentation Software Recommendations

    no, your post is relevant, no worries.
    Every year, I help with the same style of project I mentioned above, and I ask around before I program something.
    I've already...

  • RE: Why doesn't this simple concatenation work?

    you are missing the SET statement, it looks like to me.

    Could you try this format instead?
    DECLARE @s_FilePath nvarchar(255) = '' ;
    SET @s_FilePath = 'what '...

  • RE: Help with SQL Query

    Phils logic looks like it will still work.
    I converted your paste to consumable data

    ;WITH MyCTE([TicketHistoryID],[TicketID],[DateTime],[Name],[TicketActionID],[ID1],[ID2],[TicketStateID],[TicketBoxID],[OwnerID],[PriorityID],[TicketCategoryID],[Myrow])
    AS
    (
    SELECT CONVERT(int,'57440055'),CONVERT(int,'6702938'),CONVERT(datetime,'7/14/17 1:34 PM'),CONVERT(VARCHAR(30),NULL),CONVERT(int,'1'),CONVERT(int,'284'),CONVERT(int,'0'),CONVERT(int,'2'),CONVERT(int,'327'),CONVERT(int,'0'),CONVERT(int,'1'),CONVERT(int,'1'),CONVERT(int,'1') UNION ALL
    SELECT '57440833','6702938','7/14/17...

  • RE: sys.dm_db_partition_stats.row_count no longer accurate?

    OK answering my own question, my assumption was wrong. the count is an approximation. it is not 100% accurate.
    https://docs.microsoft.com/en-us/sql/relational-databases/system-dynamic-management-views/sys-dm-db-partition-stats-transact-sql

    July 31, 2017 at 10:05 am

    #1953419

  • RE: Timeouts Popping Up for Production Database

    with no known changes having occurred, i would update statistics, first, other than burning some CPU cycles, it might fix things that have out of date stats, which could be...

  • RE: need list of logins at the server level

    role permissions are cumulative, so if you have anNT user in two roles, one with readwrite, and one with read only, the effective permissions are the sum....readwrite.
    only an explicit...

  • RE: Sql Logins grouping

    yes of course; what you want is to create a role. assign specific permissions to the role,and then add the users to the role, regardless of whether they are SQL...

  • RE: need list of logins at the server level

    if you've added any windows_groups, it's still possible that users have access, and have database access, because they login thru group membership,but don't have an explicit login.

    here's a...

  • RE: List of all dtsx files used in [Integration Services Catalog] - I need help with the SELECT statement

    Sue_H identified the other part of your issue(permissions to fiddle with the registry) : you must run Powershell as Administrator...right click...run as Administrator.

  • RE: List of all dtsx files used in [Integration Services Catalog] - I need help with the SELECT statement

    because you have not used powershell before, you have to do what the error says and set the execution policy.

    run this command, and then re-run your script.

  • RE: What is the purpose of dropping temp db?

    NineIron - Wednesday, July 26, 2017 6:43 AM

    I should have mentioned this but, this code begins the procedure. So, there are no...

  • RE: What is the purpose of dropping temp db?

    that script will drop all temp tables your session actually created;but not global temp tables that are in scope.
    it would be handy for testing the guts of a stored...

  • RE: List of all dtsx files used in [Integration Services Catalog] - I need help with the SELECT statement

    This script from Microsoft Script Center worked flawlessly for me:
    https://gallery.technet.microsoft.com/scriptcenter/ImportExport-projects-bca5f29f

    I had to change the connection string from localhost to my real servername. I could potentially change the...

  • RE: Error:SSIS Error Code DTS_E_OLEDBERROR, Error: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED

    he's casting to INT2, which is IBM's as400/DB2/Universe? smallint equivalent i think.
    the logic Phil identified is still the same though, cast to bigint INT8/ and see what is...

  • Viewing 15 posts - 346 through 360 (of 13,429 total)