Config of multiple SQL-Server databases without multiple gateways-possible?

Hi Guys
Can someone tell me if there's any way of connecting to different SQL Server databases (using Transparent Gateway) WITHOUT having to create multiple gateways?
I have read in various sources that I MUST create one gateway per target database. I was contemplating a workaround such as creating a sysadmin SS user (and using these credentials in the db link) and trying to access any one of the databases within the SS instance. As I'm sure you know, you can query a SS database via a sysadmin user like:
select * from my_db.dbo.my_table
I realise it was a long shot to execute this from Oracle select * from my_db.dbo.my_table@my_dblink and yes....it didn't work.
We have SS databases that are constantly dropped, recreated, renamed etc so we don't want to configure transparent gateway for a database only for it to be dropped 5 minutes later.
Thanks in advance, Jon
Edited by: user10240703 on 01-Oct-2009 03:07

Thanks! I'm sure that's the fella...but things still progressing at snails pace.
after (somehow) fixing the following ....
ORA-02055: distributed update operation failed; rollback required
ORA-02067: transaction or savepoint rollback required
ora-1591 lock held in - doubt distributed transaction error
I now get and can't get round the following error:
PLS-00487: Invalid reference to variable 'REC1'
Here's the simple code
SQL Server
alter procedure jontest as
begin transaction
select test from dbo.a
commit
Note: test is a varchar(50)
PLSQL code
create or replace package rcpackage is type RCTYPE is ref cursor;end rcpackage;
declare
rc1 rcpackage.rctype;
rec1 varchar2(50);
out_arg varchar2(255);
begin
rollback;
out_arg := null;
dbo.jontest@omg(rc1);
fetch rc1 into rec1;
dbms_output.put_line(rec1.test);
close rc1;
end;
Note: as you can see, the sql server column and the rec1 are the same datatype so i've no idea why it doesn't like this. I've tried with different datatypes, integers etc with the same error. Any clue? Thanks,
Getting there, but slowly :-)

Similar Messages

  • Can dw cs3 connect directly to sql server database without a testing server?

    I'm new to dreamweaver but have used script tools that link
    directly to my sql server database.
    Not in dw, so far. As of this early stage, I don't have or
    want to use a web server, and it's blocking me
    without one. I just want to prototype without a testing
    server, directly to my database. And while I'll try php
    later, I didn't want to have to get into it or cold fusion,
    etc. right away.
    Can dw connect directly to sql server database without a
    testing server?
    I'm running XP sp 3 at this point, and don't see IIS. There's
    probably some security issues
    I'll have to tangle with. The goal is for my website to end
    up on the company intRAnet, not the www.
    fwiw, I can Build in Data Link Properties and get a
    successful test to my sql server database via
    Microsoft Data Link, but once I go back and try the test in
    OLE DB Connection it balks on the testing server,
    as I don't have one locally or otherwise. Isn't there a way
    to link to db without a testing server?
    Thanks for any insights.

    Art wrote:
    > You can connect to SQL server using ODBC in windows.
    Yes, you can. However, Dreamweaver's PHP server behaviors
    work only with
    MySQL. To connect to any other database, you need to hand
    code
    everything yourself.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • How to delete/drop all the tables from SQL Server Database without using Enterprise Manager?

    How to delete/drop all the tables from SQL Server Database without using Enterprise Manager?
    I tried using DROP Tables, Truncate Database, Delete and many more but it is not working.  I want to delete all tables using Query Analyzer, i.e. through SQL Query.
    Please help me out in this concern.
    Nishith Shah

    Informative thread indeed. Wish I saw it early enough. Managed to come up with the code below before I saw this thread.
    declare @TTName Table
    (TableSchemaTableName
    varchar
    (500),
    [status] int
    default 0);
    with AvailableTables
    (TableSchemaTableName)
    as
    (select
    QUOTENAME(TABLE_SCHEMA)
    +
    +
    QUOTENAME(TABLE_NAME)
    from
    INFORMATION_SCHEMA.TABLES)
    insert into @TTName
    (TableSchemaTableName)
    select *
    from AvailableTables
    declare @TableSchemaTableName varchar
    (500)
    declare @sqlstatement nvarchar
    (1000)
    while 1=1
    begin
    set @sqlstatement
    =
    'DROP TABLE '
    + @TableSchemaTableName
    exec
    sp_executeSQL
    @sqlstatement
    print
    'Dropped Table : '
    + @TableSchemaTableName
    update @TTName
    set [status]
    = 1
    where TableSchemaTableName
    = @TableSchemaTableName
    if
    (select
    count([Status])
    from @TTName
    where [Status]
    = 0)
    = 0
    break
    end

  • Is there an easier way to insert date into an MS SQL Server database ?

    Is there an easier way to insert date into an MS SQL Server database without using the DateFormat?

    USe a PreparedStatement and then the method setDate (or setTimestamp )
    http://java.sun.com/docs/books/tutorial/jdbc/basics/prepared.html

  • Transaction accross multiple SQL Server 7.0 databases

    Does any body know which driver to use to perform distributed transaction accross mutiple SQL Server 7.0 databases invloving CMPs .
              Any help appreciated.
              [att1.html]
              

    Hi,
    You can perform this action with the Oracle Migration Workbench. Just install the Workbench on the same machine as your SQL Server database.
    You can then configure the workbench to point to the oracle database on your Sun machine.
    You can use the Oracle database on your Sun machine for both your destination database (the database to which you migrate your SQL Server schema and data) and workbench repository.
    In order to do this you will need to configure a tnsnames.ora entry. The tool that will do this configuration for you should be started up at the end of the workbench installation. It is a fairly straightfoward process.
    You then need to create a user in your oracle database that will store the workbench repository.
    Once you have comleted these steps you will be able to migrate SQL Server on NT to Oracle on Sun.
    It is exactly the same process as migrating to Oracle on NT except you are pointing the Workbench to Oracle on a Sun box.
    Regards
    John

  • Multiple SQL Server Instances and MSDTC / AGs usage

    Hello,
     We are in the planning stages of migrating from SQL Server 2008R2 to 2012 to be running on Windows Server 2012, and I have a question about MSDTC, Availability Groups and multiple sql instances on a single box.
     We have a couple of databases that rely on MSDTC so we know they can not participate in Availabilty Groups, but most of the other dbs we use DO NOT need MSDTC so I wondering the following:
    1) Can I install two instanaces of SQL Server on a single box and have one using a local DTC, and therefore unable to use AGs, and the other instance on the same box NOT use DTC and therefor CAN use AGs?
    2) If I can't do this, I assume each instance would need it's one machine. Is that correct?
    Thanks
    Eric

    Hi Eric,
    As described in this
    article, for a given availability group, the availability replicas must be hosted by separate instances of SQL Server residing on different nodes of a WSFC cluster. Thus, we cannot configure a availability group for multiple SQL Server instances that reside
    on a single node.
    In addition, MSDTC is not supported by AlwaysON Availability Groups because
    transaction atomicity/integrity cannot be guaranteed. For example, while
    using a MS DTC transaction, after failover, the new principal contacts MS DTC. But MS DTC has no knowledge of the new principal server, and it terminates any transactions that are "preparing to commit," which are considered committed
    in other databases. However, using Availability Groups together with DTC does not result in an unsupported SQL Server installation. For more information, please review this article:
    Cross-Database Transactions Not Supported For Database Mirroring or AlwaysOn Availability Groups (SQL Server).
    Thanks,
    Lydia Zhang
    Lydia Zhang
    TechNet Community Support

  • How to view the login log in window NPS after login cisco switch and without SQL server database

    how to view the login log in window NPS after login cisco switch and without SQL server database
    in summary 
    there is only log with event id 4400
    A LDAP connection with domain controller XCPAWS20.cyberport.noc for domain NOC2 is established.

    Hi adil,
    For your issue, you can create a custom security token service (STS) and then set up a trust relationship between a SharePoint 2010 farm and the custom STS.
    For more information, you can refer to the articles:
    http://forums.asp.net/t/1335229.aspx?Sharing+Authentication+Ticket+Between+ASP+NET+and+Sharepoint
    https://msdn.microsoft.com/en-us/library/office/ff955607(v=office.14).aspx
    http://www.paraesthesia.com/archive/2011/02/01/working-with-windows-identity-foundation-in-asp-net-mvc.aspx/
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Connecting to sql server database mdf file without installing sql server on client machine?

    I am creating a window application that need to use sql server database. I want to install this application to client machine without installing sql server so that my application can still connect to a database i.e mdf file that i will be providing at client
    system.
    How can i connect to a database(mdf) on client machine through my window application without installing sql server. ? I dont know is it possible or not.
    If possible what will be the connection string in that case. Database need not be used in network.

    you cant connect and view the internals of mdf file unless it being attached to a sql server instance as a database.
    The sql server instance can be installed in any box which is in the same domain and then you can connect from your application to it.
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • How can I get an accurate count of computers (workstations) logged in to my SQL Server database?

    We license our software by number of workstations.
    I have a query that I have used for years to get an accurate count of the workstations logged in to my SQL Server database. For simplicity, all users use the same login name/password. This is built in to the script that attaches to the DB. They
    have access only to that DB with the exception of
    USE [Master] GRANT VIEW SERVER STATE to MyUser
    The query that has been working is below:
    Basically this relies on the mac address (Master.dbo.sysprocesses.net_addre
    SELECT COUNT(Users) AS UserCount FROM (SELECT COUNT(Master.dbo.sysprocesses.hostname) AS Users FROM Master.dbo.sysprocesses LEFT OUTER JOIN Master.dbo.sysdatabases ON Master.dbo.sysdatabases.dbid = Master.dbo.sysprocesses.dbid WHERE (Master.dbo.sysdatabases.name = 'MyDatabase') GROUP BY Master.dbo.sysprocesses.net_address) AS UserCount_1
    ss), since both Workstation names and ip addresses can be duplicated.
    Recently this has stopped working at a number of customers. Suddenly individual workstations are showing multiple net addresses for the same workstation causing a substantial overcount of users. This may be related to SQL Server 2012 - not sure.
    What I need is a very reliable way to get a count of workstations logged in to my database.
    If anyone can tell me why I am suddenly getting multiple net_addresses for each workstation and how to prevent that that would be one possible solution.
    Otherwise if anyone can give me a rock solid way to get a workstation count other than the above that would be great. Our largest customer is 50 users by the way.
    Thanks in advance for any help.
    Kim

    I think your count is getting skewed because of duplicate rows in sysprocesses because of parallelism. Add DISTINCT to your query:
    SELECT COUNT(Users) AS UserCount
    FROM
    ( SELECT COUNT(DISTINCT Master.dbo.sysprocesses.hostname) AS Users
    FROM Master.dbo.sysprocesses LEFT OUTER JOIN Master.dbo.sysdatabases
    ON Master.dbo.sysdatabases.dbid = Master.dbo.sysprocesses.dbid
    WHERE (Master.dbo.sysdatabases.name = 'MyDatabase'
    GROUP BY Master.dbo.sysprocesses.net_address) AS UserCount_1
    Satish Kartan www.sqlfood.com

  • Is it possible to have different authentication mode for SQL Server Database Engine and corresponding SQL Server instance?

    Hi,
    I have installed the x64 SQL Server 2008 R2 Express with default settings and run MBSA 2.3 (using default settings too). It shows three SQL Server instances: MSSQL10_50.SQLEXPRESS, SQLEXPRESS and SQLEXPRESS (32-bit). For the first, authentication
    mode is Windows, for the rest two - mixed. Here https://social.msdn.microsoft.com/Forums/sqlserver/en-US/03e470dc-874d-476d-849b-c805acf5b24d/sql-mbsa-question-on-folder-permission?forum=sqlsecurity question
    about such multiple instances was asked and the answer is that "MSSQL10.TEST_DB
    is the instance ID for the SQL Server Database Engine of the instance, TEST_DB", so in my case, it seems that MSSQL10_50.SQLEXPRESS is the instance ID for SQL Server Database Engine  of the SQLEXPRESS instance.
    I have two questions:
    1) How can it be that SQL Server DB Engine instance has different authentication mode than corresponding SQL Server Instance?
    2) Why 32-bit instance reported although I installed only 64-bit version?
    Also, this https://social.technet.microsoft.com/Forums/security/en-US/6b12c019-eaf0-402c-ab40-51d31dce968f/mbsa-23-reporting-sql-32bt-instance-is-running-in-mixed-mode-when-it-is-set-to-integrated?forum=MBSA question seems to be related to this
    issue, but there is no answer :(.
    Upd: Tried on clean Windows 8 installation and Windows 7 with the same result.

      Because I DO NOT want the three people who will be having access to the production SQL Server to also have access to the primary host ProductionA.  Since I have to allow them to RDC into the box to manage the SQL Server, I figure why not create
    a separate VM for each one of them and they can RDC into those instead.
    Does this make any sense?
    Any tips are greatly appreciated.  The main reason for doing this is because the three people who will be accessing the box, I need to isolate each one of them and at the same time keep them off of the primary ProductionA.
    Thanks for your help.
    M
    Hello M,
    Since you dont want the 3 guys to have access to Production machine A.You can install SQL Server client .By client i mean SQL server management studio(SSMS) on there local desktop and then create login for them in SQL Server.Open port on which your SQL server
    is running for three of the machines so that they can connct.Now with SSMS installed on each machine each can connect to SQL server from there own machine.
    I would also like you to be cautious with giving Sysadmin privilege to all three of them ,first please note down what task they would do and then decide what rights to be provided.
    Your option will also work but you need to create 3 VM for that .Which is more tedious task.
    Hope this helps
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • Get collation of SQL Server database in C# application.

    Hi all,
    Is there any way to get collation of SQL Server database in C# application.
    Basically I have to read collation of two SQL Sever databases and compare them in C# application.
    If possible change the collation of two SQL Server databases to same. These databases are empty and newly created one's.
    Can any one provide pointers or sample.
    Thanks in advance.

    Hello somsekhark,
    May I ask the meaning of this "collation of SQL Server "? Do you mean data collection or you mean the whole database file?
    I saw that you want the two database the same and you want to use C#, in this way I would recommend you check the following tutorial as a start:
    1. Introuduce to Bulk Copy
    https://msdn.microsoft.com/en-us/library/7ek5da1a(v=vs.110).aspx
    2. Multiple Bulk Copy Operations
    https://msdn.microsoft.com/en-us/library/s4s223c6(v=vs.110).aspx
    However the above things need the target database table exist.
    If you don't want this you may think about using SQL Server Management Objects
    https://msdn.microsoft.com/en-us/library/ms162169.aspx
    Something like introuduced here:
    https://msdn.microsoft.com/en-us/library/ms162563.aspx
    For more details, I think you question need to be specific.
    Best regards, 
    Barry
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Error Connecting to remote sql server database

    The sql server database is hosted on Godaddy hosting service.
    I am able to connect with many other remote computers so the issue resides on the remote computer.
    The remote computer is windows 7 32 bit 2009 service pack 1
    using the ODBC administrator we add a user DSN select SQL Server Version 6.01.7601.17514
    For the server we put in the server from godaddy somthing like   XYZDatabase.db.1110002.hostedresource.com
    Once enter the login id and password we get the following error.
    Any help would much appreciated.
    Remember, we have multiple other remote computers connecting with no issues.

    Hello,
    If connection works for several machines, but fails on others then may because the access is blocked by firewall. You have to unblock IP port 1433 for in- and outbound.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Convert SQL server database into SAP readable (encrypted) XML for SAP tool?

    Could anyone kindly let me know what is the procedure to convert SQL server database into SAP readable (encrypted) XML for SAP Authoring tool???

    So If I understood it correctly there an existing propriertory question bank with SQL server. You are looking at an option to migrate all the tests and questions from the existing system to the LSO system. Right ?
    I am still not clear on the xml conversion. Have you guys found a solution which could be achieved through a xml file ?
    am not aware of a way through which you could import only a xml file and create tests/questions. If you have a sample xml file then forward me so that I could do some testing on my end.As per my knowledge you could do one of the following. I
    1. Create the tests and questions manually in Authoring Environment. It will be a time consuming task. Based on the number of questions you have you might have to assemble a team of content developers to acheive this.
    2. Alternatively, you could create a Adobe Flash based assessment. The Flash component would be the front-end and will read from a xml file to display the questions and to drive the funcationality. This would be a easier and less time consuming than creating the assessments manually in authoring environment. However, you might miss out some of the functionality available in the Test Author of Authoring Environment unless you have all the functionality replicated inside Flash. This would require one time effort in creating the Flash template and the xml file structure. Once that is created you could create multiple assessments by just replacing the xml file. If you select this approach then you would have to ensure the data from SQL is converted in the desired xml format required by your Flash component.
    Please let me know if you require any further guidance or clarification regarding this.
    Regards,
    Ravi Sekhar

  • Full Database Backup in DB13 for MS SQL Server databases

    Hello,
    We have some SAP systems using the MS SQL Server database. I want to know if it is possible to setup the Full Database Backup option in transaction DB13 to store the files in a hard disk space.
    I already did this type of configuration in SAP systems in Oracle databases and for this I used the init<SID>.sap where we can put all the configuration, for instance the disk path where we want to save the backup files! But for MS SQL Server databases, in DB13, I don´t know how to do that, when I add the "Full Database Backup" option in DB13, this show me some options but only for tape, but I don´t want to store the backup files in tapes, I want to store/save the files on the server disk itself or else to an external disk but I don´t see where I can set this way of storage!
    This is what you see in DB13 (when using a MS SQL Server database) in "Full Database Backup" and as you see I only have options for TAPE not for a disk or other type of storage! How can I do that? (if that is possible):
    Can you help me please?
    Kind regards,
    samid raif

    Hello Raja
    Sorry for the delay of my answer! Many thanks for that tip, it helps a lot and it solve the last error/problem that I reported here, in fact, the problem was we had named the device with two words containing a space. So we removed that space from the backup device (in SQL management studio) with one word only and the job runs successfully without any errors!
    It works in Development and Quality systems but in our Production system (AM1) the Full backup option in DB13 stopped with the following error, in fact the error is on verification of backup, it means that the Full backup finished with success, but when it does the backup verification, the job in DB13 stops with an error, the following one:
    ***************************** SQL Job information   ******************************
    Jobname:    SAP CCMS Full DB Backup of AM1 [20140417103726-4-103726]
    Type:       TSQL
    DB-Name:    AM1
    For Run:    20140417  10:37:26
    **************************** Job history information  *****************************
    Stepname:   CCMS-step 1
    Command:    declare @exeStmt nvarchar(2000) exec am1.sap_backup_databases @dbList=
                "AM1",@r3Db="AM1",@bDev="fullprd",@expDays= 27,@jobName= "SAP CCMS Ful
                l DB Backup of AM1 [20140417103726-4-103726]",@bkupChecksum="Y",@bkupT
                ype="F",@nativeBkup="N",@exeDate = "20140417103726",@bkupSim = "N",@fo
                rmat = 0,@init = 0,@bkupDb = "AM1",@unload = 0,@exeStmt = @exeStmt OUT
                PUT
    Status:     (success)
    Message:    3014
    Severity:                                                                                                                                                                                                                                                    0
    Duration:   4  hours(s)  41 min(s) 22 sec(s)
    Last msg:   Executed as user: am1. Processed 7434328 pages for database 'AM1', fil
                e 'A01DATA1' on file 1. [SQLSTATE 01000] (Message 4035)  Processed 315
                1504 pages for database 'AM1', file 'A01DATA2' on file 1. [SQLSTATE 01
                000] (Message 4035)  Processed 4574152 pages for database 'AM1', file
                'A01DATA3' on file 1. [SQLSTATE 01000] (Message 4035)  Processed 44363
                92 pages for database 'AM1', file 'A01DATA4' on file 1. [SQLSTATE 0100
                0] (Message 4035)  Processed 25598 pages for database 'AM1', file 'A01
                LOG1' on file 1. [SQLSTATE 01000] (Message 4035)  BACKUP DATABASE succ
                essfully processed 19621974 pages in 16881.638 seconds (9.521 MB/sec).
                 [SQLSTATE 01000] (Message 3014).  The step succeeded.
                        <------------- End of Job Step History --------------->
    Stepname:   CCMS-step 2
    Command:    declare @exeStmt nvarchar(2000) exec am1.sap_verify_backups @nativeBku
                p = "N",@bkupSim = "N",@bDev = "fullprd",@bkupChecksum = "Y",@exeDate
                = "20140417103726",@unload = 1,@dbCnt =1,@exeStmt = @exeStmt OUTPUT
    Status:     (failure)
    Message:    3201
    Severity:                                                                                                                                                                                                                                                   16
    Duration:   0  hours(s)  8  min(s) 30 sec(s)
    Last msg:   Executed as user: am1. Cannot open backup device 'fullprd(\\10.0.0.45\
                backupsap\prd\prdfullqua.bak)'. Operating system error 1265(error not
                found). [SQLSTATE 42000] (Error 3201).  The step failed.
                        <------------- End of Job Step History --------------->
    **************************** Job history information  *****************************
    Can you help me please with this one!? Can you tell me why in verification it stops with that error?
    Kind regards,
    samid raif

  • After sql server 2012 installation, I have changed sql server database engine service account from network service user to system user. What is disadvantages of this process?

         After
     sql server 2012 installation, I   attached my production db. Because of some reasons, i
     changed sql engine account from network service user to system user by means of sql server configuration manager.
         Now , there isn’t
     a problem at sql server running system.  But
    I have doubts that
     this can produce problems later. Because  sql server database engine account must have privileges that listed below;
    Log on as a service (SeServiceLogonRight)
    Replace a process-level token (SeAssignPrimaryTokenPrivilege)
    Bypass traverse checking (SeChangeNotifyPrivilege)
    Adjust memory quotas for a process
    (SeIncreaseQuotaPrivilege)
    Permission to start SQL Writer
    Permission to read the Event Log service
    Permission to read the Remote Procedure Call service
     While sql server installation, setup gives these
     privileges to network service user automatically, but changing user by means of sql confugarition manager does not give these
    privileges.
    Now, system user has privileges listed below. And sql server has been running for 1,5 months without any problems.
    Log on as a service (SeServiceLogonRight)
         Bypass traverse checking
    (SeChangeNotifyPrivilege) (Everyone user has his privileges. So i think that system user has this privilege also)
    What problems can occur because of this situation? Shall i give other privileges to system user and restart sql server or not? And how can i give these privileges to system user listed below;
    Replace a process-level token (
    this can be set from user rights assignments)
    Adjust memory quotas for a process
    (this can be set from user rights assignments)
    Permission to start SQL Writer ( 
    ? - give advice )
    Permission to read the Event Log service (
    ? - give advice )
    Permission to read the Remote Procedure Call service (
    ? - give advice )

     Our server is  windows server 2008 r2 enterprise edition. I have looked the bunch of permissions in user rights menu  that is in local security policy settings gui.
    And i have seen those permissions below were not granted to system user;
    Bypass traverse checking (SeChangeNotifyPrivilege)
    Adjust memory quotas for a process
    (SeIncreaseQuotaPrivilege)
    So, briefly you say, don't panic ?

Maybe you are looking for