Re: different environment fails to fill a dataset



Did you resync the logins to the users in that db after you attached it? If
not check out sp_change_users_login in BooksOnLine.

--
Andrew J. Kelly SQL MVP


"rseedle" <rseedle@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:C298B6AF-C57D-40EE-905C-CB50F29126F3@xxxxxxxxxxxxxxxx
I have a C# client application that uses SQL Server as a backend. It works
fine on my development workstation. But when I moved it to another test
workstation four out of the five winforms worked fine but one doesn't. The
one that doesn't can open the connection and return the server version as
a
test of whether the open worked right. I does. But when you run the
oledbadapter.fill command to fill the dataset it fails. It acts as if it
can't open the server. Further reading shows that the fill command can
actually open a connection on its own if necessary without the open
command.
Is there anything in the environment or SQL Server that could be causing
this
rejection. The SQL Server database was detached, copied, and then
reattached
on the test workstation. SO it should be a duplicate.

Randy


.



Relevant Pages

  • Re: Report to display data from sql serv.
    ... IIF (case statements in SQL Server) scenarios etc. ... then you need to create a Stored Procedure in SQL Server and use that as ... at run time supplying the parameters in code by using the Exec command. ...
    (microsoft.public.access.reports)
  • RE: SBS Sp1 Sharepoint websites doesnt work anymore
    ... Microsoft OLE DB Provider for SQL Server ... main install. ... CSuiteHelpComponentRoot::isSharePointUsingWMSDE The sql command is: SELECT ...
    (microsoft.public.windows.server.sbs)
  • Re: Open and Run SQL Script in Query Analyzer
    ... You need to know the name of the SQL Server and the name of the Instance (if ... If the *.sql file does not specify the database, ... I use the osql command to run queries. ... ' Specify the *.sql file with the query to run. ...
    (microsoft.public.scripting.vbscript)
  • Re: Using a parameter for the filename in an SQL query
    ... it's with SQL Server not letting you do ... You'll need two different command strings, ...
    (microsoft.public.dotnet.framework.adonet)
  • Connecting legacy application to remote instance of SQL 2005 Express
    ... I've just done my first install of SQL 2005 Express and am having ... instance on SQL Express on the remote workstation. ... Set the SQL Server Instance and the SQL Server Broser service to ...
    (microsoft.public.sqlserver.connect)