Forum Replies Created

Viewing 15 posts - 1 through 15 (of 43 total)

  • RE: simple query

    Worked perfect. Thank you.

  • RE: simple query

    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...

  • RE: date

    I just want the date (1/1/1900) part of the row instead of the date and time (1/1/1900 12:00)

    My statement is a basic SELECT statement

  • RE: stored procedure??

    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

  • RE: and or

    Thank you all!

  • RE: stumped

    I have never done that before. Can you give me some advice on where to begin?

  • RE: stumped

    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...

  • RE: stumped

    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...

  • RE: stumped

    (

    @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...

  • RE: stumped

    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...

  • RE: change type

    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...

  • RE: update in a stored procedure

    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...

  • RE: update in a stored procedure

    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....

  • RE: update in a stored procedure

    That worked, thank you. I have been trying to figure it out all day.

  • RE: update in a stored procedure

    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 =...

Viewing 15 posts - 1 through 15 (of 43 total)