Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
thermo_ll
Starting Member
1 Post |
Posted - 2010-10-11 : 03:08:15
|
my Old program in running in the SQL 2003 calling a stored procedure using recordset program created from vb6 ... when i migrate to sql 2008 this program giving me an error of "rowset position cannot be started " when im trying to execute movenext command ...but this is working in old SQL serveris there any security i have to configure in the SQL 2008 regarding this issueProgram below Set rsDN = New ADODB.RecordsetWith cmd.ActiveConnection = SoftArcConnect.CommandText = "SAL_Pump_Tx_Print_SELECT".CommandType = adCmdStoredProc.NamedParameters = TrueSet pTxID = .CreateParameter("@TxID", adBigInt, adParamInput).Parameters.Append pTxIDpTxID.Value = dbDeliveryRefNumberrsDN.Open cmd, , adOpenKeyset, adLockOptimisticIf Not rsDN Is Nothing ThenIf rsDN.State = adStateOpen ThenIf rsDN.BOF = False And rsDN.EOF = False ThenrsDN.MoveFirst <--- error came heresCouponNo = rsDN.Fields("CouponNo_Charged")rptDNPrint.Database.SetDataSource rsDN, 3, 1 |
|
russell
Pyro-ma-ni-yak
5072 Posts |
Posted - 2010-10-11 : 09:12:47
|
you don't need that line at all anyway. i'd just comment it out. |
|
|
|
|
|