SQL Server 2008 Execute SQL Task parameter problem
hi, guys
i create a very simply package which only Execute SQL task, set the properties as:
the testing table structure:
create table t(
idx int,
cname varchar(60)
Execute SQL Task setting:
[genaral]
ResultSet: None
ConnectionType: Ado.net
connection:LocalHost.APR11.sa1
SQLsourceType:Direct input
SQLStatement:delete from t where idx=?
[parameter mapping]
variable name: user::idx
direction: input
data type: Int32
parameter name:NewParameterName
parameter size:-1
i hardcode the idx=1, but get error:
SSIS package "test.dtsx" starting.
Error: 0xC002F210 at Execute SQL Task, Execute SQL Task: Executing the query "delete from t where idx=?" failed with the following error: "Parameter name is unrecognized.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
Task failed: Execute SQL Task
SSIS package "test.dtsx" finished: Success.
help me please.
Regards.
Hello,
Here you go
http://decipherinfosys.wordpress.com/2008/03/26/running-parameterized-sql-commands-using-the-execute-sql-task-i/
http://technet.microsoft.com/en-us/library/ms140355.aspx
if you use ADO.NET then the way Execute SQL task take parameter is different then "?".... you have to use @paramter.. Please check the above link
Thanks
http://sqlage.blogspot.com/
Similar Messages
-
SQL Server 2008 Service Pack 1 installation problem
I am using Windows 7.
Today I saw "Microsoft SQL Server 2008 Service Pack 1 (KB968369)" as an optional update in the updates list. I've tried to intstall it but it failed with Code CF2E222F. I found nothing about this code on the internet.
I've also tried to install the sp manually. I've downloaded it an tried to install. But it also failed.
SQL Server Setup has encountered the following error: C:\Windows\Installer\9bcac.msi.
Any suggestions?Here's the summary:
Overall summary:
Final result: The patch installer has failed to update the shared features. To determine the reason for failure, review the log files.
Exit code (Decimal): -819060177
Exit facility code: 1838
Exit error code: 8751
Exit message: C:\Windows\Installer\9bcac.msi
Start time: 2010-04-28 10:10:14
End time: 2010-04-28 10:11:02
Requested action: Patch
Log with failure: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20100428_100952\Detail.txt
Exception help link: http%3a%2f%2fgo.microsoft.com%2ffwlink%3fLinkId%3d20476%26ProdName%3dMicrosoft%2bSQL%2bServer%26EvtSrc%3dsetup.rll%26EvtID%3d50000%26ProdVer%3d10.0.2531.0%26EvtType%3d0x4C9229A1%400x2FCB8C55
Machine Properties:
Machine name: MACHINE_NAME
Machine processor count: 4
OS version: Windows Vista
OS service pack:
OS region: Türkiye
OS language: English (United States)
OS architecture: x86
Process architecture: 32 Bit
OS clustered: No
Product features discovered:
Product Instance Instance ID Feature Language Edition Version Clustered
Sql Server 2008 MSSQLSERVER MSSQL10.MSSQLSERVER Database Engine Services 1033 Developer Edition 10.1.2531.0 No
Sql Server 2008 MSSQLSERVER MSSQL10.MSSQLSERVER SQL Server Replication 1033 Developer Edition 10.1.2531.0 No
Sql Server 2008 MSSQLSERVER MSSQL10.MSSQLSERVER Full-Text Search 1033 Developer Edition 10.0.1600.22 No
Sql Server 2008 MSSQLSERVER MSAS10.MSSQLSERVER Analysis Services 1033 Developer Edition 10.1.2531.0 No
Sql Server 2008 MSSQLSERVER MSRS10.MSSQLSERVER Reporting Services 1033 Developer Edition 10.1.2531.0 No
Sql Server 2008 RETAILSTORE MSSQL10.RETAILSTORE Database Engine Services 1033 Developer Edition 10.0.1600.22 No
Sql Server 2008 SQLEXPRESS MSSQL10.SQLEXPRESS Database Engine Services 1033 Express Edition 10.1.2531.0 No
Sql Server 2008 SQLEXPRESS MSSQL10.SQLEXPRESS SQL Server Replication 1033 Express Edition 10.1.2531.0 No
Sql Server 2008 Management Tools - Basic 1033 Developer Edition 10.1.2531.0 No
Sql Server 2008 Management Tools - Complete 1033 Developer Edition 10.1.2531.0 No
Sql Server 2008 Client Tools Connectivity 1033 Developer Edition 10.1.2531.0 No
Sql Server 2008 Client Tools Backwards Compatibility 1033 Developer Edition 10.1.2531.0 No
Sql Server 2008 Client Tools SDK 1033 Developer Edition 10.1.2531.0 No
Sql Server 2008 Integration Services 1033 Developer Edition 10.1.2531.0 No
Package properties:
Description: SQL Server Database Services 2008
SQLProductFamilyCode: {628F8F38-600E-493D-9946-F4178F20A8A9}
ProductName: SQL2008
Type: RTM
Version: 10
SPLevel: 1
KBArticle: KB968369
KBArticleHyperlink: http://support.microsoft.com/?kbid=968369
PatchType: SP
AssociateHotfixBuild: 0
Platform: x86
PatchLevel: 10.1.2531.0
ProductVersion: 10.0.1600.22
GDRReservedRange: 10.0.1000.0:10.0.1099.0;10.0.3000.0:10.0.3099.0
PackageName: SQLServer2008-KB968369-x86.exe
Installation location: g:\2aa334eee83bd39b499730\x86\setup\
User Input Settings:
ACTION: Patch
ALLINSTANCES: False
CLUSTERPASSIVE: False
CONFIGURATIONFILE:
HELP: False
INDICATEPROGRESS: False
INSTANCENAME: <empty>
QUIET: False
QUIETSIMPLE: False
X86: False
Rules with failures:
Global rules:
There are no scenario-specific rules.
Rules report file: The rule result report file is not available.
Exception summary:
The following is an exception stack listing the exceptions in outermost to innermost order
Inner exceptions are being indented
Exception type: System.IO.FileNotFoundException
Message:
C:\Windows\Installer\9bcac.msi
Data:
DisableWatson = true
Stack:
at Microsoft.SqlServer.Chainer.Infrastructure.MsiNativeMethodHelpers.GetDBProperty(ServiceContainer context, String pathToMsi, String propertyName)
at Microsoft.SqlServer.Configuration.MsiExtension.SetPatchInstallStateAction.GetMsiRtmVersion(PackageInstallProperty targetPackage)
at Microsoft.SqlServer.Configuration.MsiExtension.SetPatchInstallStateAction.IsApplicablePatch(PatchProperty currentPatch, PackageInstallProperty targetPackage)
at Microsoft.SqlServer.Configuration.MsiExtension.SetPatchInstallStateAction.ExecuteAction(String actionId)
at Microsoft.SqlServer.Configuration.MsiExtension.ProductInstallProperty.GetInstalledPackages(String instanceName, List`1& installedInstancePackages, List`1& installedSharedPackages, String& returnedErrorMessage)
at Microsoft.SqlServer.Configuration.MsiExtension.ProductInstallProperty.CollectProductData()
at Microsoft.SqlServer.Configuration.FeatureTreeConfigurationBase.LoadFeatureTreeDefinitionAllInstances()
at Microsoft.SqlServer.Configuration.FeatureTreeConfigurationBase.LoadFeatureTreeDefinition()
at Microsoft.SqlServer.Configuration.FeatureTreeConfigurationBase..ctor(ServiceContainer context)
at Microsoft.SqlServer.Configuration.PatchFeatureTree..ctor(ServiceContainer context)
at Microsoft.SqlServer.Configuration.PatchFeatureTree.InitializePatchFeatureTree(ServiceContainer context)
at Microsoft.SqlServer.Configuration.SetupExtension.InitializeUIDataAction.ExecuteAction(String actionId)
at Microsoft.SqlServer.Chainer.Infrastructure.Action.Execute(String actionId, TextWriter errorStream)
at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.InvokeAction(WorkflowObject metabase, TextWriter statusStream)
at Microsoft.SqlServer.Setup.Chainer.Workflow.PendingActions.InvokeActions(WorkflowObject metaDb, TextWriter loggingStream) -
I would like to add a new Firewall 'Inbound Rule' to allow remote access by
SQL Server 2008.
SQL Server Management Studio shows two TCP/IP instances, both of which are Enabled.
One uses port 1433 and the other uses ‘TCP Dynamic Ports’.
In SQL Server, the server has ‘Allow remote connections to this server’ checked.
My Firewall allows port 1433 for the one TCP/IP instance.
Since the other instance is dynamic, I would like to add a new
Firewall 'Inbound Rule' to allow the SQL Server executable to run.
I’ve read that the SQL Server executable is commonly named SQLSERVR.EXE, but there is no such file on my laptop.
I’m assuming the executable that needs to be added to the Firewall 'Inbound Rule'
is SQLCMD.EXE (in the path C:\Program Files\Microsoft SQL Server\100\Tools\Binn).
Can anyone please confirm this? (I'm running Windows 7). Thanks.Hi Bontrager,
Firstly, please run
Discovery Report to the detect the existing SQL Server 2008 instance. If SQL Server 2008 is installed properly on your machine, the sqlservr.exe should exists in C:\Program Files\Microsoft SQL Server\MSSQL10.<instance_name>\MSSQL\Binn.
Secondly, if SQL Server 2008 is configured to use dynamic port, it is difficult to configure the firewall to enable access to the correct port number because the port selected might change every time that the Database Engine is started.
Therefore, if a firewall is used, please reconfigure the SQL Server 2008 to use the static TCP port by using SQL Server 2008 Configuration Manager.
For more information, please review this
article. After that, you can add the port number in firewall inbound rule.
Thirdly, if you want to connect to SQL Server 2008 from outside the firewall by instance name, SQL Server Browser should be turned on and you'll have to allow the SQL Server Browser through the firewall, which is UDP port 1434.
Reference:
https://msdn.microsoft.com/en-us/library/cc646023.aspx
http://stackoverflow.com/questions/10539900/opening-ports-sql-server-instances
Thanks,
Lydia Zhang
Lydia Zhang
TechNet Community Support -
Installing windows server 2008 on UCS C210 M2 problem
Please help me in this issue
My new server Cisco UCS C210 M2, that has only one hard disk and I need to set up windows server 2008 R2 SP1
When I making the installation in the windows installation stage, the completing installation part the server is hanging and stop in this state
I tried to change the windows image and still the same problem
I need to know please if there are a certain criteria like PCI configuration or any change on this server hardware before installing windows server 2008 R2
I searched in the below links
http://www.cisco.com/en/US/docs/unified_computing/ucs/os-install-guides/windows/CSERIES-WINDOWS_chapter_01.html#reference_9858434220524A52A039038C9449D775
http://www.cisco.com/en/US/docs/unified_computing/ucs/os-install-guides/windows/CSERIES-WINDOWS_chapter_011.html#t_installationonaninternaldrivewhen restaring the windows after that it give me the below message in the attached image from the KVM consol
-
HP Laserjet CP2025 Windows Server 2008 R2 Universal Printer Driver problem
Is there support for Windows Server 2008 R2 for the CP2025n printer, I've been trying to get it to work with a standard TCP port with the universal driver but no luck.
Any ideas?I have Windows 2003 servers with the Universal PCL6 driver v5,4. It printed slower then the previous version. I manually changed the Device Settings, mainly the Monochrome / Color option. This seemed to make the print process faster.
-
SQL Server 2008/2012 Express Connection Problem
Hello,
since a couple of days I'm working on a problem with the SQL Server Express (32-Bit as well as 64Bit).
I installed a new SQL Server 2008 with an instance named SQL2012 and the Management Studio 2008 R2 on the same machine. I easily am abled to connect to the Server using the Management Studio with several Server Name settings (localhost, IP, (local), .\SQL2012).
Now I have a self-written programm (C#) wich should connect to the Server, but it does not work. It is definitely not a problem of the programm code because the same programm is abled to connect to a SQL Server 2008 Enterprise Edition. Similar Problem with
the 2012 Express Version (2012 Enterprise not tested).
The connection string I use and wich is working with connecting on the Enterprise Edition is: Server=Servername\Instance;Database=DatabaseName;User Id=user;Password=password;
Anybody any solution why the Express-Version refuses to connect?
(Sorry if I have made several failures in my text, English is not my native language)It Occurs when I try to ping.Send the Server to see if he is active. If I skip this step and try to connect directly to the server (con.Open()) I get the exception:
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The
server was not found or it can not be accessed. Verify that the instance name is correct and that SQL Server allows remote connections. (provider: Named Pipes Provider, error: 40 - Connection with the SQL Server couldn't be opened) -
Problems with parameter button in Crystal Report Server 2008
Dear all,
I have problems with parameter button in Crystal Report Server 2008.
when I created some parameters and groups in Crystal Report 2008, they showed both parameters in 'Parameter button' and group in 'Group button' on the left, so I can choose or type without clicking 'Refresh button' But when I added it to Crystal Report Server 2008 and I click parameter button , it doesn't show any parameter. Only click refresh button to choose them. On the other hand, for 'Group Tree' is ok. When go to Default Setting-> Parameter, all parameters are in 'Unused parameter' First time I think I had problems with my installation, but when I reinstalled it again, it was like before.
Could any one help me with this?
I appreciate looking forward to your reply
KetyaTry posting your questionin the correct forum, this is for SAP Business One, not Crystal reports Server
-
Crystal Reports Server 2008 Trial Installation Problem
I recently downloaded the trial version of Crystal Reports Server 2008 and ran into a problem with the installation key code sent to me. During the install, I enter the keycode and the install application says it is invalid. I'm attempting to install the Linux version on Red Hat Enterprise 5.2. I know that this is technically not a supported version of Linux but I would not expect that cause a problem with the key code.
Does anyone have any ideas on what is happening?
Thanks...Hi Jeff,
I would suggest you to install Crystal reports on supported platform only.
To narrow down the issue you can try to install on other machine with supported environment so that it would be clear that the issue is with Keycode or not.
Regards,
Shweta -
Difference between Crystal Reports Server 2008 and Business Objects XI R2
Can anyone please help me know the difference between Crystal Reports Server 2008 and Business Objects XI R2? Both the support guides says that it supports Office 2007. I have a problem in exporting the reports to Excel 2007 .I have downloaded the trial version of Crystal Reports Server 2008 but still unable to view my complete reports in Excel 2007 through infoview because few of my report's colums are truncated and it still exports in Excel 2003.I have LiveOfficeXIR2_SP4 and Office 2007 installed. Is it so that i have to switch over to Business Objects XI R2 or any other to solve my problem instead of using Crystal Reports Server 2008 or is it the problem with the version of my Live office.Pls help me regarding this..
Babita.Babita,
request you to post the same in the BO forums for more relevant answers...
Arun -
Moving from Novell Zenworks to Windows Server 2008 domain
I am trying to find ways to automate the process of moving between a Novell Zenworks environment to a server 2008 domain. The first problem to my understanding is changing the names of the machines to legal values in our Windows XP Pro Clients. They are currently mostly named, cata_rm#_computer# (where # is a defined value set manually). To my understanding underscore _ is an invalid character for joining a domain so we want to have an automated script that can easily be deployed over the network to basically replace all "_"with "-". Is this necessary or can this issue be handled easier ****her down the road on moving to a windows domain?
We would then like to be able to deliver a payload via zenworks that will cause all of Novell and Zenworks to be removed from the computer and once that is complete add the computer to the new windows domain. Ideally the payload could be easily run from a network share or flash drive as well. Unattended installers may be available for this software suite but we would want to combine the uninstall process with adding the domain so we can move from our poor zenworks domain to a windows domain without ever touching most of our machines.
This is not my project but I am interested in learning how this process could be completed as painlessly as possible hopefully learning something along the way. Anything from links to guides on where to get started looking to more developed solutions would be greatly appreciated. Thank you for any assistance you can provide.None the less the beginning of my problem, removing Novell is a Novell issue. Thankfully I have figured out most of the removal of novell and zenworks already, now just working on fixing the client names and joining the windows AD domain.
Originally Posted by mdallair
Hi firemandan9,
As you probably know this is a Novell support forums and you are asking how to get rid of Novell. May be a better place is the Microsoft Forums.
Martin Dallaire -
Can Endpoint 2012 be used on Windows Server 2008 R2?
I have never used this product before. I just need to protect one Microsoft Window Server running 2008 R2 Enterprise. I don't need to install the infrastructure or manager. Is this possible?
Thanks!Hi,Yes you can simply install it manually, server 2008 r2 is supported no problem..
Regards,
Jörgen
-- My System Center blog ccmexec.com -- Twitter
@ccmexec -
IPsec default exemptions for Server 2008 R2
Hello Everyone,
We are using IPsec in our domain environment all servers are windows server 2003 and 2003 R2. Now we are upgrading to server 2008 R2. With Windows server 2003 and 2003 R2 we used exempt some traffic from IPsec now with Windows Server 2008 R2 we are having problem to exempt this traffic. With 2003 we were changing registry key;
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\IPSEC
and changing the value;
NoDefaultExempt 0
With Server 2008 R2 we could not figure out to set this settings.
Can anybody have any idea how to do that?
Thank you,
Any input greatly appreciated.
Orhan TaskinHello Orhan,
From: support[dot]microsoft[dot]com/default.aspx?kbid=811832 - Titled "IPsec default exemptions"
Note In Windows Server 2008 and in Windows Vista, the registry key is:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PolicyAgent -
Crystal Report Embedded server 2008
Hi SAP,
I have reports created in Crystal reports 2008 sp1 designer. Reports are created using stored procedures.Reports are called through .net application and placed at Crystal Report Embedded server 2008.If Reports are at local machine they work fine.If reports are at Crystal Report Embedded server 2008 it prompts for parameter and database credentials.
Here is my code
CrystalDecisions.CrystalReports.Engine.ReportDocument rd= new CrystalDecisions.CrystalReprots.Engine.ReportDocument();
String rptfilepath="ras://C:\Reports\EmbededRpt.rpt";
Rd.ReportAppServer="RasServer";
Rd.FileName= rptfilepath;
Rcd=rd.ReportClentDocument;
System.Data.Dataset ds = this.GetData();
Rd.SetDataSource(CrystalDecisions.ReportAppServer.DataSetConversion.DataSetConverter.Convert(ds));
CrystalReportViewer1.ReportSource=rcd.ReportSource;
Any response will be appreciated.
Thanks.Hi,
I believe Crystal Report Embedded server 2008 does not come with .NET SDKs. You need to wait for its SP1 release that should make make .NET sdks available for the application.
Thanks. -
Windows Server 2008 R2 as a resources
Hello All,
Has anyone successfully used Server 2008 R2 as an IdM managed resource?
Thanks for all replies.Hi There !!!
I want to use Windows server 2008 R2 as a router for a lab setup. I have a DC, Exchange and some other machines. I want to use member server to use as a router. I have installed the routing and remote access role. I have also enabled it.
I am able to ping internal ips and external ips from the router ( Windows sErver 2008 r2 machine). The problem is that i am not able to ping other subnet from internal PCs ( ANY Of them).
Regards,
Mohammed.
But how did you configure it? You should be able to see other subnets if you configured it as a NAT router (but they will not be able to see your new subnet). If you configured it as a LAN router, you will only be able to contact other subnets if
you have set up the necessary routing so that they know how to reach your new subnet.
(Hint - what is the default gateway of the other subnets?)
Bill -
Execute SQL Task with Parameter - from DB2 to SQL Server
I am pulling data from DB2 to SQL Server.
1st Execute SQL task runs the following against DB2:
SELECT TIMESTAMP(CHAR(CURRENT_DATE - (DAY(CURRENT_DATE)-1) DAYS - 1 MONTH)) as START_MONTH
FROM SYSIBM.SYSDUMMY1;
I'm storing it as a Result Set.
Next I have a Data Flow Task. This pulls data from DB2 where the date matches the parameter.
FROM SCHEMA.TABLE t
WHERE DATE_TIME_COLUMN= ?
This works fine. Guessing, because the parameter source is DB2 and the Data Flow source is DB2.
The problem is, I want to remove existing data for the same date in the SQL table. IE, if I'm pulling March 2014 data from DB2, I want to be sure there is no March 2014 data in the SQL table. The main use is for re-runs.
So, I added another Execute SQL task after the first one that assigns the variable, and before the Data Flow Task. This runs the following statement against SQL Server:
DELETE FROM
database.dbo.table
WHERE DATE_TIME_FIELD >= ?
The package fails at the new Execute SQL Task with the following error message:
Error: 0xC002F210 at Execute SQL Task, Execute SQL Task: Executing the query "DELETE FROM
SBO.dbo.tblHE_MSP_FEE_BUCKETS
WHERE T..." failed with the following error: "Parameter name is unrecognized.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established
correctly.
Task failed: Execute SQL Task
SSIS package "Load_MSP_Fee_Buckets_SQL.dtsx" finished: Success.
The program '[14240] Load_MSP_Fee_Buckets_SQL.dtsx: DTS' has exited with code 0 (0x0).
I am assuming this is something to do with the Parameter source being DB2, and trying to use against SQL?
Any suggestions on how to make this work??
Thanks,
-Al HParameter name is unrecognized
is the key, how come DB2 is related if it runs against SQL Server
What I think is happening you do not use the OLEDB connection to SQL Server.
Likewise, if it is ADO then the query needs to be
DELETE FROM
database.dbo.table
WHERE DATE_TIME_FIELD >= @MyDate
Arthur My Blog
Maybe you are looking for
-
Internet streamed Video and Audio Lag when I roll over buttons/change tabs
Well just as the title suggests when I am watching videos online, aka youtube, hulu, etc, everything runs fine. But if I decide that I also want to check my facebook or something similar while watching these movies, the video and audio become choppy,
-
The called telephone rings but we cannot communica...
Hello. I have a problem since three months whith SKYPE GO. I have a subscription to Spain and Germany. It happens that I call a number, the person I call answers but we cannot communicate because none of the two hears the other. It happens also that
-
HP Photosmart C4795 when printing addresses and return addresses on envolps are not lined up.
The return address or mailing address when printed on the envelop are not ligned up correctly on the envelop in the correct location. The Return Address is printed in the middle top of the envelop instead on the left upper corner, the Mailing address
-
Avoid submitting form more than once
I would like to display an error if the user clicks twice on a submit button (payment is involved). The project requirements say no javascript. Any easy way to implement this in java ?
-
Update a column in PSA.
Hi Gurus, I am loading data from ERP to BW for 2LIS_13_VDITM. but it failed stating that a column(Reference Document) has a lower case letters. The data is in PSA now(45303 records). There are lower case letters(y,z,etc). PSA is showing