Query for UDT over different Databases on another Server

Hi,
i want to use via query an UDT from another Database on another Server...
nomal Tables can be Used like this:
select* from [SVR-Name].Database.dbo.OITM
But if I try the same for an UDT:
select* from [SVR-Name].Database.dbo.[@UDT]
it doesn't work.
Does anyone have an Idea for me ?
Thx.
Markus

Thx for your replies,
a query over different Databases on the same SQL-Server is no problem.
... but I want to select an UDT which is on another SAP-Server (other location) in a different Database.
Servername = SVR
Database = LIVE
UDT = [@portfolio]
select * from [SVR].LIVE.DBO.[@portfolio]
doesn't work.
(normal query to reach OITM for example:
select * from [SVR].LIVE.DBO.OITM
works fine !!

Similar Messages

  • Query for turn-over to end-users

    Hi Friends,
    I have create a query called "query1.sql" which print monthly summary report to excel/csv.
    Can I automate this query for turn-over to user/operator, so that the user will just invoke run-time program only to produce the desired output? or maybe create a menu or something to make the query run?
    Thanks a lot,
    Ms K

    Not in the current releases. You can vote for the existing requests for automation/command line at the SQL Developer Exchange, to add weight for possible future implementation.
    And yes, I suppose you could create a User Defined Java Extension to automate through a menu option or something.
    Have fun,
    Mr. K.

  • Can we use different Databases (Oracle & SQL Server) in one report?

    Post Author: venki5star
    CA Forum: .NET
    Hi there.
    Can we use different databases (Oracle & SQL Server) in a same report?
    If possible how?
    Another question,
    Can we change the Provider Name at runtime of the given report. If so the above question is useless...
    Thanks in Advance.

    I tried this using Oracle Provider for OLEDB (the one that supplied by Oracle Client) and Crystal Reports 9. you can drag the column into designer but the image does not appear in preview.
    I guess it's because CR does not recognized it as image, and there are no information that the blob data is an image at all.

  • Coying Database to another server

    Dear All,
    I want trying to copy database to another server but i got error
    Login failed for user 'domainName\ComputerName$'
    I already use domain administrator to both of server and already create user login in both server.
    Both of the login is domain administrator and same user for the server. I use SQL Server Standard Edition 2008 R2.
    How can i fix this error?
    please help
    Best regards,
    Surbakti

    Hi Surbakti,
    According to your description, if you copy a local database to a remote SQL Server via the copy database wizard, we need to verify if the SQL Server Agent Service account does have sufficient access
    rights to the remote server. See:
    Use the Copy Database Wizard
    Usually, I suggest the better option is to perform the full backup of the database and then copy the backup file manually to remote computer. Once done, restore the database from this backup file on
    remote computer.
    There is detail about move databases between computers that are running SQL Server instance.
    http://support.microsoft.com/kb/314546/en-us
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • Connect to a oracle database in another server

    Hi people,
    I have to read some tables on a oracle database in another server.
    I know that I will have to use EXEC SQL command, but how can I make the connection between SAP and that oracle database.
    I have seen something about the DBCON table, but I am not sure if I can connect on another server from ther and how...
    Thanks...

    Dear,
    Check the below links:
    http://sap.ittoolbox.com/groups/technical-functional/sap-basis/connection-between-sap-system-with-external-oracle-database-with-tcode-dbco-1178583
    http://help.sap.com/saphelp_nwpi71/helpdata/en/df/455ec9747111d6b25100508b6b8a93/content.htm
    Hope it will help you.
    Regards,
    Alok Tiwari

  • How to create Oracle 11g DSN for database on another server

    Hi,
    How do i create an Oracle Database 11g DSN for a database that is lying on another server? I tried using the Microsoft ODBC Administrator tool but it gives me options only for the databases lying on my own machine.

    Hi,
    Check this thread may it help you https://forums.oracle.com/thread/2479208

  • Migrating master database to another server (DR testing).

    So I was tasked to do some DR testing, by moving one of our environments to another.  I was tasked with moving 1 user database called Vant, master, and msdb.  I managed to accomplish it, but it wasn't easy and a little messy.  I'm looking
    to see if you guys can help me clean my steps up a bit.
    Environment backgroud.
    Both environments are SQL Server 2012 Enterprise
    Build: 11.0.3368
    Instance Name: Default
    Process
    I took all 3 backups from my source server and placed it in a network location where my destination server can access.
    1) I began by trying to restore master database by placing my instance in single user mode, backup restored.
    2) when I removed the destination instance from single user mode, the service would not start, did this a couple of times, but no luck.
    3)I also made sure the startup parameters were pointing to the right folder location
    4)Then I thought, maybe it was the folder location where it restored to, that was causing the problem because they were different; so I went ahead moved master into a folder location that would match the source, i also changed the startup parameters, but
    the instance still wouldn't start
    5)So then I checked the event logs, and noticed that SQL Server was looking for databases that were on the Source Instance, as well as some of the system databases that I hadn't moved the files to the new folder location
    6)Restored the original master database from the destination server so that I could get the service going
    7) moved all the system databases from the old folder location on the destination server to where master now resided; created two empty databases with the names the event log was looking for.
    8)Restored master database from source server, and the service finally started up
    9)When I went into SSMS, I noticed that the two empty databases I created were in recovery pending
    10) dropped one of the databases I didn't need, and restored the Vant database, as well as msdb; everything looks good.
    So there it is, I totally don't feel good about this.  I don't like the fact that the databases came up in "recovery pending" and also that I had to create the databases it was looking for before I could restore and start up the service, but
    maybe that's just how it is.  Any advice you can give me on how to clean this up would be much appreciated.

    Hi,
    Did you reffered to Microsoft doumentation on how to move system databses.
    http://technet.microsoft.com/en-us/library/ms345408(v=sql.110).aspx
    For user databse backup when you restore on different server you use with move option to physically give location to mdf and ldf files.
    Moving system database is little tricky
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers
    My TechNet Wiki Articles

  • Must Move 10g Database To Another Server

    Good morning,
    Well, right in the middle of my implementation, I've learned that we must change to a different physical server for the 10 g database. Wonderful.
    I have installed several patches. Will a consistent backup of the db capture those patches? After I restore to the new server, will I have to reinstall all patches?
    Don't most patchsets modify the Oracle instance as well as the database?
    Thanks, John

    Have you tried the clone features? On DBCA, there is a clone database option. If you use Enterprise Grid Control, they have a clone database from one server to another and you can choose different instance name and different file structure. This has the additional benefits of no need to bring down the current database. Also you can try the clone.pl to clone the oracle_Home. I have not tried one with patches but I guess it will include every thing under ORACLE_HOME. It will handle most but I still have trouble with the data control setup but then I recreate everything from scratch

  • Import data into database on another server

    What is the syntax to import data from a .dmp file on another server into a database on a different server? Do I just use
    imp scot/tiger@nextdb parfile=params.dat
    I do not have enough space on the other server to hold the large import file. Even a compressed file give a 'no space left on device error', so I want to just issue the import command on the other server. Is that possible?

    Yes it is possible and the example you provided is enough if you want to import the data in nextdb.
    But, consider network bandwidth, since all data that has to be imported must go thru the network. This can make import process much slower.
    One more thing to consider! You have mentioned there is not enough space on your destination site for the dump file. If that is the case, make sure that you have enough space for the data that has to be imported.
    See how much free space you have in the target tablespace and the target location in order to be sure that there is enough space for the data.

  • Connecting oracle dev 2000 forms to oracle 9i database on another server

    we have these oracle developer 2000 forms (in .fmx format) in a server and the data of these forms in another server.... the server with the data is very old and is very slow...so we decided to relocate the database(oracle 9i) to a new server..... also, we move the developer 2000 forms from the old server to another server which will serve as the front end to the new data server.
    The problem is we can't figure out how to make the developer 2000 forms on the new front end server to point to the new database on the new data server. I would really appreciate if u cud gimme some advice on this... so we need to know how the forms find the data, where this "connection string" is for developer 2000 forms.

    You have to create a Net Service from "Net Configuration Assistant". Or you can copy TNSNAMES.ora file from your old server to new server. You can find TNSNAMES.ora file in developer_suite_Home/Network/admin folder.

  • How to connect to a MySQL database in another server

    Dear friends,
    I am using Oracle SQL Developer 1.5.3 and I need to connect to a MySQL database located in another server.
    I am trying to create a new connection, informing connection name, username and password. Supposing that "Hostname" is the IP server address, I click on "Choose database", but I always receive the following error message: "Status : Failure - Cannot connect to MySQL server".
    Please tell me what I should do to solve this situation. Thanks in advance.
    Best regards,
    Franklin

    You need to configure your mysql database to accept connection from your PC for the user you used.
    For example,
    GRANT ALL ON *.* TO 'someuser'@'somehost';
    FLUSH PRIVILEGES;

  • Remote connect to Windows Internal Database from another server

    Hello,
    I have a WSUS server which has Windows Internal Database installed. Now If I have to manage the database using SQL Server management studio, then I need to connect using the Server Name as \\.\pipe\MSSQL$MICROSOFT##SSEE\sql\query
    Now, if I want to connect to the server that has Windows Internal Database installed, but does not have SQL Server Management Studio installed, then how to connect?
    Please advice. Thanks in advance.
    Rajiv

    You can either install SQL Server management Studio or SQLCMD and then work with Windows Internal Database
    Both of these are freely downloadable from microsoft website.
    Please find the links for SQL 2014
    Management Studio
    http://www.microsoft.com/en-gb/download/details.aspx?id=42299
    You can download one of these based on 32/64bit
    MgmtStudio 32BIT\SQLManagementStudio_x86_ENU.exe
    MgmtStudio 64BIT\SQLManagementStudio_x64_ENU.exe
    SQLCMD
    http://www.microsoft.com/en-gb/download/details.aspx?id=29065
    Check the section  Microsoft® SQL Server® 2012 Command Line Utilities
    HTH
    Regards, Ashwin Menon My Blog - http:\\sqllearnings.com

  • Which is better for performance Azure SQL Database or SQL Server in Azure VM?

    Hi,
    We are building an ASP.NET app that will be running on Microsoft Cloud which I think is the new name for Windows Azure. We're expecting this app to have many simultaneous users and want to make sure that we provide excellent performance to end users.
    Here are our main concerns/desires:
    Performance is paramount. Fast response times are very very important
    We want to have as little to do with platform maintenance as possible e.g. managing OS or SQL Server updates, etc.
    We are trying to use "out-of-the-box" standard features.
    With that said, which option would give us the best possible database performance: a SQL Server instance running in a VM on Azure or SQL Server Database as a fully managed service?
    Thanks, Sam

    hello,
    SQL Database using shared resources on the Microsft data centre. Microsoft balance the resource usage of SQL Database so that no one application continuously dominates any resource.You can try the 
    Premium Preview
    for Windows Azure SQL Database which offers better performance by guaranteeing a fixed amount of dedicated resources for a database.
    If you using SQL Server instance running in a VM, you control the operating system and database configuration. And the
    performance of the database depends on many factors such as the size of a virtual machine, and the configuration of the data disks.
    Reference:
    Choosing between SQL Server in Windows Azure VM & Windows Azure SQL Database
    Regards,
    Fanny Liu
    If you have any feedback on our support, please click here. 
    Fanny Liu
    TechNet Community Support

  • How to create a standby database in another server?

    hi,
    I want to create a standby database in another machine, please tell me the steps fot it.
    thx.

    Can you tell what version of Oracle you are running, because the steps can vary depending on your version.

  • What is the best way to query for the roles of a 2013 Lync server?

    I am new to Lync.
    I am not able to find, but if anyone already asked and got answers in this forum, or documentation I will be much appreciate. 
    I would like to programmatically ( powershell wmi most likely)
    Get-WmiObject –query ‘select * from win32_product’ | where {$_.name –ilike “*Lync*”}
    Typically returns a lot of installed components, is there a way to tell whether a lync ( 2013) installation and deployment is either a Front/Back, or Edge or Mediation?
    Thanks

    thanks. Although I was expecting  (hoping) to be able to query for roles like : Front/Back, Edge , Mediation, Director and etc.
    PS C:\Users\labuser> get-csservice | select PoolFqdn,Role,SiteId
    PoolFqdn                   Role                       SiteId
    lab-lync2013-01.lab.exc13  UserServer                 Site:lab-lync2013-01
    lab-lync2013-01.lab.exc13  Registrar                  Site:lab-lync2013-01
    lab-lync2013-01.lab.exc13  UserDatabase               Site:lab-lync2013-01
    lab-lync2013-01.lab.exc13  FileStore                  Site:lab-lync2013-01
    LAB-EXCH2013CAS            WacServer                  Site:lab-lync2013-01
    lab-lync2013-01.lab.exc13  WebServer                  Site:lab-lync2013-01
    lab-lync2013-01.lab.exc13  ConferencingServer         Site:lab-lync2013-01
    lab-lync2013-01.lab.exc13  MediationServer            Site:lab-lync2013-01
    lab-lync2013-01.lab.exc13  ApplicationServer          Site:lab-lync2013-01
    lab-lync2013-01.lab.exc13  ApplicationDatabase        Site:lab-lync2013-01
    lab-lync2013-01.lab.exc13  CentralManagement          Site:lab-lync2013-01
    lab-lync2013-01.lab.exc13  CentralManagementDatabase  Site:lab-lync2013-01
    lab-lync2013-01.lab.exc13  MonitoringDatabase         Site:lab-lync2013-01
    10.199.4.4                 PstnGateway                Site:lab-lync2013-01
    What if, I use get-counter instead?
    E.g. if I am able to get something returned for 
    \LS:A/V Edge - UDP Counters(_Total)\A/V Edge - Packets Dropped/sec  , then I know it has Edge role
    \LS:MediationServer then it has Mediation role
    But then I really cannot tell for sure for FF or just Standard Editor Server.
    It is the list of server roles described in here that I am interested in. I understand Lync is very flexible in terms of deployment roles.
    http://technet.microsoft.com/en-us/library/gg398536.aspx
    Thanks
    Ben

Maybe you are looking for