Hi,
I am trying to get an output from an SQL update command to appear on my VB.NET form but at the moment I am very much at the basics and have one question please..
Example: Lets say I have the following table (tblUsers), it has 2 fields and the current data looks like this:
UserName, Password
John, sex
Paul, drugs
Ringo, rock
George, roll
lets say I want to change everyones password to 'NewPassword'. How do I write an update command so that when it has finished I have the following messages:
John - Update Successful
Paul - Update Successful
Ringo - Update Successful
George - Update Successful
Basically I want to be able to show my user(s) which people have been updated. I know you need to put 'PRINT' somewhere in the code but that is as far as my knowledge stretches.
Would someone mind showing me how please?
Thanks
John
.NET 2.0, Visual Studio 2005, SQL Server 2005 Express
I am trying to get an output from an SQL update command to appear on my VB.NET form but at the moment I am very much at the basics and have one question please..
Example: Lets say I have the following table (tblUsers), it has 2 fields and the current data looks like this:
UserName, Password
John, sex
Paul, drugs
Ringo, rock
George, roll
lets say I want to change everyones password to 'NewPassword'. How do I write an update command so that when it has finished I have the following messages:
John - Update Successful
Paul - Update Successful
Ringo - Update Successful
George - Update Successful
Basically I want to be able to show my user(s) which people have been updated. I know you need to put 'PRINT' somewhere in the code but that is as far as my knowledge stretches.
Would someone mind showing me how please?
Thanks
John
.NET 2.0, Visual Studio 2005, SQL Server 2005 Express