Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling UDF in DTS package
Message
De
11/11/2006 12:39:08
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Import/Export
Divers
Thread ID:
01168936
Message ID:
01168945
Vues:
14
>Hi all.
>
>I am new to SQL Server and have been trying to set up a DTS package that imports data from our Oracle Server to our SQL Server. Using ActiveX transformation all works well until I intoduce a call to a SQL Server UDF I created to handle the extraction of data elements from within a specific input field. My question is "Can one call a UDF from within the VB Script in the DTS ActiveX package? I tried to do this by simply stating...
>
>
>DTSDestination("Location") = UDR.dbo.getLocation(DTSSource("input_field_with_location"))
>
>
>However this fails saying it cannot identify the server. (Can't recall the exact error msg, but that's the gist of it)
>
>The UDF is part of the local SQL database (not the master). I have scoured the message boards on the NET and have yet to find an answer as to whether or not this is doable. If it is, can someone please point me in the proper direction? Of if it is not, please tell me so this way I can stop beating my head against the wall!
>
>Thanks in advance.
>Vince

Vincent,
I have never tried to do that so just making a guess here. If you try and it works please informe me too:)
DTSDestination("Location") = DTSSource("UDR.dbo.getLocation(input_field_with_location)")
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform