Where is the database connection information in an ADP file? [closed] - database

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
A user entered a ticket for an OLD Access database and form project that they use daily. They are saying that the database cannot be found when they use it. I haven't used MS Access to design a database or interface since college so I have no idea where to find the database it's trying access.
I want to try and locate the DB to see if 1) it exists and 2) is not corrupt
The main interface is done through a *.adp file. Where is the connection string information stored in the file?
Ive opened it in MS Access 2007.

With an ADP, SQL Server is used for all data storage.
In the Immediate window (go there with Ctrl+g), inspect the ConnectionString and Provider properties:
? CurrentProject.Connection.ConnectionString
? CurrentProject.Connection.Provider

Related

How user can use database without having DBMS [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I'm new to the topic of databases and DBMS.
I have written the PhoneBook program with C# .NET and SQL Server.
My question is how can I run this program on a users computer who hasn't got SQL Server?
I want when they click on the execution file on their computer, it will work immediately and correctly and they can store new users or delete some user
You could host a SQL server for your users and require they have an internet connection.
You could rewrite it as a web application, also requiring an internet connection.
Or you can use SQLite, an embedded SQL client and, for lack of a better term, server. That's what I'd recommend, and that's what many applications do. SQLite is not fully compatible with SQL Server, so you'd have to rewrite some of your SQL.

how to test that right database is being used without actually querying database [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I want to know when an application is pointing to a database, how to make sure that it is the correct database.
Can you let me know this from a Developer, DBA and a tester perspectives?
is it the database connection string? or update date on tables entries? any database scripts related check?
Thank you all in advance.
From a developer perspective, checking the connection string is the typical way to tell which database an application is pointing to. Of course, the big thing to look out for with this is making sure that you're looking at the right connection string, especially if you are using more than one of them in that application.
Depending on your application, you should be able to print a debugging message near your code that initializes the connection to the database that prints out the connection string that is being used for that connection. This could also allow the tester to know which database is being accessed.
From a DBA perspective, profiling the server could show active connections and/or queries with various amounts of detail depending on the database server being used.

SQL Server Backup error - not part of a multiple family media set [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I am trying to backup my SQL Server 2008 R2 database. However I am getting the below error, no matter where I try to save the backup.
System.Data.SqlClient.SqlError: The volume on device 'D:\Programfiles\Microsoft SQL Server\MSSQL.1\MSSQL\Backup\dbName.bak'
is not part of a multiple family media set. BACKUP WITH FORMAT can be
used to form a new media set. (Microsoft.SqlServer.Smo).
Can anyone throw light on this?
The only helpful links I could google were following but of little use:
http://social.msdn.microsoft.com/Forums/en-US/sqldisasterrecovery/thread/a1eb2818-2a97-4c52-aa8d-7c224f1ac282
and
http://www.sqlservercentral.com/Forums/Topic279584-24-1.aspx
I wasn't able to reproduce the issue however, here's a workaround for whoever might run into this: use WITH FORMAT clause or Options - Back up to a new media set and erase all existing backup sets option in the GUI.

Is this normal behavior when connecting to remote database that is located on shared hosting? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
So I have a shared hosting for ASP.NET MVC3 and I just created a new database on Plesk.
Next I wanted to connect to database remotely using Sql Manager and I entered server name, username and password.
Everything fine so far but after I clicked on Database Name, it gave me a list of all sort of databases I never heard of.I guess those are databases of other people.
I am wondering is this normal behavior?
The permissions to hide database you don't have permissions in have side effects
So you can usually see the databases but you should have no rights at all to see any data in them, even system data. That is, there should be no login-user mapping

SQL Server BAK file with protection is beaten by SA user? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
In my work I have a BAK file (which I'm working on in SSMS) and the system Admin gave me permissions via my Active directory .
NOw ,
If I'm taking the bak to another place (e.g. home), and I'm adding the sa user (which is me, and I don't have Server Environment in my house) as full controller.
Should I be able to have full control over it (at home )?
If you have a backup file with no encryption, then you can restore it on your local machine as sa. When you do this, though, the database users will be orphaned, and you will have to modify that. No big deal, and as an sa you'll already be mapped to the dbo user, but if you have an application hitting the database using a different database login/user then that will be an issue.
As long as you are administrator on your machine at home you should have full control. The only items you may not be able to get to is if certain columns are encrypted.

Resources