15,799,363 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Python questions
View PHP questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by bapu2889 (Top 4 by date)
bapu2889
5-Jul-10 11:28am
View
hi sandeep
yes i have tried but still it's same when i run the apps it runs fine and also shows saved data in to listview because in this app i also have listview control to retrive data from database. so when i saved data it shows into listview contorl but when i check into database nothing shows there
thanks for your rep.
bapu2889
4-Jul-10 12:42pm
View
hello again
i have also tried this
ALTER PROCEDURE dbo.NewInsertCommand
(
@FirstName nvarchar(25),
@LastName nvarchar(25),
@City nvarchar(50),
@State nvarchar(50)
)
AS
SET NOCOUNT ON;
DECLARE @UserID int;
INSERT INTO [UserData] ([FirstName], [LastName]) VALUES (@FirstName, @LastName);
SET @UserID = SCOPE_IDENTITY();
INSERT INTO [Location] (City,State,UserID)
VALUES (@City, @State, @UserID);
but still no luck
bapu2889
4-Jul-10 12:31pm
View
hello mark
thanks for your rep.
could you please tell me how to use scope_identity
waiting for your kind rep.
thanks
bapu2889
4-Jul-10 7:09am
View
hello thanks for your rep.
yes but to be very honest i dont know what to check.
but it's taking all the strings from textbox and then run ExecuteNonQuery and it displays item saved message box so could you please tell me what should i check
waiting for your kind help
thanks