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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: camy123
  • Order by date
  1. camy123

    DTS create filename on the fly

    hi im running a DTs package where i would like to create a excel filename on the fly(using Date) cuurently i just have a default filename and then rename it but it doesnt work ne one know why please Function Main() Dim FileDate Dim DateString Dim FSO Dim File FileDate = Date DateString...
  2. camy123

    comparing two dates

    cheers i was woinderinfg iff there was a datediff version but i suppose that wouldbe much longer.. thank you .
  3. camy123

    comparing two dates

    guys justa quickie here..... how can i compare to dates to find out which one is the most recent using datediff etc .. cheers guys
  4. camy123

    updating

    0 BFB0454B-BB66-4AA6-B183-0D9F8B9743F6 no action taken (0 row(s) affected) (0 row(s) affected) 1 BFB0454B-BB66-4AA6-B183-0D9F8B9743F6 no action taken (0 row(s) affected) (0 row(s) affected) 2 BFB0454B-BB66-4AA6-B183-0D9F8B9743F6 no action taken (0 row(s) affected) (0 row(s) affected)...
  5. camy123

    updating

    nah the same row keeps loooping cuase this statement update dupes set checked = 1 where ' + @mastercolmap + '= @masterv' should update a checked column to 1 so it moves on to the next row but becuase it is not updating the same row keeps coming up . :0(
  6. camy123

    updating

    hi can any one help me please ive written this script to update dynamically but none of the updates work .. does any one know here is the code thanks in advance declare @maxCount int declare @minCount int declare @innerloopmincount int declare @innerloopmaxcount int declare @tablename...
  7. camy123

    dynamic sql update

    here is my actual code ne body see what going wrong the below if the part which is not updating ----- --- update dupes set checked = 1 where ' + @mastercolmap + '= @masterv' -------- the full code is below declare @maxCount int declare @minCount int declare @innerloopmincount int declare...
  8. camy123

    dynamic sql update

    cheers sorry i know that this example does nto warrant Dynamic SQL i couldnt post my whole real code on here so i made a bad example sorry .. and thanks i put in set @i= 0 and it worked. but in my original code i have already instantiated this.. um............
  9. camy123

    dynamic sql update

    hi can some one help me pls ive written a peice of code to update.. using dynamic sql but it wont update ... does ne one know why example code is... declare @sql nvarchar(2345) set @sql = 'declare @i int' + ' while @i < 10' + ' begin' + ' update dupes set checked = 69 where col001 =...
  10. camy123

    creating dymanic variables

    yeh i know but was tryna keep it dynamic with less code... basically tryan be to cleaver for me own good thanks ne hows mate rerally appriciate your time..
  11. camy123

    creating dymanic variables

    ok basically what i would like is to check 32 variables thats ive already declared. I would like to loop through this variables checking there values rather tyhen writing if statements for each variables the variables are called market1..........market32 so my aim was to create a loop example...
  12. camy123

    creating dymanic variables

    i would like to create variables on the fly for example @variable = 'masrket' + i -- i = index value of loop
  13. camy123

    creating dymanic variables

    does any one know how to create dynamic variables
  14. camy123

    bypassign error

    Im not sure of the error to hand but does that mean theres no way to trap the error and allow the script to carry on...if @@error > 16
  15. camy123

    bypassign error

    guys need your help please I have a store procedure runnign via scheduler and sql agent keeps aborting it when it comes to a certain error what i need is to nto allow the script to be aborted even tho there is a error there ne ideas Please
  16. camy123

    how to perform regEx in SQL

    thanks alot mate if i was to do it by looking inanother table(temptable) for example if i stored 12345 34567 the following wont work select col1 from table1 where like (select col1 from table2) ne suggestions.. please and thanks again
  17. camy123

    how to perform regEx in SQL

    thnak you but the fact is i have more then one value then 123 for example i have col1 123456 786543 555555 how can i incorporate the like statement to check all
  18. camy123

    how to perform regEx in SQL

    hi i know you cant do regex in SQL but i ahve the following problem bascially i want to bring out all the values which have the following values in includes in them for example 123456 666555 777888 so that should bring out abc123456 cde666555 efgh777888 can any body help me.
  19. camy123

    sending email with arabic content

    hi can some please help me urgently ive made mwethod ocf creating a mail and sending it it arabic it works when it is sent to a outlook client but when its sent to hotmail its mumble jumble any ideas my code is below Response.ContentEncoding =Encoding.GetEncoding("Windows-1256")...
  20. camy123

    update errror

    guys when i try to update a certain column in a databse table i keep getting this error message any ideas ? please Server: Msg 18750, Level 16, State 4, Procedure upd_F1E69E45D5304681833AD6E92EE73B6B, Line 51 INITCOLVS: The parameter 'nickname' is invalid.

Part and Inventory Search

Back
Top