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 TouchToneTommy 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: rtdvoip
  • Content: Threads
  • Order by date
  1. rtdvoip

    Help- function not returning my value- why

    Can someone shed some light on this and tell me why when I do an 'exec rtd_voip_ret' in a query window that I do not get a return value? When I run it ouside the function it works fine. Create Function rtd_voip_ret () Returns varchar(20) as begin Declare @next_id varchar(20) set @next_id =...
  2. rtdvoip

    LDF file management Question

    Hiya Fellas, Can anyone shed some light on how I may backup/delete the LDF data file on my database that has grown to be about 1.4 Gig. I have tried serveral options but no go. Thanks in advance for the help, rtdvoip
  3. rtdvoip

    inserting from 1 sql server onto another

    Hiya fellas, is it possible, and I am somehow sure it is, to do an insert from a sql database on 1 physical server onto another seperate physical server? If so could someone shed some light on how it may be done. Thanks in advance for your help. rtdvoip
  4. rtdvoip

    how can i get only 1 select from a subquery in a function.

    My problem is as follows, My sub query in the update of @rate_hier is returning multiple values. I only need on value returned at a time. If i try to do a simple join i still get multiple values. Any thoughts on how I can get around this? code... [code/] Create Function fn_AtoZ_Prices(...
  5. rtdvoip

    Setting a table for write abilities

    What is the quickest procedure for setting a table to be read-wite? thanks in advance, rtdvoip
  6. rtdvoip

    can I use a global var. in a query with several batches?

    Hiya fellas, Is it possible to set a global variable that will remain until a second batch query is executed... delcar @@var int set @@var = <something> go query.. go query... It says that the var is not declared. Is there some way around this? thanks in advance for your help, rtdvoip
  7. rtdvoip

    How do i update 1 field by using 3 tables?

    hiya fellas, Can anyone help me with this? I need to get current costs into the customer_record table. Three tables 1 - customer_record 2 - Services 3 - traffic Customer_record has a unique pin:voip_id and current_bill Services has: voip_id associated with multiple...
  8. rtdvoip

    Insert Into - can it work faster

    Is there anyway for this to be enhanced so that such a query will run faster in SQL? ----code below---- Insert Into bt_tmp(Clarent_pin, service_code, duration, bill_type, phone_number, start_time, disconnect_reason, extended_reason_code, ip_addr_egress...
  9. rtdvoip

    using MAx

    Is there a way to use MAX in the following situation? I have a string '902124543456' I need to get the closest match in a table with a known index. ex. '902124543456' - compare value table values index prefix 1 90 1 90 1 90212 any thoughts...
  10. rtdvoip

    why is my loop not looping?

    Ok it is late in the day but can someone help? declare @x int, @prefix char(30) declare @breakout_no char(10) set @breakout_no = '19999999' set @prefix = '' set @x = len(@breakout_no) print @prefix while @prefix <> @breakout_no begin print @x set @breakout_no = substring...
  11. rtdvoip

    How can I step through a table.one by one

    Hiya fellas, Is there a way to go through a table step by step. I need to grab a pin number and a duration. Then using those two identifiers I need to access other objects in seperate tables to compute values and return the values to the row associated with the pin and duration I just picked...
  12. rtdvoip

    selecting the nearest match with LIKE or what

    Hiya fellas, Is there a thread out there giving any hint or information on string compares. I need to find the nearest match on some numbers and using it do one other computation. for example : breakno = 1234 next breakno = 12346 using an index (known) and having a number...
  13. rtdvoip

    String manipulation

    hiya fellas, any suggestions on how I may take out some '-' from a phone number using a string function in sql? for example phone_number is '777-777-777' i need it as 777777777 on my version it tells me that ltrim and rtrim only takes one argument. thanks in advance
  14. rtdvoip

    datetime computation

    I have just started learning sql and although I have books a good example is not available for my current question. Please help.... I have a duration of type int in seconds I have a start_time of type datetime how do i compute the end_time of type datetime using the start_time and duration...

Part and Inventory Search

Back
Top