all groups > sql server (microsoft) > april 2007 >
You're in the

sql server (microsoft)

group:

Default database status for ODBC connections problem, SQL2005



Re: Default database status for ODBC connections problem, SQL2005 Ed Murphy
4/8/2007 4:58:48 PM
sql server (microsoft): [quoted text, click to view]

Did you install a second copy of SQL Server? If so, then it probably
set itself up as a named instance, in which case you need to specify
that name to connect to any of its databases.

Copying the underlying file definitely won't work, because the copy
Default database status for ODBC connections problem, SQL2005 Bob
4/8/2007 5:36:46 PM
I am using SQL Server 2005 and using a database program that was installed
on the C:\ drive of the server. The 12gb partition has 1.8gb left and I
need to move it to the 550gb D:\ drive. Simple, yes and no. I have an
external MS Access 2003 report program that connects to the database via a
ODBC DSN file connection that I used to link certain tables.

The question is what happens to my connection if I move the SQL database to
the other drive? Will I lose my connection?

I shouldn't, so I thought. So I wanted to test my theory. The program I am
connecting to allows you to install a training or release version of the
database on the server, which I created a TEST file installed to the D:\
drive where I want the real one. I have also played with Access in creating
a new project file and an upsized MDB program on the same server. By
default they were created on the C:\ drive and I have access to them.

Now I tried to create a new ODBC connection to my TEST database that I
installed on D:\. I get to the part where you select which database to
connect to and it is not listed as one of the default files on the server.
In fact only the ones found on the C:\ drive are listed except the sample
databases like Northwind. There is no way to type in the name I want
because it says it doesn't exist. If I copy the database file that is
listed, that copy is not listed either.

Another question: how do you make a database file part of the default
listing so it can be connected too? Or do I just have to figure out how to
use connect strings in VBA? Is there a way to edit this in the server
manager library of programs?

Bob

Re: Default database status for ODBC connections problem, SQL2005 Ed Murphy
4/8/2007 8:08:11 PM
[quoted text, click to view]

(Please don't top-post. Fixed.)

If you're just moving files while the SQL Server service is stopped,
then the service will lose track of the database. You need to either
(1) use SSMS to move the files, or (2) detach the files beforehand
Re: Default database status for ODBC connections problem, SQL2005 Bob
4/8/2007 9:30:05 PM
No just one installation of SQL server 2005 loaded. I am pretty new at all
this as a database admin using this program. I can create new databases but
when I physically move them to another drive will they still be available?
Just don't know yet. Tomorrow I am going to try moving one of my testing
files that show up in the list to the other drive just to see what happens.

[quoted text, click to view]

Re: Default database status for ODBC connections problem, SQL2005 Bob
4/15/2007 10:01:41 PM
Well, I decided to detach the database and move the files to the D: drive
location and reattached the same file again. It worked.
Now I just have other fish to fry when it comes time to migrate to a newer
version of the database next month. The last time they tried it they were
migrating from a copy that was run on MSDE to a Server 2005 and it didn't
work. I am guessing that it doesn't work that way with this program.

Thanks for the help.

[quoted text, click to view]

AddThis Social Bookmark Button