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!

Recent content by fikir

  1. fikir

    combining three tables into one

    I have three tables tbl1, tbl2 and tbl3, all having employee info declare @tbl1 table (id int name varchar(20) declare @tbl2 table (id int name varchar(20) declare @tbl3 table (id int name varchar(20) insert into @tbl1 select 1, 'John' union all select 2, 'Merry' union all select 3...
  2. fikir

    problem with archiving a text datatype field to text file

    I have a table which two of its fields are text datatype I am trying to archive this table to text file, but because of the size of these fields it is failing it error is 'column x the data source is too large for the buffer' what should I do to solve this problem Thanks
  3. fikir

    appending a file in DTS package

    I am trying to append a file to existing text file in DTS and wrote this VB script '********************************************************************** ' Visual Basic ActiveX Script '************************************************************************ Function Main() Dim oFSO Dim...
  4. fikir

    Picking Row with earliest date for each person

    >> That's why he or she is a manager and not doing the work Nice!!
  5. fikir

    searching column name in databasebase objects

    Thanks you george, but this is returing all the db objects referencing the table though the column is not used there can we do some kind of magic here and restrict the output to those DB objects refering the column Thanks again
  6. fikir

    searching column name in databasebase objects

    hello, I am facing a big problem, I am changig the data type of one of my column from numeric to varchar(100), The conversion is not a problem, I did alter the column to varchar(100) in the table what I want to find is all the names of database objects (procedures, fuctions, views..) where I...
  7. fikir

    order by problem

    thanks
  8. fikir

    order by problem

    declare @tbl table (col varchar(100)) insert into @tbl select '((ABC)+F)' union all select '123' union all select 'ABC+F' union all select 'DEF' union all select 'XYZ' I wrote this query select * from @tbl order by case when left(col, 2) = '((' then 'ABC+F1' end to sort the data I wanted...
  9. fikir

    order by problem

    I have this table and trying to order by [code] declare @tbl table (col varchar(100)) insert into @tbl select '((ABC)+F)' union all select '123' union all select 'ABC+F' union all select 'DEF' union all select 'XYZ' I wrote this query select * from @tbl order by case when left(col, 2) =...
  10. fikir

    top keyword with group by

    One thing is troubling me I have a table delcare @tbl table (depid int, empid int) insert into @tbl select 1, 11 union all select 1, 12 union all select 1, 13 union all select 1, 14 union all select 2, 20 union all select 2, 23 union all select 3, 30 I want to select any top max 2 empid for...
  11. fikir

    get squence of date

    Here is the ** for you Thank you
  12. fikir

    get squence of date

    sql 2000
  13. fikir

    get squence of date

    Alex, Thank you very much for your swift response, I see one problem with this solution check it for this data [code] DECLARE @TBL TABLE (ID INT, VSTARTDATE DATETIME, VENDDATE DATETIME) INSERT INTO @TBL SELECT 1, '01/01/2007', '01/10/2007' UNION ALL SELECT 1, '01/03/2007', '01/17/2007'...
  14. fikir

    get squence of date

    I have this table, with site id, visitstartdate and visitenddate I am trying to get the sequence of visit, and wrote this query DECLARE @TBL TABLE (ID INT, VSTARTDATE DATETIME, VENDDATE DATETIME) INSERT INTO @TBL SELECT 1, '01/01/2007', '01/10/2007' UNION ALL SELECT 1, '01/03/2007'...

Part and Inventory Search

Back
Top