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 John Tel 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 rabinski

  1. rabinski

    How to connect to MSsql server using perl

    You can use Win32::ODBC Then create a DSN/Password to connect you to your SQL box - and use that in your perl script .... Hope that helps .... HTH Rab
  2. rabinski

    DTS not updating global variable ?

    Hi gurus - I have a DTS that just does a count on a table , writes the info to a txt file and should then increment the global variable using this ' increment the Global Variable (BatchNumber) DTSGlobalVariables("BatchNumber").value = iBatchNumber + 1 it works fine when I run...
  3. rabinski

    Need to split record set and update ...

    Unfortunately it looks like there have been deletions leaving gaps in the id no's everywhere ... eg a TOP 20 PERCENT gives row 5000 a unique id of 67000 + !
  4. rabinski

    Need to split record set and update ...

    >>Do you have any identity column in the table? yes >> Can you change the structure of the table? no I just need to change one field to this - row 1-5000 field = Batch1 row 5001 - 10,000 field = batch2 etc cheers for the prompt reply
  5. rabinski

    Need to split record set and update ...

    hi gurus I have 25000 rows that need updating (eg first 5000 = batch1,next 5000 = batch 2 etc) What is the best way to do this ? SELECT TOP 20 PERCENT ? or a cursor ... ? any pointers would be most appreciated ... cheers
  6. rabinski

    Looking for a user-interface to see and edit table info

    I like MySQLMan ,browser-based written in perl .... http://gossamer-threads.com/scripts/mysqlman/ but use MySQLCC more ... cheers Rab
  7. rabinski

    Syntax error - help !

    cheers dude !
  8. rabinski

    Syntax error - help !

    update table set id= 55, name = 'jo', name2 = 'smith' where ISNULL(postcode,'none'), LEFT(ContactPostCode,3) IN ('L60','L61','L98','L97') I know it must be obvious ;@) cheers guys !
  9. rabinski

    Date Validation help?

    yeah looking at it now - it is a bit of a read tho ;@) Thought there may be a quicker fix ...
  10. rabinski

    Date Validation help?

    Gurus - I need to strip out invlaid dates (eg leap years etc) - Using this regex at the mo if ($phone_num !~ /^[0-3][0-9]\/[0-1][0-9]\/[1-2][0-9][0-9][0-9]$/) - This will not catch leap years or 39/16/2005 etc ... Any help would be great chaps .... Rab
  11. rabinski

    DTS / ActiveX pointers

    OK gurus - I come from a perl/mysql background but need to get up to speed with VBScript/ActiveX within DTS's etc.. Can any one give me a few links etc ... Just simple stuff for now ... eg just need to read in a file and write out a new one if a certain field is not certain criteria ...
  12. rabinski

    Advice using Spreadsheet:: modules .....?

    cheers fishi Wil let you know next week .... Rab
  13. rabinski

    splitting a file query ....

    Gurus I have a file in this format - field1 field2 I am substituting the spaces for commas and then doing a foreach splitting on the comma - great - But I have just found that the first field can be of differing lengths hence the number of commas inserted will change eg -...
  14. rabinski

    Advice using Spreadsheet:: modules .....?

    Hi again gurus - A more general question this time - Is it feasible to read in 2 spreadsheets (with say Spreadsheet::ParseExcel) and combine the two into one ... Each of the input spreadsheets will only have one worksheet ... I just need to put them both into one ... Any pointers would...
  15. rabinski

    Spreadsheet::WriteExcel help ?

    Cheers Trojan - I will take your points on board ... Rab

Part and Inventory Search

Back
Top