Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by CompCodeBoy

  1. CompCodeBoy

    Adding Rows dynamically to a Gridview

    This is the problem: I got an "ADD ROW" button and a gridview. Click the "ADD ROW" button and a new gridview row is inserted with the first column as a template textbox. If I type anything in the textbox and then hit "ADD ROW" button, the textbox values are lost. What can I do to retain those...
  2. CompCodeBoy

    Passing variable number of parameters to a web service method

    I changed the name and still does not work. I still get the same error. The example in the article worked if the method is not in a web service.
  3. CompCodeBoy

    Passing variable number of parameters to a web service method

    flat2,(works if not a web service method) I get the following error: "No overload for method 'ShowErrors' takes '3' arguments." 'ShowErrors' is the web service method. What am I doing wrong?
  4. CompCodeBoy

    Passing variable number of parameters to a web service method

    I want to create web service. I need to call a method and pass any number of parameters. That is, call a method (function) and pass one argument, two arguments up to 200. I tried to declare the parameters in the web service method as objects and call that method from a client application passing...
  5. CompCodeBoy

    calendar date to Julian date

    passing calendar date to a stored procedure and I'm trying to convert it to a Julian date. Any help?
  6. CompCodeBoy

    using TOP in dynamic SQL

    I'm using SQL 2005. That's good to know. Thanks
  7. CompCodeBoy

    using TOP in dynamic SQL

    Thanks a bunch for both of you. Both worked!
  8. CompCodeBoy

    using TOP in dynamic SQL

    Declare @number int set @number=10 DECLARE @strSQL varchar(1200) set @strSQL = ' select top ('+ @number + ') account from contact' EXEC(@strSQL) The error I get is : Conversion failed when converting the varchar value ' select top (' to data type int. Any help would be appreciated
  9. CompCodeBoy

    CASE STATEMENT

    Thanks, George. That'll work.
  10. CompCodeBoy

    CASE STATEMENT

    I have an input parameter in a stored procedure "@TicketNumber BigInt". I need to check the length of the parameter. If the length is 18, then all is fine. If the length is 17 then I need to append a '0' to the beginning of the parameter. If the length is 16, then append '00' and so on ... What...
  11. CompCodeBoy

    Scheduling a job in SQL server

    Thanks, guys. Rob, you wrote in the jobstep Declare @firstParam int,@nextParam varchar(100) Select @firstparam=SomeIntCol,@nextParam=SomeVarcharFiled From WhatEverYourTableIsCalled Where SomeCol=SomeVal --Now call the proc execute usp_SomeProc @firstParam,@nextParam etc.... works great. But...
  12. CompCodeBoy

    Scheduling a job in SQL server

    Thanks, guys. But where do I add the sp_add_jobschedule procedure so that it runs? I believe I have to do something like that: EXEC sp_add_jobschedule @job_name = 'test', @name = 'Schedule_test', @freq_type = 4, -- daily @freq_interval = 1, @active_start_time = '11:00:00'...
  13. CompCodeBoy

    Scheduling a job in SQL server

    Programmatically, can you set the job to run at a specific time? Basically, the user will decide if he/she wants to schedule the job daily, weekly, etc... I'll get the user input through a windows application and this input will be saved in SQL. Now I need to be able to get this input from the...
  14. CompCodeBoy

    Scheduling a job in SQL server

    Hey Rob, Is there a way I can schedule running the job dynamically (by passing parameters containing schedule time based on input I receive from the user)

Part and Inventory Search

Back
Top