Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Help! Can't connect via ODBC DSN file to SQL server 2005 i..

 
   Database Forums (Home) -> ODBC RSS
Next:  Few questions concerning Ingres 2006  
Author Message
Bob

External


Since: Apr 08, 2007
Posts: 2



(Msg. 1) Posted: Sun Apr 08, 2007 5:45 pm
Post subject: Help! Can't connect via ODBC DSN file to SQL server 2005 if not considered a default database
Archived from groups: microsoft>public>sqlserver>odbc (more info?)

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

 >> Stay informed about: Help! Can't connect via ODBC DSN file to SQL server 2005 i.. 
Back to top
Login to vote
Sue Hoegemeier

External


Since: Aug 26, 2003
Posts: 1006



(Msg. 2) Posted: Tue Apr 10, 2007 5:58 am
Post subject: Re: Help! Can't connect via ODBC DSN file to SQL server 2005 if not considered a default database [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

SQL Server is not a file based database system. You don't
connect to physical files, you connect to a SQL Server
instance. When I connect to a SQL Server instances, I don't
need any knowledge of the physical files, their locations,
etc. Files and locations don't matter to me as a client
connecting to SQL Server. If the files on SQL Server are
moved one day, it makes no difference to me as a client
connecting to SQL Server. Those things are transparent to me
connecting to SQL Server. I connect to an instance so the
location of the files doesn't matter. It only matters
internally to SQL Server.
Databases that are available to a user on SQL Server will
show up in the drop down when creating DSNs. Again, the
files themselves makes no difference.
I can't tell from your post if you created a test database
or a test instance - creating a test file doesn't mean much.
If you created another instance, you need to connect using
ServerName\InstanceName. To connect, You would need to make
sure the browser service is running as well

-Sue

On Sun, 8 Apr 2007 17:45:59 -0500, "Bob"
wrote:

>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
>

 >> Stay informed about: Help! Can't connect via ODBC DSN file to SQL server 2005 i.. 
Back to top
Login to vote
Bob

External


Since: Apr 08, 2007
Posts: 2



(Msg. 3) Posted: Sun Apr 15, 2007 10:13 pm
Post subject: Re: Help! Can't connect via ODBC DSN file to SQL server 2005 if not considered a default database [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I figured out the moving the file location to the D: drive since it was
bigger. I used detach and attach to move it and reconnect it back onto the
server. As far as I know there is only one instance created. Anything I
create that is new to the server will show up in the DSN dropdown. Any
copies of those databases that I use for testing purposes will not show up.
I see them listed as databases on the server manager but can't connect via
ODBC, just the original database. So how do I make them available if
possible?

"Sue Hoegemeier" wrote in message

> SQL Server is not a file based database system. You don't
> connect to physical files, you connect to a SQL Server
> instance. When I connect to a SQL Server instances, I don't
> need any knowledge of the physical files, their locations,
> etc. Files and locations don't matter to me as a client
> connecting to SQL Server. If the files on SQL Server are
> moved one day, it makes no difference to me as a client
> connecting to SQL Server. Those things are transparent to me
> connecting to SQL Server. I connect to an instance so the
> location of the files doesn't matter. It only matters
> internally to SQL Server.
> Databases that are available to a user on SQL Server will
> show up in the drop down when creating DSNs. Again, the
> files themselves makes no difference.
> I can't tell from your post if you created a test database
> or a test instance - creating a test file doesn't mean much.
> If you created another instance, you need to connect using
> ServerName\InstanceName. To connect, You would need to make
> sure the browser service is running as well
>
> -Sue
>
> On Sun, 8 Apr 2007 17:45:59 -0500, "Bob"
> wrote:
>
>>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
>>
>
 >> Stay informed about: Help! Can't connect via ODBC DSN file to SQL server 2005 i.. 
Back to top
Login to vote
Sue Hoegemeier

External


Since: Aug 26, 2003
Posts: 1006



(Msg. 4) Posted: Mon Apr 16, 2007 10:09 am
Post subject: Re: Help! Can't connect via ODBC DSN file to SQL server 2005 if not considered a default database [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

If a user does not have access to the database, they won't show up in
the drop down when creating a DSN.
So the user needs access. And I'm not following what you are doing
with attach and detach but you want to make sure you don't have any
orphaned users in the databases as well.

-Sue

On Sun, 15 Apr 2007 22:13:20 -0500, "Bob" wrote:

>I figured out the moving the file location to the D: drive since it was
>bigger. I used detach and attach to move it and reconnect it back onto the
>server. As far as I know there is only one instance created. Anything I
>create that is new to the server will show up in the DSN dropdown. Any
>copies of those databases that I use for testing purposes will not show up.
>I see them listed as databases on the server manager but can't connect via
>ODBC, just the original database. So how do I make them available if
>possible?
>
>"Sue Hoegemeier" wrote in message
>
>> SQL Server is not a file based database system. You don't
>> connect to physical files, you connect to a SQL Server
>> instance. When I connect to a SQL Server instances, I don't
>> need any knowledge of the physical files, their locations,
>> etc. Files and locations don't matter to me as a client
>> connecting to SQL Server. If the files on SQL Server are
>> moved one day, it makes no difference to me as a client
>> connecting to SQL Server. Those things are transparent to me
>> connecting to SQL Server. I connect to an instance so the
>> location of the files doesn't matter. It only matters
>> internally to SQL Server.
>> Databases that are available to a user on SQL Server will
>> show up in the drop down when creating DSNs. Again, the
>> files themselves makes no difference.
>> I can't tell from your post if you created a test database
>> or a test instance - creating a test file doesn't mean much.
>> If you created another instance, you need to connect using
>> ServerName\InstanceName. To connect, You would need to make
>> sure the browser service is running as well
>>
>> -Sue
>>
>> On Sun, 8 Apr 2007 17:45:59 -0500, "Bob"
>> wrote:
>>
>>>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
>>>
>>
>
 >> Stay informed about: Help! Can't connect via ODBC DSN file to SQL server 2005 i.. 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Connect to a SQL Server 2000 Instance with ODBC on Windows.. - With a Data Source ODBC, I am able to connect to my SQL Server Instance in "Named Pipe" mode but not in TCP/IP mode. (Firewall is disable) I always got: Connection Failed: SQLState:'01000' SQL Server Error: 53 [Micosoft][ODBC SQL Ser...

getting remote file via ODBC in SQL Server 2000 - Hello, I'm not sure if this is possible but I have to use ODBC to connect to a remote SQL Server 2000 database. Given a filename path on the remote machine I need to get the contents of the file. I don't mind creating a temporary table and doing a..

ODBC Connect Failure for SQL 2005 - The ado connect string for SQL 2K is: strConnect = "driver={SQL Server};server=" & ServerName & ";database= "yada yada yada". What do I need to change to connect to SQL 2005 with the SQL Native Client? Thanks in advanc...

ODBC Connect Prob in 2005 - I have attempted to establish ODBC connections w/ the Microsoft SQL Native Client Version 09.00.1399 (from 2 different machines) and get the following error: Connection Failed: SQLState: '08001' SQL Server Error: 1326 [Microsoft][SQL Native..

ODBC SQL 2005 and Named Instance - won't connect - We have two instances of SQL 2005 installed, with static TCP/IP ports, one instance on one IP address, port 1433 and the other instance on a different IP address, port 1433. Try to create an ODBC System DSN using SQL Native Client and it won't connect...
   Database Forums (Home) -> ODBC All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]