Thursday, March 29, 2012
Error restore backup (sql2000 on w2000 server)
I want to restore a backup that we did in another
computer, the name is: CPlus.bak, when I click : Restore...
(I used restore 'from device:').. it issues this
message: "Device activation error. The physical file
name "F:\MSSQL\data\CPlus_Data.MDF" may be
incorrect.File 'CPlus_Data' cannot restored
to 'f:\MSSQL\data\CPlus_Data.MDF'...
...
File 'CPlus_Log' cannot be restored
to 'f:\MSSQL\data\CPlus_Log.LDF'....
give us a light!!!
tia,
AnaHi,
The folder F:\MSSQL\data\?exist, what is BOL.
Thanks,
Ana
>--Original Message--
>Does the new computer have the path F:\MSSQL\data\? If
not
>use "restore...with move" which can be found in BOL.
>>--Original Message--
>>Hi,
>>I want to restore a backup that we did in another
>>computer, the name is: CPlus.bak, when I click :
>Restore...
>>(I used restore 'from device:').. it issues this
>>message: "Device activation error. The physical file
>>name "F:\MSSQL\data\CPlus_Data.MDF" may be
>>incorrect.File 'CPlus_Data' cannot restored
>>to 'f:\MSSQL\data\CPlus_Data.MDF'...
>>....
>>File 'CPlus_Log' cannot be restored
>>to 'f:\MSSQL\data\CPlus_Log.LDF'....
>>give us a light!!!
>>tia,
>>Ana
>>.
>.
>|||BOL = Books On Line . It should be found at Start>Programs>Microsoft SQL
Server>Books Online. Type Restore database into the index to find the syntax
for RESTORE DATABASE
--
HTH
Jasper Smith (SQL Server MVP)
I support PASS - the definitive, global
community for SQL Server professionals -
http://www.sqlpass.org
"Ana" <anonymous@.discussions.microsoft.com> wrote in message
news:02d801c3b2ab$1753b760$a101280a@.phx.gbl...
Hi,
The folder F:\MSSQL\data\?exist, what is BOL.
Thanks,
Ana
>--Original Message--
>Does the new computer have the path F:\MSSQL\data\? If
not
>use "restore...with move" which can be found in BOL.
>>--Original Message--
>>Hi,
>>I want to restore a backup that we did in another
>>computer, the name is: CPlus.bak, when I click :
>Restore...
>>(I used restore 'from device:').. it issues this
>>message: "Device activation error. The physical file
>>name "F:\MSSQL\data\CPlus_Data.MDF" may be
>>incorrect.File 'CPlus_Data' cannot restored
>>to 'f:\MSSQL\data\CPlus_Data.MDF'...
>>....
>>File 'CPlus_Log' cannot be restored
>>to 'f:\MSSQL\data\CPlus_Log.LDF'....
>>give us a light!!!
>>tia,
>>Ana
>>.
>.
>|||SQL Server Books Online.
>--Original Message--
>Hi,
>The folder F:\MSSQL\data\?exist, what is BOL.
>Thanks,
>Ana
>>--Original Message--
>>Does the new computer have the path F:\MSSQL\data\? If
>not
>>use "restore...with move" which can be found in BOL.
>>--Original Message--
>>Hi,
>>I want to restore a backup that we did in another
>>computer, the name is: CPlus.bak, when I click :
>>Restore...
>>(I used restore 'from device:').. it issues this
>>message: "Device activation error. The physical file
>>name "F:\MSSQL\data\CPlus_Data.MDF" may be
>>incorrect.File 'CPlus_Data' cannot restored
>>to 'f:\MSSQL\data\CPlus_Data.MDF'...
>>....
>>File 'CPlus_Log' cannot be restored
>>to 'f:\MSSQL\data\CPlus_Log.LDF'....
>>give us a light!!!
>>tia,
>>Ana
>>.
>>.
>.
>|||Does the new computer have the path F:\MSSQL\data\? If not
use "restore...with move" which can be found in BOL.
>--Original Message--
>Hi,
>I want to restore a backup that we did in another
>computer, the name is: CPlus.bak, when I click :
Restore...
>(I used restore 'from device:').. it issues this
>message: "Device activation error. The physical file
>name "F:\MSSQL\data\CPlus_Data.MDF" may be
>incorrect.File 'CPlus_Data' cannot restored
>to 'f:\MSSQL\data\CPlus_Data.MDF'...
>....
>File 'CPlus_Log' cannot be restored
>to 'f:\MSSQL\data\CPlus_Log.LDF'....
>give us a light!!!
>tia,
>Ana
>.
>
Tuesday, March 27, 2012
Error Printing using Adobe
In rs2005 I am trying to print the report to a pdf file - export is not
an option as I cannot embed the fonts. When I click on the print
setting I get the following Adobe error.
Unable to find "Adobe PDF" resource files.
"C:\doc and settings\al users\documents\adobe
pdf\settings\nt\SC_Black-and-White.joboptions"
Do you want to run the installer in repair mode?
Anyone else experience this?
Every other application can print fine even rs2000
thanksanyone?
seanlacey@.gmail.com wrote:
> Hi,
> In rs2005 I am trying to print the report to a pdf file - export is not
> an option as I cannot embed the fonts. When I click on the print
> setting I get the following Adobe error.
> Unable to find "Adobe PDF" resource files.
> "C:\doc and settings\al users\documents\adobe
> pdf\settings\nt\SC_Black-and-White.joboptions"
> Do you want to run the installer in repair mode?
>
> Anyone else experience this?
> Every other application can print fine even rs2000
> thanks
Monday, March 26, 2012
Error opening VSA from Script component and Script Task
TITLE: Microsoft Visual Studio
Cannot show Visual Studio for Applications editor.
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%u00ae+Visual+Studio%u00ae+2005&ProdVer=8.0.50727.42&EvtSrc=Microsoft.DataTransformationServices.DataFlowUI.SR&EvtID=CouldNotShowVsaIDE&LinkId=20476
ADDITIONAL INFORMATION:
Engine returned Unknown Error (Microsoft.VisualBasic.Vsa)
A project with the name 'ScriptComponent_972bfcb1f5ae462081f39130ba1d36b2' already exists.
BUTTONS:
OK
This happened immediately AFTER installing Visual Studio 2005. SQL Serve Workstation tools were already installed. I am running Windows XP SP2.
Anyway have any words of wisdon as to what the problem may be or how to investigate fix it?
Thanks
Jamie
Ignore this. Rebooting has solved it!!!
-Jamie
|||
Jamie,
I've got similar message which is persistent. I cannot open any script task anymore
Error message "Cannot show the editor for this task. Specified cast is not valid (Microsoft.VisualBasic.Vsa.DT)" pops up.
I even retried re-installing VS 2005. Did not resolved the issue.
Any idea?
Gulden
|||Try to upgrade your machine with the cumulative hotfix package (build 2153) for SQL Server 2005.
Regards,
Yitzhak
|||
Yitzak,
Thank you for your answer.
I am getting "This machine does not have a product that matches this installation package"
on the first one in x86 group.
Do you have any idea?
This is my only chance.
I've re-installed SQL Server 2005 and Visual Studio 2005. Still cannot open the scripts.
Gulden
|||Even betterjust exit out of VS2005 and go back in. That solved it for me.
Jeff
|||In my case they had pushed DLLs in 600 people's banded machines in my company including vbscript.dll etc. by mistake. They resolved it by re-registering them
Gulden
|||You need to install SP1 for MS SQL Server 2005 as a prerequisite before you will be able to upgrade your machine with the cumulative hotfix package (build 2153) for SQL Server 2005. SO it is a 2 steps process.
Regards,
Yitzhak
Error opening VSA from Script component and Script Task
TITLE: Microsoft Visual Studio
Cannot show Visual Studio for Applications editor.
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%u00ae+Visual+Studio%u00ae+2005&ProdVer=8.0.50727.42&EvtSrc=Microsoft.DataTransformationServices.DataFlowUI.SR&EvtID=CouldNotShowVsaIDE&LinkId=20476
ADDITIONAL INFORMATION:
Engine returned Unknown Error (Microsoft.VisualBasic.Vsa)
A project with the name 'ScriptComponent_972bfcb1f5ae462081f39130ba1d36b2' already exists.
BUTTONS:
OK
This happened immediately AFTER installing Visual Studio 2005. SQL Serve Workstation tools were already installed. I am running Windows XP SP2.
Anyway have any words of wisdon as to what the problem may be or how to investigate fix it?
Thanks
Jamie
Ignore this. Rebooting has solved it!!!
-Jamie
|||
Jamie,
I've got similar message which is persistent. I cannot open any script task anymore
Error message "Cannot show the editor for this task. Specified cast is not valid (Microsoft.VisualBasic.Vsa.DT)" pops up.
I even retried re-installing VS 2005. Did not resolved the issue.
Any idea?
Gulden
|||Try to upgrade your machine with the cumulative hotfix package (build 2153) for SQL Server 2005.
Regards,
Yitzhak
|||
Yitzak,
Thank you for your answer.
I am getting "This machine does not have a product that matches this installation package"
on the first one in x86 group.
Do you have any idea?
This is my only chance.
I've re-installed SQL Server 2005 and Visual Studio 2005. Still cannot open the scripts.
Gulden
|||Even betterjust exit out of VS2005 and go back in. That solved it for me.
Jeff
|||In my case they had pushed DLLs in 600 people's banded machines in my company including vbscript.dll etc. by mistake. They resolved it by re-registering them
Gulden
|||You need to install SP1 for MS SQL Server 2005 as a prerequisite before you will be able to upgrade your machine with the cumulative hotfix package (build 2153) for SQL Server 2005. SO it is a 2 steps process.
Regards,
Yitzhak
Error opening VSA from Script component and Script Task
TITLE: Microsoft Visual Studio
Cannot show Visual Studio for Applications editor.
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%u00ae+Visual+Studio%u00ae+2005&ProdVer=8.0.50727.42&EvtSrc=Microsoft.DataTransformationServices.DataFlowUI.SR&EvtID=CouldNotShowVsaIDE&LinkId=20476
ADDITIONAL INFORMATION:
Engine returned Unknown Error (Microsoft.VisualBasic.Vsa)
A project with the name 'ScriptComponent_972bfcb1f5ae462081f39130ba1d36b2' already exists.
BUTTONS:
OK
This happened immediately AFTER installing Visual Studio 2005. SQL Serve Workstation tools were already installed. I am running Windows XP SP2.
Anyway have any words of wisdon as to what the problem may be or how to investigate fix it?
Thanks
Jamie
Ignore this. Rebooting has solved it!!!
-Jamie
|||
Jamie,
I've got similar message which is persistent. I cannot open any script task anymore
Error message "Cannot show the editor for this task. Specified cast is not valid (Microsoft.VisualBasic.Vsa.DT)" pops up.
I even retried re-installing VS 2005. Did not resolved the issue.
Any idea?
Gulden
|||Try to upgrade your machine with the cumulative hotfix package (build 2153) for SQL Server 2005.
Regards,
Yitzhak
|||
Yitzak,
Thank you for your answer.
I am getting "This machine does not have a product that matches this installation package"
on the first one in x86 group.
Do you have any idea?
This is my only chance.
I've re-installed SQL Server 2005 and Visual Studio 2005. Still cannot open the scripts.
Gulden
|||Even betterjust exit out of VS2005 and go back in. That solved it for me.
Jeff
|||In my case they had pushed DLLs in 600 people's banded machines in my company including vbscript.dll etc. by mistake. They resolved it by re-registering them
Gulden
|||You need to install SP1 for MS SQL Server 2005 as a prerequisite before you will be able to upgrade your machine with the cumulative hotfix package (build 2153) for SQL Server 2005. SO it is a 2 steps process.
Regards,
Yitzhak
Wednesday, March 21, 2012
error on Mining Accuracy Tab
I have installed SP2 for SQL server 2005, i just want to try datamining like in the tutorial, i found error if i click "Mining Accuracy Chart" for comparing model with error
"TITLE: Microsoft Visual Studio
An error prevented the view from loading.
ADDITIONAL INFORMATION:
Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) (System.Windows.Forms)
"
any body can help.
thanks
Hello,
Do you have visual studio installed in the system? Did your .NET framework installation was successfull? Check in your system if you have System.Windows.Forms.dll. If your Microsoft .NET framework / Microsoft Visual Studio installation is not successful you might hit this issue. Try installing the .NET framework and see if works.
Thanks
|||Hi,
I have the same problem. Visual Studio 2005 is correctly installed on the machine. Notice that I have installed the framework 3.0. Could it be a reason ?
Philippe
error on Mining Accuracy Tab
I have installed SP2 for SQL server 2005, i just want to try datamining like in the tutorial, i found error if i click "Mining Accuracy Chart" for comparing model with error
"TITLE: Microsoft Visual Studio
An error prevented the view from loading.
ADDITIONAL INFORMATION:
Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) (System.Windows.Forms)
"
any body can help.
thanks
Hello,
Do you have visual studio installed in the system? Did your .NET framework installation was successfull? Check in your system if you have System.Windows.Forms.dll. If your Microsoft .NET framework / Microsoft Visual Studio installation is not successful you might hit this issue. Try installing the .NET framework and see if works.
Thanks
|||Hi,
I have the same problem. Visual Studio 2005 is correctly installed on the machine. Notice that I have installed the framework 3.0. Could it be a reason ?
Philippe
Monday, March 19, 2012
ERROR on atach MDF file!
Code Snippet
TITLE: Microsoft SQL Server Management Studio
Attach database failed for Server 'MS-DB'. (Microsoft.SqlServer.Smo)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=9.00.1399.00&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Attach+database+Server&LinkId=20476
ADDITIONAL INFORMATION:
An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
Could not redo log record (805:390:13), for transaction ID (0:55765), on page (1:1061), database 'aws' (database ID 5). Page: LSN = (804:451:25), type = 2. Log: OpCode = 2, context 3, PrevPageLSN: (805:150:13). Restore from a backup of the database, or repair the database.
During redoing of a logged operation in database 'aws', an error occurred at log record ID (805:390:13). Typically, the specific failure is previously logged as an error in the Windows Event Log service. Restore the database from a full backup, or repair the database.
Could not open new database 'aws'. CREATE DATABASE is aborted. (Microsoft SQL Server, Error: 3456)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=3456&LinkId=20476
BUTTONS:
OK
HELP ME!!try to attach only the mdf file of your database.
run a command like this :
create database yourdb on (name =yourdb, filename='C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\yourmdffile.mdf') for attach
If it doesn't work do what your message say
|||Don't work...
The message....
Code Snippet
Msg 1813, Level 16, State 2, Line 1
Could not open new database 'aws'. CREATE DATABASE is aborted.
Msg 3456, Level 21, State 1, Line 1
Could not redo log record (805:390:13), for transaction ID (0:55765), on page (1:1061), database 'aws' (database ID 5). Page: LSN = (804:451:25), type = 2. Log: OpCode = 2, context 3, PrevPageLSN: (805:150:13). Restore from a backup of the database, or repair the database.
Msg 3313, Level 21, State 2, Line 1
During redoing of a logged operation in database 'aws', an error occurred at log record ID (805:390:13). Typically, the specific failure is previously logged as an error in the Windows Event Log service. Restore the database from a full backup, or repair the database.
|||A last try :
when i said to attach only the mdf file i thaught to following thing:
don't use the log file when making the operation of attaching (put only de mdf file in the folder); so , SQL should recreate the log file.
|||Ok,
I try this...
and
Code Snippet
File activation failure. The physical file name "c:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\aws_log.ldf" may be incorrect.
The log cannot be rebuilt because the database was not cleanly shut down.
Msg 1813, Level 16, State 2, Line 1
Could not open new database 'aws'. CREATE DATABASE is aborted.
|||If you have not a backup try to recover with third party. It say :
"Selective recovery means repairing only those transactions and objects that are damaged" Maybe they can help you.
To the other part you have to review the procedures of using servers in your organization (using UPS etc) because "the database was not cleanly shutdown"
|||As your db was not cleanly shut down you can perform as below
(a) Create a database with the same name in another directory as the one you're trying to attach
(b) Re-create all filesgroups and files as necessary
(c) Shutdown the server
(d) Swap in the old mdf file and any ndf files
(e) Bring up the server and let the database attempt to be recovered and then go into suspect
(f) Put the database in single-user mode.
(g) Run DBCC CHECKDB (dbname, REPAIR_ALLOW_DATA_LOSS) which will rebuild the log and run full repair
(h) Return database to online, multi-user mode.
As your db was not cleanly shut down you can perform as below
ok(a) Create a database with the same name in another directory as the one you're trying to attach
ok(b) Re-create all filesgroups and files as necessary
ok(c) Shutdown the server
ok(d) Swap in the old mdf file and any ndf files
ok(e) Bring up the server and let the database attempt to be recovered and then go into suspect
(f) Put the database in single-user mode.
Well
I cant put the database in single-user mode, i receive this message whend i did this commands...
Commands:
Use aws
go
sp_dboption 'aws', 'dbo use only', false
go
sp_dboption 'aws','single_user', true
go
dbcc checkdb ('aws',repair_allow_data_loss)
aws is my DB
Message:
Msg 926, Level 14, State 1, Line 1
Database 'aws' cannot be opened. It has been marked SUSPECT by recovery. See the SQL Server errorlog for more information.
Msg 926, Level 14, State 1, Line 1
Database 'aws' cannot be opened. It has been marked SUSPECT by recovery. See the SQL Server errorlog for more information.
Msg 5069, Level 16, State 1, Line 1
ALTER DATABASE statement failed.
sp_dboption command failed.
Msg 3456, Level 21, State 1, Line 1
Could not redo log record (805:390:13), for transaction ID (0:55765), on page (1:1061), database 'aws' (database ID 5). Page: LSN = (804:451:25), type = 2. Log: OpCode = 2, context 3, PrevPageLSN: (805:150:13). Restore from a backup of the database, or repair the database.
Msg 3313, Level 21, State 2, Line 1
During redoing of a logged operation in database 'aws', an error occurred at log record ID (805:390:13). Typically, the specific failure is previously logged as an error in the Windows Event Log service. Restore the database from a full backup, or repair the database.
Msg 3414, Level 21, State 1, Line 1
An error occurred during recovery, preventing the database 'aws' (database ID 5) from restarting. Diagnose the recovery errors and fix them, or restore from a known good backup. If errors are not corrected or expected, contact Technical Support.
===================
Then i put the server in Single User mode and execute the command below: ( -m -c )
DBCC CHECKDB (aws, REPAIR_ALLOW_DATA_LOSS)
and receive this message:
Msg 926, Level 14, State 1, Line 1
Database 'aws' cannot be opened. It has been marked SUSPECT by recovery. See the SQL Server errorlog for more information.
======
Well
The DB was atach again, but i cant recovery the data =(
Wednesday, March 7, 2012
Error Message: Must declare variable @ID
I'm having trouble with a datalist. The default view is the Item Template which has an Edit button. When I click the Edit button, I run the following code (for the EditCommand of the Datalist):
DataList1.EditItemIndex = e.Item.ItemIndex
DataBind()
It errors out with the message "Must declare variable @.ID".
I've used this process on other pages without problem.
The primary key for the recordsource that populates this datalist is a field named "AutoID". There is another field named ID that ties these records to a master table. The list of rows returned in the datalist is based off the ID field matching a value in a dropdown list on the page (outside of the datalist). So my SQLdatasource has a parameter to match the ID field to @.ID. For some reason, it's not finding it and I cannot determine why. I haven't had this issue on other pages.
Here's my markup of the SQLDataSource and the Datalist/Edit Template:
<asp:SqlDataSourceID="SqlDataSource4"runat="server"ConnectionString="<%$ ConnectionStrings:SMARTConnectionString%>"
DeleteCommand="DELETE FROM [tblSalesSupport] WHERE [NBID] = @.NBID"
InsertCommand="INSERT INTO [tblSalesSupport] ([ID], [NBNC], [NBEC], [Description], [Estimate], [CompanyID], [CompanyName], [ProjectNumber]) VALUES (@.ID, @.NBNC, @.NBEC, @.Description, @.Estimate, @.CompanyID, @.CompanyName, @.ProjectNumber)"
SelectCommand="SELECT * FROM [tblSalesSupport] WHERE ([ID] = @.ID)"
UpdateCommand="UPDATE [tblSalesSupport] SET [ID] = @.ID, [NBNC] = @.NBNC, [NBEC] = @.NBEC, [Description] = @.Description, [Estimate] = @.Estimate, [CompanyID] = @.CompanyID, [CompanyName] = @.CompanyName, [ProjectNumber] = @.ProjectNumber WHERE [NBID] = @.NBID">
<DeleteParameters>
<asp:ParameterName="NBID"Type="Int32"/>
</DeleteParameters>
<UpdateParameters>
<asp:ParameterName="ID"Type="Int32"/>
<asp:ParameterName="NBNC"Type="Boolean"/>
<asp:ParameterName="NBEC"Type="Boolean"/>
<asp:ParameterName="Description"Type="String"/>
<asp:ParameterName="Estimate"Type="Decimal"/>
<asp:ParameterName="CompanyID"Type="Int32"/>
<asp:ParameterName="CompanyName"Type="String"/>
<asp:ParameterName="ProjectNumber"Type="String"/>
<asp:ParameterName="NBID"Type="Int32"/>
</UpdateParameters>
<SelectParameters>
<asp:ControlParameterControlID="ddlFind"Name="ID"PropertyName="SelectedValue"Type="Int32"/>
</SelectParameters>
<InsertParameters>
<asp:ParameterName="ID"Type="Int32"/>
<asp:ParameterName="NBNC"Type="Boolean"/>
<asp:ParameterName="NBEC"Type="Boolean"/>
<asp:ParameterName="Description"Type="String"/>
<asp:ParameterName="Estimate"Type="Decimal"/>
<asp:ParameterName="CompanyID"Type="Int32"/>
<asp:ParameterName="CompanyName"Type="String"/>
<asp:ParameterName="ProjectNumber"Type="String"/>
</InsertParameters>
</asp:SqlDataSource>
<asp:DataListCssClass="MainFormDisplay"ID="DataList1"runat="server"DataKeyField="NBID"DataSourceID="SqlDataSource1"width="100%">
<HeaderTemplate>….</HeaderTemplate>
<ItemTemplate>….</ItemTemplate>
<EditItemTemplate>
<tableborder="0" style="width: 100%">
<trclass="MainFormDisplay" valign="top">
<tdcolspan="8">
<asp:TextBoxID="txtNBID"runat="server"Text='<%# Eval("NBID")%>'Visible="true"></asp:TextBox>
<asp:TextBoxID="txtID"runat="server"Text='<%# Bind("ID")%>'Visible="True"></asp:TextBox></td>
</tr>
<trclass="MainFormDisplay">
<tdvalign="top"style="width: 100px"><asp:CheckboxID="chkNBNC"runat="server"Checked='<%# Bind("NBNC")%>'/></td>
<tdstyle="width: 100"><asp:CheckBoxID="chkNBEC"runat="server"Checked='<%# Bind("NBEC")%>'Width="100px"/></td>
<tdstyle="width: 100px"><asp:TextBoxID="txtCompanyName"runat="server"Text='<%# Bind("CompanyName")%>'Width="100px"></asp:TextBox></td>
<tdstyle="width: 100px"><asp:TextBoxID="txtProjectNumber"runat="server"Text='<%# Bind("ProjectNumber")%>'Width="100px"></asp:TextBox></td>
<tdstyle="width: 100px"><asp:TextBoxID="txtDescription"runat="server"Text='<%# Bind("Description")%>'Width="100px"></asp:TextBox></td>
<tdstyle="width: 100px"><asp:TextBoxID="txtEstimate"runat="server"Text='<%# Bind("Estimate","{0:N2}")%>'Width="100px"></asp:TextBox></td>
<tdstyle="width: 55px"><asp:CheckBoxID="ckDeleteFlag"runat="server"/></td>
<tdstyle="width: 100px"><asp:ButtonID="ItemSaveButton"runat="server"CommandName="Update"Text="Save"/>
<asp:ButtonID="ItemCancelButton"runat="server"CommandName="Cancel"Text="Cancel"/></td>
</tr>
</table>
</EditItemTemplate>
</asp:DataList><br/>
You need to replace
<asp:ParameterName="ID"Type="Int32"/>
in your UpdateParameters with
<asp:ControlParameterControlID="ddlFind"Name="ID"PropertyName="SelectedValue"Type="Int32"/>
|||Thank you very much for your reply. I have tried this though and I still get the same error.
I believe it's because it's not running the UpdateCommand at all at this point. When I click the Edit button, it simply flips it from ItemTemplate to EditTemplate, passing the index of the row that the user click on so that while in EditTemplate mode, the user can make changes to data, click save and update. The code that runs when the Edit button is clicked is the following: (This
Protected Sub DataList1_EditCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataListCommandEventArgs) Handles DataList1.EditCommand
DataList1.EditItemIndex = e.Item.ItemIndex
DataBind()
End Sub