Microsoft Transaction Server

I'd like information regarding the implementation of Microsoft
Transaction Server and Forte on the same server. Also, any info about
problems encountered would be appreciated.
Thanks
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

For a general description see here:
http://searchwinit.techtarget.com/sDefinition/0,,sid1_gci213747,00.html
And Oracle's part is:
ORACLE SERVICE FOR MICROSOFT TRANSACTION SERVER (ORAMTS)
The following information applies to the Oracle Service for Microsoft
Transaction Server (ORAMTS) that interfaces with Oracle through its native
API, Oracle Call Interface (OCI), and also interfaces with the Microsoft
Transaction Server (MTS). ORAMTS is a COM-based transaction processing
service used to manage transactional COM components registered under
Microsoft Transaction Server (MTS) interacting with the Oracle database.
ORAMTS works with any of the following programmatic interfaces:
1. Oracle ODBC Driver
2. Oracle Provider for OLE DB
3. Oracle Objects for OLE (OO4O)
4. Oracle Data Provider for .NET (ODP.NET)
Werner

Similar Messages

  • Error while Installing Oracle Services for Microsoft Transaction Server

    I downloaded "Oracle9i Database Release 2 Enterprise/Standard/Personal Edition for Windows NT/2000/XP" and installed the personal edition. It did not install successfully and gave this error message:
    Error while Installing Oracle Services for Microsoft Transaction Server
    The specified key was not found while trying to GetValue
    - stop installation of all products.
    - stop installation of this component only.
    The installation of Oracle 9i Database was unsuccessful
    The Integration tools and client installed just fine from the same download. Why didn't the database install successfully? All the other components seemed to install just fine and the database appeared to be created - but I could not open it and there was not start menu option for DBA Studio.
    I am running Windows 2000 professional with Service Pack 3 on a 2 GHz Pentium4 machine with 512MB Rambus RAM, 32bit color graphics ATI All-in-Wonder card, about 40GB of disk space, a local peer-to-peer network via cat5 cable to another Win2k P3 machine, and Creative Soundblaster Audigy card. Do I need to adjust any network settings? Would it help or hinder if I installed MS IIS? WinNT has a Microsoft Transaction Server (MTS) but Win2k has COM+ instead; does that make a difference in terms of the installer looking for MTS? Do I need to configure COM+ in some special way / change settings?

    HI Salman,
    I am doing the following.
    1. I am installing Oracle 10.2.01 Database(Not Client) on my windows Xp laptop. While installation i Choose the custom option and Check the Oracle Windows Interface. In that i check the "Install Oracle Services for Microsoft Transaction server" checkbox. The installation goes on fine till 99% and when it tries to install the
    Oracle Services for Microsoft Transaction server it gives an error saying that "Microsoft Transaction server" was not found on the system.
    I had previously installed the same on my laptop and it was working fine. but after uninstallation when i try to re install i get this problem.
    If i go to the services.msc option in windows i still see the OracleMTSRecoveryService option even when i have uninstalled oracle. But when i try to start the services i get the following error
    Could Not start the OracleMTSRecoveryService on the local computer.
    Error 3: The system cannot find the file specified.
    Any help on how to resolve this issue will be highly appreciated

  • Understanding on Oracle services for Microsoft Transaction Server frm dba point of view

    Hi ALL,
    i read : -> https://docs.oracle.com/database/121/NTMTS/recovery.htm#NTMTS003
    Need help to further confirm my understanding on what i read.
    I am coming from the DBA angle... .
    the functionality of the Microsoft Transaction server is integrated within the operating system as a COM+ server and as a .NET server,  "
    can i say these is the application servers ?
    and the Microsoft Transaction distributed co -ordinator components is part of it.
    Question, i don't install the Oracle Recovery Services on the above system right?
    Question 2, as a dba, my only concern is to make sure the Oracle Services for Microsoft Transaction Server is installed. Is this correct ?
    plus making sure to create the OraMTS administrator to run the recovery job to check for in-doubt transaction.
    Question 3:
    is this Oracle services for Microsoft Transaction Server used only when an application useses multiple databases in an env?
    Can i say that when there is no user MTSSYS in my database, Oracle services for MTS is not used?
    The reason why i ask is i am upgrading/ migrating my database and this database don't work with more then 1 database or the application does not work with more then 1 databases.
    I ask the apps team all they say is that they are also not too sure. Thus need help/ advice.

    Daniel,
    In pre-8.1.7.4.0 beta implementations, your application server e.g. IIS or MTX.EXE hosts MTS transactional components. When such components acquire OLEDB or ODBC connections to Oracle and external service setup for that database i.e. OracleMTSService<id> joins the MTS transaction on behalf of the Oracle database which quite often runs on a non-Windows platform e.g. Solaris. We restrict each database to have one and only such service. This brings in scalability and availability issues. In 8.1.7.4.0 we have embedded the transaction join and commit logic in the clientside dll. There is no OracleMTSService<id> for a given database. The only service needed is a recovery service one per Windows machine on which Oracle Svcs For MTS is installed. This service is automatically created on installation of the product and doesn't connect to the databases. Instead the involved databases connect to the service via HTTP to resolve any MTS-related transactions that are in-doubt.

  • Microsoft Transaction Server and Oracle 7.3.4/8.0.5

    Hello all,
    I have been working with VB COM objects in MTS and Oracle 7.3.4/8.0.5 for most of this year (2000), and I have things working with relative smoothness. However, I am having severe performance issues.
    I have used the white paper Using Oracle with Microsoft Transaction Server and COM+ (http://support.microsoft.com/support/complus/mtsandoracle.asp), which got things rolling, but there is little/no information on how to gain performance. I am using the same DLLs against SQL Server databases, and the performance is very noticeably better.
    Has anyone done any performance tuning in this type of scenario? Any tips for me?
    null

    Dyna, I have yet to hear of someone that has been able to successfully replicate data from Oracle 8i to 7.3.4 using Oracle Replication Services. I would sugest that you take a look at third-party solutions like DataMirror Transformation Server to help you out with this. More information is available on our web-site (www.datamirror.com) if you wish to investigate this further.
    John Vandermay,
    DataMirror Corporation.

  • How can i config Oracle Services for Microsoft Transaction Server in  9.2

    how can i config Oracle Services for Microsoft Transaction Server in 9.2

    There's nothing to configure on the client side. On the database side you just need to run a script once to setup an ORAMTS admin account and some other infrastructure.

  • Error 04031 while using microsoft transaction server.........

    hi,
    im using microsoft transaction server & oracle server (version7) in my project. im getting one error ie.,
    [Microsoft][ODBC driver for Oracle][Oracle]ORA-04031: unable to allocate 250016 bytes of shared memory ("unknown object","session heap","bind var buf")
    if i remove my component from MTS, this error does't come.....
    i have enough memory in my server. can any one tell what is the problem.......
    thanks
    siv
    null

    hi philip,
    if i run out of transaction context, my MTS object is working properly... But at the same time , for each database communication, MTS is creating one '.trc' file in system32 directory which contains the text as
    135310.388:459.459.1:
    ORACLE XA: Version 7.3.4.0.0. RM name = 'Oracle_XA'.
    135310.388:459.459.1:
    xaoend: XA_RBROLLBACK; upisdt rtn ORA-23.
    135310.388:459.459.1:
    ORA-00023: session references process's private memory; cannot detach session
    do u have any idea what is this..........
    thanks
    snethil

  • How to Uninstall oracle services for microsoft transaction server 64 bit

    Dear All ,
    I would like to know  how to Uninstall only oracle services for microsoft transaction server from 11G installtion. I was trying to use "deinstall.bat" but which removes everything from the system. When i use "Oracle Universal Installer" but it doesn't let me do it. I am using Oracle 11G with patch 8 on Windows server 2008.
    Any replies are highly appreciated.
    Thanks

    HI Salman,
    I am doing the following.
    1. I am installing Oracle 10.2.01 Database(Not Client) on my windows Xp laptop. While installation i Choose the custom option and Check the Oracle Windows Interface. In that i check the "Install Oracle Services for Microsoft Transaction server" checkbox. The installation goes on fine till 99% and when it tries to install the
    Oracle Services for Microsoft Transaction server it gives an error saying that "Microsoft Transaction server" was not found on the system.
    I had previously installed the same on my laptop and it was working fine. but after uninstallation when i try to re install i get this problem.
    If i go to the services.msc option in windows i still see the OracleMTSRecoveryService option even when i have uninstalled oracle. But when i try to start the services i get the following error
    Could Not start the OracleMTSRecoveryService on the local computer.
    Error 3: The system cannot find the file specified.
    Any help on how to resolve this issue will be highly appreciated

  • Help me Fcan my Oracle8.16 supports MTS(microsoft transaction server ) ?

    I want to connect to oracle8.16 server in a MTS dll , but when I run this mts dll, an error occurs that ask for a file named "ORAMTS.dll" , so I have to search for it in my computer where I have installed ORACLE8.16, but I find none.
    Can you tell me where I might get this file ?? Thank you very much !

    What API are you using in your VB app (ODBC, OLEDB, ADO, RDO, DAO, etc)? You probably want to address your question to the ODBC or OLE DB forum, depending on your answer to this question.
    Justin Cave
    ODBC Development

  • Product: Microsoft SQL Server 2012 Transact-SQL Compiler Service -- Error 1335

    Hello,
    I am getting an error while using windows update or manually downloading and running
    SQLServer2012-KB2793634-x64.exe
    Product: Microsoft SQL Server 2012 Transact-SQL Compiler Service  -- Error 1335. The cabinet file 'Redist.cab' required for this installation is corrupt and cannot be used. This could indicate a network error, an error reading from installation media,
    or a problem with this package.
    What can be done?
    Thanks
    Bye

    Hello,
    I am getting an error while using windows update or manually downloading and runningT
    SQLServer2012-KB2793634-x64.exe
    Product: Microsoft SQL Server 2012 Transact-SQL Compiler Service  -- Error 1335. The cabinet file 'Redist.cab' required for this installation is corrupt and cannot be used. This could indicate a network error, an error reading from installation media,
    or a problem with this package.
    What can be done?
    Thanks
    Bye
    This KB article was issued as fix for known Issue as per below link.
    http://support.microsoft.com/kb/2793634
    Now I assume you are getting this error because downloaded file seems corrupt to me.Can you download again and copy it to local disk and start running  from there.
    http://www.microsoft.com/en-in/download/details.aspx?id=36215
    Also make sure your installer is not corrupt.If you find it corrupt please download it from below link and install after that run the setup again
    http://support.microsoft.com/kb/942288
    Hope this helps
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • [[DataDirect][ODBC SQL Server Wire Protocol driver][Microsoft SQL Server]Column name or number of supplied values does not match table definition.]

    Hii ..
    need help on this ..
    This what I am doing ..
    I am using a DATAEXPORT function to export level0 data from my essbase 11.1.2.2 to Microsoft SQL 2008 tables.
    So what I did first I exported the level0 data to a flat file using DATAEXPORT and the created the SQL columns by the same  in that order only in my SQL table.
    When I run it fails with this error:
    ODBC Layer Error: [21S01] ==> [[DataDirect][ODBC SQL Server Wire Protocol driver][Microsoft SQL Server]Column name or number of supplied values does not match table definition.]
    [Tue Jul 23 18:26:07 2013]Local/dataexp/dataexp/admin@Native Directory/1209813312/Info(1021014)
    ODBC Layer Error: Native Error code [213]
    [Tue Jul 23 18:26:07 2013]Local/dataexp/dataexp/admin@Native Directory/1209813312/Error(1012085)
    Unable to export data to SQL table [dataexp]. Check the Essbase server log and the system console to determine the cause of the problem.
    [Tue Jul 23 18:26:07 2013]Local/dataexp/dataexp/admin@Native Directory/1209813312/Info(1021002)
    SQL Connection is Freed
    [Tue Jul 23 18:26:07 2013]Local/dataexp/dataexp/admin@Native Directory/1209813312/Warning(1080014)
    Transaction [ 0x1c50001( 0x51ee7d66.0x80342 ) ] aborted due to status [1012085].
    [Tue Jul 23 18:26:07 2013]Local/dataexp/dataexp/admin@Native Directory/1209813312/Info(1012579)
    Total Calc Elapsed Time for [test.csc] : [1.44] seconds
    =============================================================
    I did a simple test on my Sample.basic application then ..
    loaded the calc data to it and then used the below script to export to a flat file
    //ESS_LOCALE English_UnitedStates.Latin1@Binary
    SET DATAEXPORTOPTIONS
                    DataExportLevel "Level0";
                    DataExportOverwriteFile ON;
                    DataExportColFormat OFF;
                    DataExportDimHeader OFF;
    FIX(
                "Jan",
                "Sales",
                "Actual"
    /*DATAEXPORT "File" "," "/home/hypadmin/samtest.txt";*/
    DATAEXPORT "DSN" "Abhitest" "sample" "sa" "welcome1";
    ENDFIX
    out put as below:
    "Sales"
    "100-30","California"
    "Jan","Actual",145
    Now In sql I created only 3 columns with name Jan/Sales/Actual and when I run this script again with comments removed .. I get the same error as what I have got in my first test case with other application ..
    but when I create the columns with same name as what its in export
    Sales/100-30/Califirnia/Jan/Actual
    It created the new rows successfully ..
    So with this I think the error which I am getting with my other application might be because of the same column issue  .. but then I have created all the columns by looking at the export file only as I did in sample ..
    Any idea would be helpful ..
    Thanks
    Abhishek
    I

    First make sure you add
    DataExportRelationalFile ON;
    to your set commands it is missing
    I alwats like to also add
    DataExportColHeader dimensionName;
    so I am sure what dimension is getting put into the columns.
    Then count the number of dimensions in your outline (exclude attribute dimensions). You need at least that many columns in your table  -1 + the number of  members you will be returning as columns in the export
    Taking your example Sample basic has 5 dimensions
    Measures
    Years
    Scenario
    Product
    Market
    Since you did not specify a dataexportcolheader it took the dense dimension Scenario as the columns. Your fix statement is limiting that to one member. Doing the math
    5 -1 + 1 = 5 columns in your table which is what you found works.  Suppose you fixed on bothe Actual and budget in scenario then you would need 6 columns 5 -1 +2

  • Microsoft SQL Server Metric Collection Errors

    Hi
    I've installed the Microsoft SQL Server plugin.
    I've added a SQL server for monitoring.
    It only monitors / picks up Cache Hit Ratio.
    Then i'm getting the following Metric Collection Errors:
    Database Oct 31, 2006 2:35:45 PM Collection Failure Missing Properties : [pro...
    [b]SQL Server Process Oct 31, 2006 2:35:45 PM Collection Failure Missing Properties : [pro...
    [b]Processor Oct 31, 2006 2:35:45 PM Collection Failure /u/oracle10/OracleHomes/a...
    Error Log Entry Oct 31, 2006 2:31:32 PM Collection Failure Missing Properties : [pro...
    [b]MSSQL DatabaseFile Oct 31, 2006 2:31:32 PM Collection Failure Missing Properties : [pro...
    [b]SQL Server Role Oct 31, 2006 2:31:32 PM Collection Failure Missing Properties : [pro...
    [b]MSSQL Transaction Log Oct 31, 2006 2:31:32 PM Collection Failure Missing Properties : [pro...
    [b]Database Parameter Oct 31, 2006 2:29:10 PM Collection Failure Missing Properties : [pro...
    User Oct 31, 2006 2:29:10 PM Collection Failure Missing Properties : [pro...
    [b]Integrated Security Setting Oct 31, 2006 2:29:10 PM Collection Failure Missing Properties : [pro...
    [b]MSSQL FileGroup Oct 31, 2006 2:27:10 PM Collection Failure Missing Properties : [pro...
    Login Oct 31, 2006 2:25:14 PM Collection Failure Missing Properties : [pro...
    [b]Registry Setting Oct 31, 2006 2:24:21 PM Collection Failure Missing Properties : [pro...
    [b]SQL Server Oct 31, 2006 2:24:21 PM Collection Failure Missing Properties : [pro...
    [b]Database Setting Oct 31, 2006 2:24:21 PM Collection Failure Missing Properties : [pro...
    Target  <servername>.local
    Type  Microsoft SQL Server
    Metric  Database
    Collection Timestamp  Oct 31, 2006 2:35:45 PM
    Error Type  Collection Failure
    Message  [b]Missing Properties : [provided_host_os]
    Thnx,
    Kenneth

    Not sure if you got the plug-in working. If not, read on...
    The error is due to failure in internal computation of the SQL Server Host related information.
    Ensure that
    1. All pre-requisites (specified in SQL Server plug-in Installation Guide) are satisfied
    2. Provided property values for discovery of the SQL Server target are correct
    - JDBC URL has correct port number
    - If you are using older version of SQL Server plug-in, the name of SQL Server
    instance that you provided is correct

  • The SELECT permission was denied on the object 'extended_properties', database 'mssqlsystemresource', schema 'sys'. (Microsoft SQL Server, Error: 229)

    I have created a user and given him the owner rights for the database.  Though I can LogIn as the user, I cannot access the databases.  I am having the error mesage:
    Failed to retrieve data for this request. (Microsoft.SqlServer.Management.Sdk.Sfc)
    For help, click:
    http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&LinkId=20476
    ADDITIONAL INFORMATION:
    An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
    The SELECT permission was denied on the object 'extended_properties', database 'mssqlsystemresource', schema 'sys'. (Microsoft SQL Server, Error: 229)
    For help, click:
    http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1600&EvtSrc=MSSQLServer&EvtID=229&LinkId=20476
    Sha_woop

    Since there are so many possibilities for what might be wrong.  Here's another possibility to look at.  I ran into something where I had set up my own roles on a database.  (For instance, "Administrator", "Manager", "DataEntry", "Customer",
    each with their own kinds of limitations)  The only ones who could use it were "Manager" role or above--because they were also set up as sysadmin because they were adding users to the database (and they were highly trusted).  Also, the users that
    were being added were Windows Domain users--using their domain credentials.  (Everyone with access to the database had to be on our domain, but not everyone on the domain had access to the database--and only a few of them had access to change it.)
    Anyway, this working system suddenly stopped working and I was getting error messages similar to the above.  What I ended up doing that solved it was to go through all the permissions for the "public" role in that database and add those permissions to
    all of the roles that I had created.  I know that everyone is supposed to be in the "public" role even though you can't add them (or rather, you can "add" them, but they won't "stay added").
    So, in "SQL Server Management Studio", I went into my application's database, in other words (my localized names are obscured within <> brackets): "<Computername> (SQL Server <version> - sa)"\Databases\<MyAppDB>\Security\Roles\Database
    Roles\public".  Right-click on "public" and select "Properties".  In the "Database Role Properties - public" dialog, select the "Securables" page.  Go through the list and for each element in the list, come up with an SQL "Grant" statement to
    grant exactly that permission to another role.  So, for instance, there is a scalar function "[dbo].[fn_diagramobjects]" on which the "public" role has "Execute" privilege.  So, I added the following line:
    EXEC ( 'GRANT EXECUTE ON [dbo].[fn_diagramobjects] TO [' + @RoleName + '];' )
    Once I had done this for all the elements in the "Securables" list, I wrapped that up in a while loop on a cursor selecting through all the roles in my roles table.  This explicitly granted all the permissions of the "public" role to my database roles. 
    At that point, all my users were working again (even after I removed their "sysadmin" access--done as a temporary measure while I figured out what happened.)
    I'm sure there's a better (more elegant) way to do this by doing some kind of a query on the database objects and selecting on the public role, but after about half and hour of investigating, I wasn't figuring it out, so I just did it the brute-force method. 
    In case it helps someone else, here's my code.
    CREATE PROCEDURE [dbo].[GrantAccess]
    AS
    DECLARE @AppRoleName AS sysname
    DECLARE AppRoleCursor CURSOR LOCAL SCROLL_LOCKS FOR
    SELECT AppRoleName FROM [dbo].[RoleList];
    OPEN AppRoleCursor
    FETCH NEXT FROM AppRoleCursor INTO @AppRoleName
    WHILE @@FETCH_STATUS = 0
    BEGIN
    EXEC ( 'GRANT EXECUTE ON [dbo].[fn_diagramobjects] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT EXECUTE ON [dbo].[sp_alterdiagram] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT EXECUTE ON [dbo].[sp_creatediagram] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT EXECUTE ON [dbo].[sp_dropdiagram] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT EXECUTE ON [dbo].[sp_helpdiagramdefinition] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT EXECUTE ON [dbo].[sp_helpdiagrams] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT EXECUTE ON [dbo].[sp_renamediagram] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[all_columns] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[all_objects] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[all_parameters] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[all_sql_modules] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[all_views] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[allocation_units] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[assemblies] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[assembly_files] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[assembly_modules] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[assembly_references] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[assembly_types] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[asymmetric_keys] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[certificates] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[change_tracking_tables] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[check_constraints] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[column_type_usages] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[column_xml_schema_collection_usages] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[columns] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[computed_columns] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[conversation_endpoints] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[conversation_groups] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[conversation_priorities] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[crypt_properties] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[data_spaces] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[database_audit_specification_details] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[database_audit_specifications] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[database_files] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[database_permissions] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[database_principal_aliases] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[database_principals] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[database_role_members] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[default_constraints] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[destination_data_spaces] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[event_notifications] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[events] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[extended_procedures] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[extended_properties] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[filegroups] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[foreign_key_columns] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[foreign_keys] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[fulltext_catalogs] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[fulltext_index_catalog_usages] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[fulltext_index_columns] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[fulltext_index_fragments] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[fulltext_indexes] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[fulltext_stoplists] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[fulltext_stopwords] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[function_order_columns] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[identity_columns] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[index_columns] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[indexes] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[internal_tables] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[key_constraints] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[key_encryptions] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[message_type_xml_schema_collection_usages] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[module_assembly_usages] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[numbered_procedure_parameters] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[numbered_procedures] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[objects] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[parameter_type_usages] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[parameter_xml_schema_collection_usages] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[parameters] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[partition_functions] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[partition_parameters] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[partition_range_values] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[partition_schemes] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[partitions] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[plan_guides] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[procedures] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[remote_service_bindings] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[routes] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[schemas] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[service_contract_message_usages] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[service_contract_usages] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[service_contracts] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[service_message_types] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[service_queue_usages] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[service_queues] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[services] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[spatial_index_tessellations] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[spatial_indexes] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[sql_dependencies] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[sql_modules] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[stats] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[stats_columns] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[symmetric_keys] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[synonyms] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[syscolumns] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[syscomments] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[sysconstraints] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[sysdepends] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[sysfilegroups] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[sysfiles] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[sysforeignkeys] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[sysfulltextcatalogs] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[sysindexes] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[sysindexkeys] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[sysmembers] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[sysobjects] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[syspermissions] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[sysprotects] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[sysreferences] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[system_columns] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[system_objects] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[system_parameters] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[system_sql_modules] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[system_views] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[systypes] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[sysusers] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[table_types] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[tables] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[transmission_queue] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[trigger_events] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[triggers] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[type_assembly_usages] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[types] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[views] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[xml_indexes] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[xml_schema_attributes] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[xml_schema_collections] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[xml_schema_component_placements] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[xml_schema_components] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[xml_schema_elements] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[xml_schema_facets] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[xml_schema_model_groups] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[xml_schema_namespaces] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[xml_schema_types] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[xml_schema_wildcard_namespaces] TO [' + @AppRoleName + '];' )
    EXEC ( 'GRANT SELECT ON [sys].[xml_schema_wildcards] TO [' + @AppRoleName + '];' )
    FETCH NEXT FROM AppRoleCursor INTO @AppRoleName
    END
    CLOSE AppRoleCursor
    RETURN 0
    GO
    Once that is in the system, I just needed to "Exec GrantAccess" to make it work.  (Of course, I have a table [RoleList] which contains a "AppRoleName" field that contains the names of the database roles.)
    So, the mystery remains: why did all my users lose their "public" role and why could I not give it back to them?  Was this part of an update to SQL Server 2008 R2?  Was it because I ran another script to delete each user and add them back so to refresh
    their connection with the domain?  Well, this solves the issue for now.
    One last warning: you probably should check the "public" role on your system before running this to make sure there isn't something missing or wrong, here.  It's always possible something is different about your system.
    Hope this helps someone else.

  • A database error occurred. Source: Microsoft SQL Server Native Client 10.0 Code: 1205 occurred

    Hi
    i am getting these errors in sharepoint server event viewer, and when i see the sql server the log files disk is full memory only some mbs left out of 1 TB
    Log Name:      Application
    Source:        Microsoft-SharePoint Products-SharePoint Server Search
    Date:          7/12/2014 9:56:04 PM
    Event ID:      57
    Task Category: Search service
    Level:         Warning
    Keywords:     
    User:          XYZ\svc-mc-sps3eServsear
    Computer:      SPFIND01.xyz.gov.local
    Description:
    A database error occurred. Source: Microsoft SQL Server Native Client 10.0 Code: 1205 occurred 1 time(s) Description: Transaction (Process ID 193) was deadlocked on lock
    resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
    Context: Application 'XYZSP_SearchApp'
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-SharePoint Products-SharePoint Server Search" Guid="{C8263AFE-83A5-448C-878C-1E5F5D1C4252}" />
        <EventID>57</EventID>
        <Version>14</Version>
        <Level>3</Level>
        <Task>136</Task>
        <Opcode>0</Opcode>
        <Keywords>0x4000000000000000</Keywords>
        <TimeCreated SystemTime="2014-07-12T18:56:04.665684900Z" />
        <EventRecordID>225666</EventRecordID>
        <Correlation />
        <Execution ProcessID="3408" ThreadID="2932" />
        <Channel>Application</Channel>
        <Computer>SPFIND01.xyz.gov.local</Computer>
        <Security UserID="S-1-5-21-1537596049-1164153464-4201862467-47315" />
      </System>
      <EventData>
        <Data Name="string0">Microsoft SQL Server Native Client 10.0</Data>
        <Data Name="string1">1205</Data>
        <Data Name="string2">1</Data>
        <Data Name="string3">Transaction (Process ID 193) was deadlocked on lock resources with another process and has been chosen as the deadlock
    victim. Rerun the transaction.</Data>
        <Data Name="string4">
    Context: Application 'XYZSP_SearchApp'</Data>
      </EventData>
    </Event>
    A database error occurred. Source: Microsoft SQL Server Native Client 10.0 Code: 9002 occurred 1 time(s) Description: The transaction log for database 'tempdb' is full due to 'ACTIVE_TRANSACTION'.
    Context: Application 'XYZSP_SearchApp'
    adil

    If you've run out of disk space for your SQL databases then of course you'll get errors. Fix SQL then look to see if you're still getting errors.

  • Microsoft SQL server 2012 express

     
    i recently downloaded ENU\x86\SQLEXPR_x86_ENU.exe and ENU\x86\SQLManagementStudio_x86_ENU.exe from microsoft SQL server 2012 from official download centre page. First i installed SQLEXPR_x86 (database engine) with mixed mode authentication, then i installed
    management studio with new installation option rather than selecting add new features.after both the successfull installation i learnt that in the object explorer, expanding database+system database+master i dont have a table option to create
    new tables as earlier found in sql 2005 and 2008 versions. in simple words i dont have a table designer to create table, i have to type the statments using query editor to create and do manipulations in the table. for your further help i want to
    tell you some related information:
    1.i tried to get the table option with ENU\x86\SQLEXPRADV_x86_ENU.exe and ENU\x86\SQLEXPRWT_x86_ENU.exe without installing management studio as studio is already present in these packages. but still the problem persist.
    2.i have windows 7 home basic installed on PC and windows 7 home premium on laptop both with service pack 1 with all the new updates.
    3.after installation of sql server 2012 service pack, i thought problem might get solved but no.
    i really need table designer feature.

    Hello,
    It is simple : in SSMS , after having connected to your SQL Server instance, you should see in the left panel a TreeView with the name of your instance. Right-click on the name of your instance .I n the context menu , click on Facets ( 12th item just above
    Start PowerShell ).You will open a new form labeled "View Facets" followed by the "full" name of your SQL Server. In the bottom left part , you should see view the connection string .Click on it.
    If the name of your database is master , it means that you are connected to the master database . The master database is a system database in which you are not allowed to create a new table ( it is an essential database containing information essential to
    the survival of your SQL Server ).See this link ( even if it was for SQL Server 2012, it is always valuable )
    http://www.mssqltips.com/sqlservertip/1420/sql-server-system-databases/
    I would suggest to have a look at this link :
    http://msdn.microsoft.com/en-us/library/ms187837.aspx ( special 2012 ) and especially the part recommendations.
    As you have not yet created an user database , you connect automatically to the master database which is at least dangerous when you want to create a new table.
    You have before to create a new database in which you will create your new table. It is what I have explained in my former post.
    If you don't know how to create a new database, you have not posted in the good forum ( a curious habit from the original posters , maybe because they don't understand how to find the "good" forum but I recognize that I am often hesitating before finding
    the most appropriate forum even if I am moderator since 6 years ). It is possible that I have not been clear enough but English is not my mother tongue ).
    So don't hesitate to post again to obtain more help and explanations : this forum is full of highly-qualified persons always ready to help persons lost in SQL Server.
    For me , you have 2 important steps :
    - create a new database
    http://msdn.microsoft.com/en-us/library/ms176061(v=sql.120).aspx
    http://msdn.microsoft.com/en-us/library/ms186312(v=sql.120).aspx
    - create a new table
    http://msdn.microsoft.com/en-us/library/ms174979.aspx
    According to me , it is simpler to create a new database or/and table without using TRANSACT-SQL through the visual interface of SSMS
    for a database : right-click on the Databases node of your SQL Server instance and click on Create Database
    for a table : as soon as you have created your database , its name should appear in the list under the Databases node.
    Click on the little + on the left of this name to expand the node related to this new database.
    Right-click on the Tables node and choose New Table. You should arrive to a new form making relatively easy the creation of the table , more exactly , the structure of the table with its columns ( names and data types ).
    Don't hesitate to post again if you need more help( it is what I am doing when I am lost ) : you will find always someone available to help you at any time as moderators/answerers are nearly from every continent at any hour of the day ( when USA is sleeping
    , Europe and Asia are awake ... )
    Have a nice day
    Mark Post as helpful if it provides any help.Otherwise,leave it as it is.

  • Oracle DB 10g r2 & Microsoft SQL Server 2008

    Hello,
    I have a need to load data from Oracle 10g r2 to SQL Server 2008 and vice versa. I am new to heterogeneous connectivity. How do I connect to SQL Server from Oracle and vice versa(connect Oracle from SQL Server).
    The Oracle version : Oracle Database 10g Enterprise Edition Release 10.2.0.5.0
    The SQL Server Version :  Microsoft SQL Server 2008Both databases are located on different machines. Oracle is hosted on Solaris UX and SQL Server 2008 is on Windows Server 2008.
    Any documentation in this regard will help.
    Please advise.
    Thank you much for your time in reading this post.
    Rich
    Edited by: Rich V on Nov 13, 2011 9:02 PM

    When you want to connect from Oracle to a SQL server you need to use a gateway. Oracle offers 2 different kind of gateways. The gateway which is for free is based on a 3rd party ODBC. It is called Database Gateway for ODBC (DG4ODBC) and allows you to connect to any foreign database as long as the ODBC driver is compliant with the gateway requirements documented in the manual.
    As it allows you to connect to any foreign database it only supports a few Oracle functions which is able to map to foreign database equivalents. All other functions are post processed.
    The more powerful product is Database Gateway for MS SQL Server (DG4MSQL) which is designed for MS SQL Server connections. Thus it supports many more functions which it is directly mapping to SQL Server equivalents and it is also able to participate in distributed transactions and to call SQL Server stored procedures. This DG4MSQL gateway is not for free and requires a license.
    I would suggest to check out My Oracle Support and look for this note:Master Note for Oracle Gateway Products          [Document 1083703.1]     
    It contains a reference to many other notes describing the differences between DG4ODBC and DG4MSQL and it also contains links to common set up notes.
    After looking at this note you'll notice that on Unix most 3rd party ODBC drivers are commercial drivers and you might need to purchase them as well. Sometimes the license costs for these drivers are more expensive then purchasing the DG4MSQL. Another option would be to install DG4ODBC on a Windows platform, for example on the SQL Server machine and you could then use the MS SQl Server ODBC driver which is for free and you then have a complete solution for free.

Maybe you are looking for

  • Unable to "Append all values from Database" when creating parameter

    Hello, I am creating a report using Remedy AR System ODBC Driver as the connection.  I tried to create a static parameter with the list of values from the database, but I was prompted with the User name and Password for AR System ODBC Data Source ins

  • Can not upgrade to desktop manager 5.0 in Vista

    Frustrated- trying to delete 4.7 (not working) and do fresh install of 5.0  -  get registry error when uninstall tries to delete certain obscure entries with 1405 error code - do not have permission to delete key etc.  - I am running as administrator

  • Budget Exceeded Error in CJ88

    Dear Friend's When i am doing a perodic settlement of project then system shows error message "Budget Exceeded." But actually sufficient budget is available against that wbs element. Why this error is showing at the time of settlement. Pls guide me o

  • Pr cc crashes when opened

    Pr cc crashes when opened, sometimes it does it just after i get into it, support has checked my graphics card, made me update windows, uninstalled PRcc and reinstalled it and nothing, any other ideas as i am waiting on them to call me back. Thanks M

  • WAP4410N width Security-Mode WPA2-Enterprise and WDS-Repeater

    Hi, i have two WAP4410N with same Firmware 2.0.7.4. One Configured as AccessPoint with "Allow wireless signal to be repeated by a repeater." and correct MAC of the repeater. The Repeater has same settings (WPA2-Enterprise, both WAP4410N in B/G/N-Mode