I have a very basic understanding ODBC Data Sources and I am attempting to setup multiple connections to one drive under different database names. I've tried using the File DSN to setup multiple different files with different databases but the connection does not work. By trying to add a new database under the User DSN and System DSN it just edits the existing connection. All the databases are being connected to have the same username and password.
How do I setup multiple connections to different databases through ODBC?
Thanks.
Related
I have an issue that the DB cluster crashed and the master db is corrupted, the DB admin rebuild the master DB and restore the other databases and now the cluster is up and running, but the BizTalk configurations are lost. any idea how to retrieve them?
If only the master, or any other System Database, was corrupted, then the BizTalk Databases, BizTalkMbmetDb etc. should be ok, just not attached.
Your DB admin should have taken care to reattach all the databases to the new/repaired SQL instance.
If the SQL Server and Instance name are the same, BizTalk should just start up again.
If they names are different, then you will have to reconfigure the BizTalk Host Computers to point to the new SQL Server.
I have my MSAccess Database that is running on LAN.
and i have another SQL Server Database running on Web.
my requirement is:
When any data inserted or updated in MSAccess,
the newly entered or updated data should be updated on SQL Server Database as well.
so my question is,
How to Synchronize data between these databases?
I am able to ping a database server from my machine but am having a hard time connecting. Should I be able to connect or could there be other network features that are getting in the way?
I am trying to connect with Oracle SQL developer to an Oracle 11g R2 database.
Here are the instructions to connect to database using sql developer
Know the port number on which database is listening (by default 1521)
Make sure you can telnet to the host and the port number
There are several ways, you can connect (BASIC, TNS, Advanced etc)
For Basic, you need to give host ip or resolvable name, port and sid or service name as part of the connect string. Similarly for JDBC you need to give valid JDBC url and also you are supposed to ojdbc jar file in the appropriate location of sql developer.
I'm trying to place a .mdf database on a Computer A and access it simultaneously on Computer B but I'm having an error that says I cannot access the mdf file because it's being used by another process.
The setup is, the database is hosted on a Public folder in Computer A. I have Visual Studio running on both computers, and Computer B accesses the database on Computer A.
Computer A Connection path string:
C:\Users\Public\database.mdf
Computer B Connection path string:
\192.168.254.8\Public\database.mdf
Is there some sort of setting that I do not know of to enable multiple access on a db? Or this is not possible?
EDIT:
Let me rephrase my question, sorry.
There are two computers connected via a network, and I want to access one Visual Studio solution/project website. I wanted to do this as a demonstration, is it possible?
You should have an instance of SQL Server (even express) running on the host machine.
All requests from the clients should use the standard mechanisms for connecting to that server instance. In other words, they won't run their own copy of SQL Server, instead they will connect to the instance running on the host machine.
Simultaneous or direct access to Database files under any DBMS control either a very bad practice or simply impossible.
Use proper DBMS tools to access the data.
And yes - its possible to access Web site project for demo.
Install SQL Server on the host machine (the one that you want to keep your database on).
Then in Visual Studio, use the "Server Explorer" to locate the remote instance of the database. From there, you can utilize the remote instance of SQL Server in your connection string, thus allowing you to connect multiple computers to a single database.
Using two instances of SQL Server to connect to the single .mdf file is a very bad practice.
Instead of specifying the MDF file in your connection string (which, I believe, uses a form of User Instancing), you should use SQL Server Management Studio (SSMS) to attach the MDF. Then connect to SQL Server, rather than to the MDF.
You may need to move the MDF and LDF files to a place where the SQL Server identity can access them, rather than keeping them in your VS project.
Most projects keep scripts to create the DB in their VS project, but not the binary MDF itself.
When you deploy, the process is similar: use SSMS to attach the MDF on your server.
Yes, If 2 or More Computers are connected by networks like LAN You can access the Database Database1.mdf (say) from another SQL Server by entering its user name / Password /by Visual studio connection.
Disadvantages:
If more than 7~8 systems are accessing same Database same time System response slows down and Hangs up or may result error like connection pool exceeded or Device not responding..
In Big Companies they use Huge Multi-core & Multi-Processer based sever which will respond faster.
Overcome: while writing Applications Use Connection Open and Close Particularly while executing the SQL queries in other time it should be closed.
Best Programer uses Transaction instead of using normal methods. Transaction Makes Every User Access Database With valid and successful Execution of queries. These Queries (Transaction Queries) mainly executes on client machine and later updates the same over Main server when it got Time slot for it(synchronize).
I have a central webservice over the internet which gets different information from different softwares and stores them in a Sql server 2008R2 database.
In addition to webservice some windows applications exist in different cities which all of them have local databses.
Now I wanna have replication between these local databases and the central database. but there is no any direct connection as like as "VPN" between local databases and central database.
so how can I do something like replication or synchronization between local databases and central database over the internet.
I'm thinking about sending local databases via web service. what is your idea?
My local databases are Sql server 2000 version
How about log shipping? You can even use FTP (FTPS--FTP over SSL, for security) to send the logs to be later on applied to the central DB. Since you have SQL 2000, you'd have to restore data to a copy of the DB in "restore" mode and then merge with central DB using SQL.
Also, from personal experience--if setting VPN is costly, you can consider using SSH. Free implementations for Windows exist, and they do a good job for secure file copy, just like FTPS.
I wouldn't use a webservice for this purpose, especially if the amount of data is large.