 |
BOOK: Professional SQL Server 2005 Integration Services ISBN: 0-7645-8435-9  | This is the forum to discuss the Wrox book Professional SQL Server 2005 Integration Services by Brian Knight, Allan Mitchell, Darren Green, Douglas Hinson, Kathi Kellenberger, Andy Leonard, Erik Veerman, Jason Gerard, Haidong Ji, Mike Murphy; ISBN: 9780764584350 |
|
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: Professional SQL Server 2005 Integration Services ISBN: 0-7645-8435-9 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|

March 17th, 2006, 10:27 PM
|
Registered User
|
|
Join Date: Mar 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I received the same error, both when I created the package from scratch and also when I used the sample which is downloadable from the site. I was able to get the example to work, but only after forcing the filename out as a resultset. See page 150 where it talks about possible issues and this is given as a possible workaround.
What I did:
- Removed the @ParameterValueVar parameter
- Added a SELECT statement to the stored procedure to return the value as a column named [FileName]
- Removed the @MYVALUE OUTPUT from the SQLStatement
- Changed ResultSet to a single row
- Deleted the parameter mapping
- Created a mapping under Result Set to map FileName to User::MyFile
K. Brian Kelley, MCSE, GSEC(Gold)
Regular Columnist, SQLServerCentral.com and SQL Server Standard Magazine
http://www.sqlservercentral.com/columnists/bkelley/
http://www.truthsolutions.com/
|

April 4th, 2006, 07:17 AM
|
Registered User
|
|
Join Date: Apr 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Mapping the column [FileName] to user::MyFile raised some error saying that mapping by column name in a result set was not supported by this type of connection. Using the column number (0) did the trick... So on the result set tab I mapped the column "Result Name" with value 0 to "Variable Name" user::MyValue
|

May 17th, 2006, 11:06 AM
|
Registered User
|
|
Join Date: May 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
What is taking so long for the publisher to provide a fix for this? We all have been waiting a long time now! Since I live in Indianapolis, I'm going to have to drive up to their office and knock on their front door and personally ask for the fix.
|

May 17th, 2006, 12:58 PM
|
Registered User
|
|
Join Date: May 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Thank you Mr. Kelley,
Your idea was awesome!
Frank in Indy,
P.S. You save me a trip to their publishing facility!! ;)
|

May 25th, 2006, 10:08 AM
|
Registered User
|
|
Join Date: May 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Any Help here from the publisher would be appreciated has this been resolved
JKennedy
|

June 8th, 2006, 07:34 AM
|
Registered User
|
|
Join Date: Jun 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Here is another solution...
In the Execute SQL Task Editor do the following:
1) General -> Change the ConnectionType to OLEDB
2) General -> Change the SQLStatement to EXEC usp_GetConfigParamValue 'MYAPP', 'MYPARM', 'STRING'
3) General -> Change the ResultSet to Single row
4) Parameter Mapping -> Remove all parameter mapping
5) Result Set -> Add a Result Name of MYFILENAME with a Variable Name of User::MyFile
Finally, change the sproc to the following:
ALTER PROC dbo.usp_GetConfigParamValue(
@ApplicationName VARCHAR(30),
@ParameterName VARCHAR(50),
@ParameterTypeName VARCHAR(30)
)
AS
SET NOCOUNT ON
SELECT 'C:\Execute SQL Sample Changed.txt' AS MYFILENAME
SET NOCOUNT OFF
HTH,
Damon
|

July 7th, 2006, 04:42 AM
|
Registered User
|
|
Join Date: Jul 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I have tried all of the above "fixes" and still can't get the SQL Task to execute...##
Chris Boardman
Software Developer
Tribal Group PLC.
|

July 16th, 2006, 09:45 PM
|
Registered User
|
|
Join Date: Jul 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Thank you bkelley and dlherren.
Finally got this to work after changing to OLE DB and following your steps.
Would be interest in how to work with ADO.NET and if there would be any benefits of using this connection type over OLE DB.
pdb
|

October 3rd, 2006, 05:41 AM
|
Registered User
|
|
Join Date: Oct 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
another solution using the datareader
- execute sql task :
calling the stored procedure to get the config-param : exec stp_GetConfigParamValue 'MYAPP','MyParam','String',? output
and use 0 as parameter name in the parameter mapping
(For all connections except ADO.NET, you must use a ?, see BOL)
- data flow from datareader to Flat file destination.
I received errors on the 'flat file connection manager' concerning the connection string witch contained illegal characters.
I solved this by changing the expression to (DT_WSTR, 200)@[User::MyFile]
Hopefully this post saves some time in troubleshooting this exercise.
|

December 15th, 2006, 11:43 AM
|
Authorized User
|
|
Join Date: Dec 2006
Posts: 57
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
SP2 v9.0.3027 resolves the invalid datatype issue when returning a string from a stored procedure into a string parameter using ADO.NET. You now have the ability to assign a 'Parameter Size' in the Parameter mapping dialog.
For the SP2 CTP, visit http://www.microsoft.com/sql/ctp.mspx.
|
|
 |