FillSchema works on one machine but not another???

From: Gerry (gerry_at_pairofdocs.net)
Date: 01/07/05


Date: 7 Jan 2005 09:55:49 -0800

I develop my ASP.NET application on a Windows XP (SP2) computer with
MSDE (SP3)
My application server is a Windows 2000 Server (SP3) computer with MS
SQL 2000 (SP3)

My code looks like this:

Dim daRoom As New SqlDataAdapter("Room_Select", myConn)
daRoom.SelectCommand.CommandType = CommandType.StoredProcedure
daRoom.SelectCommand.Parameters.Add("@Action", "All")
daRoom.FillSchema(dsReport, SchemaType.Mapped, "Room")
daRoom.Fill(dsReport, "Room")

My stored procedure is setup like this:

ALTER PROCEDURE dbo.Room_Select
@Action nvarchar(20)
AS
SET NOCOUNT ON

if @Action = 'All'
SELECT *
FROM Room
ORDER BY Room

if @Action = 'ChargedRooms'
SELECT *
FROM Room
WHERE ChargeType <> 'None'
ORDER BY Room
-- couple of more if clauses

I use Red Gate Software SQL comparison tools and have verified that the
table structures, stored procedures, permissions, etc., on both
machines are identical.
I have verified using a file comparison tool that all .aspx, .dll, etc.
files on both machines are identical.
The application on both machines runs as the ASPNET user, and it is
configured the same on both machines.

SO:

Why does this application work perfectly on the development machine,
but on the server, I get:

Table doesn't have a primary key.
when I try doing a dsUsage.Tables("Client").Rows.Find(RoomID)??????



Relevant Pages

  • Re: SMS Administrator Console
    ... my SMS server is also running SQL. ... local admin or even a power user (at least on the 2 machines that are ...
    (microsoft.public.sms.admin)
  • Re: Invalid authorization specification
    ... assume that if it couldn't see the server the message ... >SP3 installs a new version of MDAC so I suppose it's ... doesn't apply to SQL ... >> ownership chaining has to do with accessing a database ...
    (microsoft.public.sqlserver.security)
  • Re: Keine Anmeldung möglich nach SP3
    ... Ich habe auf dem PC nur die MSDE laufen und SP3 ... Es geht keine Authentifizierung mehr, mit SQL und NT nicht! ... >Server und Windows) direkt umstellen. ...
    (microsoft.public.de.sqlserver)
  • Web Server Cant Connect to Sql Server
    ... I have two seperate production machines that I'm trying to get to play ... IIS 6.0 box running as a web server with SQL 2000 Server installed. ... I can write ASP scripts to access the SQL Server but they only work ...
    (comp.databases.ms-sqlserver)
  • RE: Error: SQL server does not exist or access is denied
    ... This was a problem where my application exe could not connect to the SQL ... database on Win2K machines but it worked on XP machines. ... Why doesn't the server respond to pings if there is no firewall. ... >>> the framework and installs it if necessary. ...
    (microsoft.public.dotnet.framework.adonet)