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 strongm 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: rabinski
  • Order by date
  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
  16. rabinski

    Spreadsheet::WriteExcel help ?

    Sorted .... cheers anyway .... I had the worksheet name within the loop - DOH ! Rab
  17. rabinski

    Spreadsheet::WriteExcel help ?

    Cheers Trojan - The spec has changed slightly - I am running a foreach over a config file - within this I split out the details with another foreach, and then I need to print the details to a spreadheet ... eg - foreach over config file { foreach $entry (@rs) { $var1,$var2 =...
  18. rabinski

    Spreadsheet::WriteExcel help ?

    Hi gurus once again - I am looping throgh a csv with a number of fields splitting on the comma - I need to take one of the fields and make this a tab in a spreadheet (on each iteration)- then add the remaining fields from the csv to the worksheet The problem I have is when I do the foreach...
  19. rabinski

    Parsing query

    Dunc - You are indeed a dude - cheers mate all sorted .... Rab
  20. rabinski

    Parsing query

    Hi gurus - I have an input file like so 10.0.0.1 servername 10.0.0.2 servername2 10.0.0.2 servername2 10.0.0.3 servername3 I am reading in the file and just writing out the Servername to a new output file - But - I only want one entry for servername2 (and any other dupes) in the new file...

Part and Inventory Search

Back
Top