Re: Changed all objects from dbo to non dbo, now cannot send parameters
- From: "aaron.kempf@xxxxxxxxx" <aaron.kempf@xxxxxxxxx>
- Date: 19 Jun 2006 21:53:33 -0700
i fully agree.
use SQL authentication if you have to.
-Aaron
Mary Chipman [MSFT] wrote:
To make life simpler, change the ownership so that everything is owned
by dbo, not the other way around. Otherwise, you will have to fully
qualify all object references and/or will run into broken ownership
chain problems. See Using Ownership Chains in SQLS BOL.
--Mary
On 16 Jun 2006 11:25:37 -0700, diznuts@xxxxxxxxx wrote:
due to some tables not being owned by dbo, i needed to change all other
objects to the same owner. I have since updated the db to do this as
well as the ADP. However, when i run the adp, it fails. For some
reason it fails when either refreshing the stored procedure parameters,
or setting a value to a parameter. Usingthe same login in query
analyzer (or the queries tab in access) i am able to view the correct
results.
Any suggestions?
Dim cmdGetSwitchBoardItems As New ADODB.Command
Dim rst As New ADODB.Recordset
' Set CommandText equal to the stored procedure name.
cmdGetSwitchBoardItems.CommandText = "eID_Admin.spSwitchBoard"
cmdGetSwitchBoardItems.CommandType = adCmdStoredProc
cmdGetSwitchBoardItems.ActiveConnection = CurrentProject.Connection
On Error GoTo errMenu
' Automatically fill in parameter info from stored procedure.
'FAILS HERE
cmdGetSwitchBoardItems.Parameters.Refresh
' Set the param value.
'FAILS HERE
cmdGetSwitchBoardItems.Parameters("@SBValue") = Me.SwitchboardID
' Execute the storedprocedure
Set rst = cmdGetSwitchBoardItems.Execute
.
- References:
- Changed all objects from dbo to non dbo, now cannot send parameters
- From: diznuts
- Re: Changed all objects from dbo to non dbo, now cannot send parameters
- From: Mary Chipman [MSFT]
- Changed all objects from dbo to non dbo, now cannot send parameters
- Prev by Date: Re: adp strengths?
- Next by Date: Re: Access 2002/XP Access Project (ADP) and SQL Server 2005
- Previous by thread: Re: Changed all objects from dbo to non dbo, now cannot send parameters
- Next by thread: Re: Conditional Calculation
- Index(es):
Relevant Pages
|