HighTechTalks DotNet Forums  

oleDBadapter.fill()

Dotnet Data Tools microsoft.public.dotnet.datatools


Discuss oleDBadapter.fill() in the Dotnet Data Tools forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
rseedle
 
Posts: n/a

Default oleDBadapter.fill() - 04-03-2006 , 11:08 AM






I have an application which involves multiple generated data forms and a SQL
Server 2000 backend. ON my development workstation everything works fine. So
I copy to a different workstation with a local copy of SQL Server 2000. The
database was just detached on my development workstation and copied to the
other workstation and then reattached to SQL Server.

On the copied to workstation 4 out of 5 data forms work fine. They all use
the same connection string. The fifth that fails gives the messege when you
press the load button:

Messege: [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or
access denied.

Upon getting that messege I put the following code after the connection open
command and it responds correctly with the server version on both
workstations.

MessageBox.Show("ServerVersion: " + this.oleDbConnection1.ServerVersion
+ "\nState: " + this.oleDbConnection1.State.ToString());

So I believe this is an issue related to fill command, the environment on
the second workstation, or some kind of rights issue. I checked to see that
the select command is entered correctly. It was. Any other debug ideas ?

What would I have to do to get the second workstation to see the original
database on the first workstation (across the network) ? That might narrow
the problem down a little bit if it worked.

Randy


Reply With Quote
  #2  
Old   
Jim Hughes
 
Posts: n/a

Default Re: oleDBadapter.fill() - 04-05-2006 , 06:27 PM






Please show the connection string.

You may need to use sp_change_users_login to fixup the username mappings
after reattaching the db.

"rseedle" <rseedle (AT) discussions (DOT) microsoft.com> wrote

Quote:
I have an application which involves multiple generated data forms and a
SQL
Server 2000 backend. ON my development workstation everything works fine.
So
I copy to a different workstation with a local copy of SQL Server 2000.
The
database was just detached on my development workstation and copied to the
other workstation and then reattached to SQL Server.

On the copied to workstation 4 out of 5 data forms work fine. They all use
the same connection string. The fifth that fails gives the messege when
you
press the load button:

Messege: [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist
or
access denied.

Upon getting that messege I put the following code after the connection
open
command and it responds correctly with the server version on both
workstations.

MessageBox.Show("ServerVersion: " + this.oleDbConnection1.ServerVersion
+ "\nState: " + this.oleDbConnection1.State.ToString());

So I believe this is an issue related to fill command, the environment on
the second workstation, or some kind of rights issue. I checked to see
that
the select command is entered correctly. It was. Any other debug ideas ?

What would I have to do to get the second workstation to see the original
database on the first workstation (across the network) ? That might narrow
the problem down a little bit if it worked.

Randy




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.