Viewing 15 posts - 16 through 30 (of 30 total)
Okay, I did this:
' Copy each source column to the destination column
DTSDestination("MAID") = DTSSource("Col001")
DTSDestination("Mem_ID") = DTSSource("Col003")
DTSDestination("Ac_Ded_Yr") = DTSSource("Col033")
Function Main()
If DTSDestination("Ac_Ded_Yr") <> DTSSource("Col033") Then
Main = DTSTransformStat_ExceptionRow
Exit function
End If
Main...
February 7, 2008 at 8:26 am
This is what I did.
I created a DTS job per item.
I scheduled the jobs (this create a SQL Server Agent for each DTS job).
Create a new Server Agent.
Open each scheduled...
February 6, 2008 at 12:55 pm
Use work flow task.
right click on data transform item, select work flow properties, select the item to execute next.:D
February 6, 2008 at 10:56 am
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
ALTER view dw_v_IVR_Eligibility as
Select
MC.Document,
Convert(Nchar(14),Replace(MemNo,'*','')) Memno,
Convert(varchar(50),FirstName+' '+LastName) MemName,
Convert(Nchar(8),Replace(CONVERT(NCHAR(10),M.Birth,101),'/','')) DOB,
Convert(Nchar(5),Left(S.Zip,5)) 'Zip',
case
...
January 31, 2008 at 7:17 am
I removed the top 1000 and it worked.
I added abs to insure a positive number.
abs(checksum(newID()))
😉
January 25, 2008 at 11:48 am
After running several test the top 1000... will not work with the query.
The user name and date is being queried, member quired is not one of the 1000 returned therefore,...
January 25, 2008 at 11:21 am
That works also.
I'll use your since!
Thanks!!
January 25, 2008 at 10:46 am
Got it!!!
1. create a view
CREATE VIEW vRandNumber
AS
SELECT RAND() as RandNumber
2. create a udf
CREATE FUNCTION RandNumber()
RETURNS float
AS
BEGIN
RETURN 7 + (SELECT RandNumber FROM vRandNumber) * 113.00
...
January 25, 2008 at 9:20 am
I tried something like this....
cast(rand()*DATEPART(ms,getdate())*300 as int)
.. it creates a number however the numbers are identical.
I need something that creates a unique number. It does not have to be sequencial...
January 25, 2008 at 8:17 am
John, thanks for the quick response.
I do not need to update a table on display data via a view.
More info:
The view will be used by a IVR.
The user will enter...
January 25, 2008 at 7:07 am
How do I flush buffer cache?
What does GUI stand for?
How do I review/see these counters?
Consider these counters when checking buffer cache issues:
SQLServer:Buffer Manager (Free Buffers, Stolen Page Count)
SQLServer:Memory Manager (Memory...
June 8, 2006 at 8:27 am
Viewing 15 posts - 16 through 30 (of 30 total)