Viewing 15 posts - 10,966 through 10,980 (of 26,487 total)
Bill Talada (6/29/2012)
June 29, 2012 at 1:05 pm
rjbirkett (6/29/2012)
So,...
June 29, 2012 at 1:03 pm
Scalar UDF's introduce RBAR code. This function has to be called for each record. Post the code for the query and the function. It may be possibile...
June 29, 2012 at 12:57 pm
I think this is as far as I go for now. You need to review everything provided and work through it so you understand what is going on with...
June 29, 2012 at 12:54 pm
Violating my own statements here, added conversion steps on the datetime columns directly to the code. Run this and check the output.
with SampleData as (
select * from (VALUES (
'|CALL_END...
June 29, 2012 at 12:52 pm
If others write all your code, how do you plan on supporting it if something goes wrong? Lowell is right, you need to start doing this and then asking...
June 29, 2012 at 12:38 pm
Step one.
Run the following code, after ensuring you have the delimited split routine I call created. Look at the data returned, does this look correct so far?
with SampleData as...
June 29, 2012 at 12:27 pm
rjbirkett (6/29/2012)
June 29, 2012 at 12:20 pm
dsh_roy (6/29/2012)
I am running the following piece of code in on DatabaseA and also on DatabaseB.
DECLARE @MaxLoadKey int,
...
June 29, 2012 at 12:08 pm
Also, is there a reason to separate the date and time into seperate columns? You may want to keep the date and time together as a datetime data type.
June 29, 2012 at 12:06 pm
rjbirkett (6/29/2012)
Clumn names are here for the working dbo_CDR table I'm using now.
[call_status]
,[channel_num]
,[sipcall_ident]
...
June 29, 2012 at 12:04 pm
rjbirkett (6/29/2012)
June 29, 2012 at 12:01 pm
Hopefully this helps a little bit.
This is the delimited split routine used in the code that follows:
USE [SandBox]
GO
/****** Object: UserDefinedFunction [dbo].[DelimitedSplit8K] Script Date: 06/29/2012 11:53:50 ******/
IF...
June 29, 2012 at 11:57 am
I could also use the column names you want these put into. Initially, I would look at just doing it to a table where all the columns are defined...
June 29, 2012 at 11:38 am
So you imported the data as a single column of text instead of spliting it by the column deliminator (|). Each row has the same number of columns, correct?...
June 29, 2012 at 11:35 am
Viewing 15 posts - 10,966 through 10,980 (of 26,487 total)