Viewing 15 posts - 1 through 15 (of 43 total)
I have tried setting nocount and it still is not working. I ran the procedure with sql analyzer and it returned to sets of data the first being empty and...
October 1, 2005 at 5:18 pm
That didn't work.
I have tried moving
IF @rowcount > 0
Return -1
to the end of the insert statement, and it added the data and it also returned -1
July 19, 2005 at 4:02 pm
I have never done that before. Can you give me some advice on where to begin?
June 30, 2005 at 11:43 am
So then on my asp.net page I can just test to see if the value entered into the textbox is greater than 1 and then fire the sp based on...
June 30, 2005 at 11:31 am
There are 214 text boxes on the page.
Let's say I enter values into 5 of the text boxes, then I will need to enter those 5 values in the database
My...
June 30, 2005 at 11:03 am
(
@UserID INT,
@test INT
)
AS
INSERT dbo.MySurvey_Marketing_Skills_User(User_ID, Skill_Rank, Skill_ID )
Values (@UserID, @Test, 97)
I hand keyed the 97 value because I am not sure how that will work on the asp.net page to pass...
June 30, 2005 at 10:44 am
I tried doing my stored procedure the same way you did. I tested it with two text boxes.
cmdSave.Parameters.Add("@test", TextBox1.Text)
cmdSave.Parameters.Add("@test", TextBox2.Text)
but I am given this message
Procedure or function Test has...
June 30, 2005 at 10:36 am
I don't understand your reply. Here is what I have so far for my stored procedure.
(
@UserID Int
)
AS
SELECT User_ID, Position_ID, Company_Name, Position_Title, Start_Date, End_Date
FROM dbo.MySurvey_Positions
WHERE User_ID = @UserID
I need to...
June 23, 2005 at 9:59 pm
I am not a SQL expert so I am not familiar with the method you are talking about. Will it make a big difference in performance?
Declare @Date datetime
Set @Date...
June 22, 2005 at 10:13 am
I check to see if the User_ID exists and if it does then I update the information, and if it doesn't then I add the user's information to the table....
June 22, 2005 at 9:21 am
That worked, thank you. I have been trying to figure it out all day.
June 16, 2005 at 4:14 pm
it tells me "Incorrect syntax near the keyword 'Else'
IF EXISTS(SELECT User_ID FROM dbo.User_Information WHERE User_ID = @UserID)
UPDATE dbo.User_Information SET Salutation = @Salutation, Email_1 = @Email1, Address_1 = @Address1, Address_2 =...
June 16, 2005 at 3:56 pm
Viewing 15 posts - 1 through 15 (of 43 total)