0x80040220 CDO.Message.1 The SendUsing Configuration Value Is Invalid. NULL 0
May 26, 2008
Hi Friends,
I have the below procedure in my local system for sending automatic mails in sql server 2005.
Create Procedure dbo.SendEmail1
@To VarChar(500), @From VarChar(100), @Subject VarChar(200), @Body VarChar(1000), @SMTPServer VarChar(50)
AS
Declare @Object int, @Hr int, @Src VarChar(255), @Desc VarChar(255)
--Create Message object
Exec @Hr = sp_OACreate 'CDO.Message', @Object OUT
If @Hr <> 0
Begin
Exec sp_OAGetErrorInfo @Object, @Src OUT, @Desc OUT
SELECT hr=convert(varbinary(4),@Hr), Source=@Src, Description=@Desc
Return
End
--set sEndusing property
Exec @Hr = sp_OASetProperty @Object, 'Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sEndusing")', '1'
If @Hr <> 0
Begin
Exec sp_OAGetErrorInfo @Object
Return
End
--set port property
Exec @Hr = sp_OASetProperty @Object, 'Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/SEndUsingMethod")', '25'
If @Hr <> 0
Begin
Exec sp_OAGetErrorInfo @Object
Return
End
--set smtp server property
Exec @Hr = sp_OASetProperty @Object, 'Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver")', @SMTPServer
If @Hr <> 0
Begin
Exec sp_OAGetErrorInfo @Object
Return
End
--Update the configuration
Exec @Hr = sp_OAMethod @Object, 'Configuration.Fields.Update', Null
If @Hr <> 0
Begin
Exec sp_OAGetErrorInfo @Object
Return
End
--set TO property
Exec @Hr = sp_OASetProperty @Object, 'To', @To
If @Hr <> 0
Begin
Exec sp_OAGetErrorInfo @Object
Return
End
--set FROM property
Exec @Hr = sp_OASetProperty @Object, 'From', @From
If @Hr <> 0
Begin
Exec sp_OAGetErrorInfo @Object
Return
End
--set Subject property
Exec @Hr = sp_OASetProperty @Object, 'Subject', @Subject
If @Hr <> 0
Begin
Exec sp_OAGetErrorInfo @Object
Return
End
--set HTMLBody property
Exec @Hr = sp_OASetProperty @Object, 'HTMLBody', @Body
If @Hr <> 0
Begin
Exec sp_OAGetErrorInfo @Object
Return
End
--SEnd the mail
Exec @Hr = sp_OAMethod @Object, 'SEnd', Null
If @Hr <> 0
Begin
Exec sp_OAGetErrorInfo @Object
Return
End
--No memory leaks!
Exec @Hr = sp_OADestroy @Object
If @Hr <> 0
Begin
Exec sp_OAGetErrorInfo @Object
Return
End
and executed as
SendEMail1 'x@x.com','a@a.com', 'Sending email through Stored Procedure', 'Body : An Email can be sent through stored procedure... and this is SAMPLE', 'smtpservername' This is working fine when I excuted the above procedure in the local system.
Same procedure I have created in the developement machine and excute it the it is giving error as
0x80040220 CDO.Message.1 The "SendUsing" configuration value is invalid. NULL 0
I need the suggestions on the above error and how to solve this in our development server.
Hi Friends, I have the below procedure in my local system for sending automatic mails in sql server 2005. Create Procedure dbo.SendEmail1@To VarChar(500), @From VarChar(100), @Subject VarChar(200), @Body VarChar(1000), @SMTPServer VarChar(50)ASDeclare @Object int, @Hr int, @Src VarChar(255), @Desc VarChar(255)--Create Message objectExec @Hr = sp_OACreate 'CDO.Message', @Object OUTIf @Hr <> 0BeginExec sp_OAGetErrorInfo @Object, @Src OUT, @Desc OUT SELECT hr=convert(varbinary(4),@Hr), Source=@Src, Description=@DescReturnEnd--set sEndusing propertyExec @Hr = sp_OASetProperty @Object, 'Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sEndusing")', '1'If @Hr <> 0BeginExec sp_OAGetErrorInfo @ObjectReturnEnd--set port propertyExec @Hr = sp_OASetProperty @Object, 'Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/SEndUsingMethod")', '25'If @Hr <> 0BeginExec sp_OAGetErrorInfo @ObjectReturnEnd--set smtp server propertyExec @Hr = sp_OASetProperty @Object, 'Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver")', @SMTPServerIf @Hr <> 0BeginExec sp_OAGetErrorInfo @ObjectReturnEnd--Update the configurationExec @Hr = sp_OAMethod @Object, 'Configuration.Fields.Update', NullIf @Hr <> 0BeginExec sp_OAGetErrorInfo @ObjectReturnEnd--set TO propertyExec @Hr = sp_OASetProperty @Object, 'To', @ToIf @Hr <> 0BeginExec sp_OAGetErrorInfo @ObjectReturnEnd--set FROM propertyExec @Hr = sp_OASetProperty @Object, 'From', @FromIf @Hr <> 0BeginExec sp_OAGetErrorInfo @ObjectReturnEnd--set Subject propertyExec @Hr = sp_OASetProperty @Object, 'Subject', @SubjectIf @Hr <> 0BeginExec sp_OAGetErrorInfo @ObjectReturnEnd--set HTMLBody propertyExec @Hr = sp_OASetProperty @Object, 'HTMLBody', @BodyIf @Hr <> 0BeginExec sp_OAGetErrorInfo @ObjectReturnEnd--SEnd the mailExec @Hr = sp_OAMethod @Object, 'SEnd', Null If @Hr <> 0BeginExec sp_OAGetErrorInfo @ObjectReturnEnd--No memory leaks!Exec @Hr = sp_OADestroy @ObjectIf @Hr <> 0BeginExec sp_OAGetErrorInfo @ObjectReturnEnd and executed as SendEMail1 'x@x.com','a@a.com', 'Sending email through Stored Procedure', 'Body : An Email can be sent through stored procedure... and this is SAMPLE', 'smtpservername' This is working fine when I excuted the above procedure in the local system. Same procedure I have created in the developement machine and excute it the it is giving error as 0x80040220 CDO.Message.1 The "SendUsing" configuration value is invalid. NULL 0
I need the suggestions on the above error and how to solve this in our development server.
I have the below procedure in my local system for sending automatic mails in sql server 2005.
Create Procedure dbo.SendEmail1 @To VarChar(500), @From VarChar(100), @Subject VarChar(200), @Body VarChar(1000), @SMTPServer VarChar(50) AS Declare @Object int, @Hr int, @Src VarChar(255), @Desc VarChar(255) --Create Message object Exec @Hr = sp_OACreate 'CDO.Message', @Object OUT If @Hr <> 0 Begin Exec sp_OAGetErrorInfo @Object, @Src OUT, @Desc OUT SELECT hr=convert(varbinary(4),@Hr), Source=@Src, Description=@Desc Return End --set sEndusing property Exec @Hr = sp_OASetProperty @Object, 'Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sEndusing")', '1' If @Hr <> 0 Begin Exec sp_OAGetErrorInfo @Object Return End --set port property Exec @Hr = sp_OASetProperty @Object, 'Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/SEndUsingMethod")', '25' If @Hr <> 0 Begin Exec sp_OAGetErrorInfo @Object Return End --set smtp server property Exec @Hr = sp_OASetProperty @Object, 'Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver")', @SMTPServer If @Hr <> 0 Begin Exec sp_OAGetErrorInfo @Object Return End --Update the configuration Exec @Hr = sp_OAMethod @Object, 'Configuration.Fields.Update', Null If @Hr <> 0 Begin Exec sp_OAGetErrorInfo @Object Return End --set TO property Exec @Hr = sp_OASetProperty @Object, 'To', @To If @Hr <> 0 Begin Exec sp_OAGetErrorInfo @Object Return End --set FROM property Exec @Hr = sp_OASetProperty @Object, 'From', @From If @Hr <> 0 Begin Exec sp_OAGetErrorInfo @Object Return End --set Subject property Exec @Hr = sp_OASetProperty @Object, 'Subject', @Subject If @Hr <> 0 Begin Exec sp_OAGetErrorInfo @Object Return End --set HTMLBody property Exec @Hr = sp_OASetProperty @Object, 'HTMLBody', @Body If @Hr <> 0 Begin Exec sp_OAGetErrorInfo @Object Return End --SEnd the mail Exec @Hr = sp_OAMethod @Object, 'SEnd', Null If @Hr <> 0 Begin Exec sp_OAGetErrorInfo @Object Return End --No memory leaks! Exec @Hr = sp_OADestroy @Object If @Hr <> 0 Begin Exec sp_OAGetErrorInfo @Object Return End
and executed as
SendEMail1 'x@x.com','a@a.com', 'Sending email through Stored Procedure', 'Body : An Email can be sent through stored procedure... and this is SAMPLE', 'smtpservername'
This is working fine when I excuted the above procedure in my local system.
Same procedure I have created in the developement machine and excute it the it is giving error as
0x80040220 CDO.Message.1 The "SendUsing" configuration value is invalid. NULL 0
I need the suggestions on the above error and how to solve this in our development server.
I have an application that is utilizing cdosysmail to send email from SPs and DTS packages. It was working fine until the end of January but now they are no longer receiving the emails. Of course the logical question is what has changed. But, I am new here and cannot answer that.
Cdosysmail is working fine on other servers and I cannot find any differences between them and this server.
I have manually called sp_send_cdosysmail from query analyzer but am receiving the following error:
----------- -2147220960
(1 row(s) affected)
Source: CDO.Message.1 Description: The "SendUsing" configuration value is invalid.
I searched the cdosysmail proc and the only command that related to the "SendUsing" property is the same on all my servers with the value of 2:
I run SB between 2 SQL servers. In profiler on an initiator side I see next error: 'This message could not be delivered because its message timestamp has expired or is invalid'. For the conversation we use best practice, i.e. target closes a conversation. Target side succeed to close conversation, but initiator still stay in DO (disconnect_outbound). What is a reasone for the error? What to do?
I see in profiler this error: "This message could not be delivered because its message timestamp has expired or is invalid" What is a reason for error?
execInfo = rsReportExec.LoadReport(strReportPath, strHistoryID). The errro was "System.Web.Services.Protocols.SoapException: The path of the item "http://localhost/ReportServer/Pages/ReportViewer.aspx?/CAITReports/rptIssuesByRole&rs:Command=Render&intProjectID=119&nvchrWhoRan=DYW" is not valid. The path must be less than 260 characters long and must start with slash. Other restrictions apply. ---> Microsoft.ReportingServices.Diagnostics.Utilities.InvalidItemPathException: The path of the item "http://localhost/ReportServer/Pages/ReportViewer.aspx?/CAITReports/rptIssuesByRole&rs:Command=Render&intProjectID=119&nvchrWhoRan=DYW" is not valid. The path must be less than 260 characters long and must start with slash. Other restrictions apply.
I copied and pasted the path on the URL and it worked. What did I miss in the code? Why strHistoryID is required as it is nothing? Please refer to http://msdn2.microsoft.com/en-us/library/microsoft.wssux.reportingserviceswebservice.rsexecutionservice2005.reportexecutionservice.render.aspx
Private Sub sExecuteReportingServicesReport()
Dim rsReportExec As ReportExecutionService = New ReportExecutionService
i'm working on an application using vs 2005, sql server2000, with c# asp.net i can access many tables in my db that the dbo is the dbowner for them, but when i access few tables that the owner for them is dswebwork, i recieved an error says, invalid object name tbluser...which tbluser is table name...this is the error message in details..... Invalid object name 'tblUsers'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: Invalid object name 'tblUsers'.Source Error:
Line 57: string passWord = txtPassword.Text; Line 58: Line 59: Users users = new Users(Constants.DB_CONNECTION, Line 60: userName, passWord); Line 61: Source File: e:web worksWebworksDSCWebWorksLoginMaster.master.cs Line: 59 Stack Trace:
I'm trying to use the message queue task in SSIS 2005 and not getting very far. Right off the bat I'm trying to create a Message Queue Connection Manager and when I enter the path, trying both "seawxxxx estq" (my local computer name) or ". estq" and test it, it comes back with "invalid path". Have done quite a bit of searching around and can't find anything on this particular error.
I'm having trouble with cube processing. While processing a code I'm getting a "Invalid column name MessageType" error.
I unfolded the cube, then I opened "measure groups", my failing dimension (ServiceRequestDim)Â and the partition.
In the partition I opened the "Source" attribute so it now includes my column which was missing. But it didn't solve the issue.
If I get the query used during the process I'm getting this :
SELECT DISTINCT [ServiceRequestDim].[MessageType] AS [ServiceRequestDimMessageType0_0] FROM ( Select IsNull(IsDeleted, 0) as IsDeleted, [ServiceRequestDimKey], IsNull([Status_ServiceRequestStatusId], 0) as [Status_ServiceRequestStatusId],[Status],IsNull([TemplateId_ServiceRequestTemplateId], 0) as
[Code] ....
In the nested query which defines ServiceRequestDim the messagetype attribute is still missing. In my source datamart the ServiceRequestDim has the "MessageType" column.
So the question is where do I change the nested request that the dim process use to reflect the actual columns in my datamart .
I am getting the "Invalid use of Null" message when I execute the following code under the following conditions.
fields in SQL Server table db_date varchar(30) --> "December 29" db_subject varchar(200) --> "Test Subject" db_thought text --> "This is a test to see if this works"
I execute the following code from VB6
strText = "select * from db_table where db_date = 'December 29'" ors.open strText, dbConnect if not ors.eof then if not isnull(ors("db_thought")) then txtBox1 = ors("db_thought") end if end if
Here is my problem. Since there is a value in db_thought the code if not isnull(ors("db_thought")) evaluates to true -- this is what I expect. However when I try to assign the ors("db_thought") to the txBox1 field I get an Invalid use of Null. What am I missing?
Please help how to solve the invalid use of Null value in numeric field
1. Query name : Genled ---------------------- SELECT PARTY.PARTYNAME AS PARTYNAME, GEN.GLNAME AS GLNAME, GEN.AMOUNT AS OAMOUNT, CASH.CASHNAME AS CASHNAME, TXN.CBCODE AS CBCODE, GEN.CB AS CB, TXN.GLCODE AS GLCODE, TXN.VOUCHER AS VOUCHER, TXN.DOCDATE AS DOCDATE, TXN.AMOUNT AS TAMOUNT, TXN.VTYPE AS VTYPE, TXN.NARR AS NARR, TXN.CHEQUE AS CHEQUE, TXN.CHEQDATE AS CHEQDATE, TXN.BANK AS BANK, TXN.BILLNO AS BILLNO, TXN.BILLDT AS BILLDT FROM PARTY RIGHT JOIN (GEN LEFT JOIN (TXN LEFT JOIN CASH ON TXN.CBCODE = CASH.CBCODE) ON GEN.GLCODE = TXN.GLCODE) ON PARTY.PARTYCODE = TXN.PARTYCODE WHERE (((GEN.GLCODE) Not In (SELECT CASHCODE FROM CASH)));
2. From query 1 i have to create temporary table ogenled & generalled
3. From table ogenled i have pass this query - select glname, oamount, sum(tamount) as tamt, (oamount+sum(tamount))as opbal from ogenled group by glname, oamount order by glname
4. from query 3 i have update generalled table for opbal but the problem is this if only oamount is <>0 and tamt is empty then error message show "INVALID USE OF NULL"
5. gen table contain the glname, oamount , txn table contains the detail transaction. It is quite possible that only opening amt is exit. by query it nothing transaction is done than tamount field show " "
6. Please help how to show the default value 0 insted of " "
i was deleting a row from my gridview.this fail ("System.Data.SqlClient.SqlException: Invalid object name 'MESSAGE'.") consists what must i do ?My SQL query is "UPDATE MESSAGESET DELETIONSTATUSTO = 1,_LASTMODIFYDATE =getdate() WHERE (_ID = @ID)"
I am trying to run a query on my sql server and get the following error message: Â "An error occurred while executing batch. Error message is: The directory name is invalid." Â how do I fix?
Yesterday, literally I was banging my head to the wall, kept getting this error:
A Connection could not be established with the information provided. Hit OK to change your connection settings. Invalid object name 'sysdatabases'.
I uninstall and re-install back the reporting services couple times and I kept getting the same error. I have 2 instances of SQL Server on the same Server:
SQL Server 2000
SQL Server 2005 The 2 instances work side by side, I was wondering if this causing the error.
I am trying to set up a ODBC connection to a remote database using the ODBC data source administrator. I am getting an error message complaining of an invalid instance(). The database I am trying to connect to does have a default instance and a named instance. Do I need to specify the instance name somewhere in the connection settings? I tried specifying the server name as <Remote computer IP Address>/<Instance Name> but this didn't work. Any ideas?
Public Function CalcOrderSubTotal(prmOrderID As Integer, _ Optional CallFromMacro As Boolean = True) Dim varOrderSubTotal As Integer Dim db As DAO.Database Dim rs As Recordset Dim strSQL As String
Hi, I want to call a dll from Stored procedure developed in SQL Server 2005 at configuration level 80. but when I execute the stored procedure I get the following error.
Error Source: ODSOLE Extended Procedure Description: Invalid class string
Code of stored procedure and vb.net class is given below:
Public Shared Sub LogToTextFile(ByVal LogName As String, ByVal newMessage As String) ' impersonate the calling user Dim newContext As System.Security.Principal.WindowsImpersonationContext newContext = SqlContext.WindowsIdentity.Impersonate() Try Dim w As StreamWriter = File.AppendText(LogName) LogIt(newMessage, w) w.Close() Catch Ex As Exception
Finally newContext.Undo() End Try End Sub End Class ===============================================================
STORED PROCEDURE Create PROCEDURE [dbo].[PPGenerateFile] AS
BEGIN Declare @retVal INT Declare @comHandler INT declare @errorSource nvarchar(500) declare @errorDescription nvarchar(500) declare @retString nvarchar(100)
-- Intialize the COM component EXEC @retVal = sp_OACreate 'PositivePay.class', @comHandler OUTPUT IF(@retVal <> 0) BEGIN --Trap errors if any EXEC sp_OAGetErrorInfo @comHandler,@errorSource OUTPUT, @errorDescription OUTPUT SELECT [error source] = @errorsource, [Description] = @errordescription Return END
-- Call a method into the component EXEC @retVal = sp_OAMethod @comHandler,'LogToTextFile',@retString OUTPUT, @LogName = 'D: ext.txt',@newMessage='Hello' IF (@retVal <>0 ) BEGIN EXEC sp_OAGetErrorInfo @comHandler,@errorSource OUTPUT, @errorDescription OUTPUT SELECT [error source] = @errorsource, [Description] = @errordescription Return END select @retString
SET @DateTransaction = (SELECT Max(DateTransaction) FROM tblImport) SET @TradeDate = (SELECT Max(DateTrade) FROM tblSystem) PRINT 'The Transaction Date is ' + CAST(@DateTransaction as varchar) + '. The Trade Date is ' + CAST(@TradeDate as varchar)
However, it is part of a long stored procedure, and when it runs there, I get the following instead of the line confirming the two dates:
Warning: Null value is eliminated by an aggregate or other SET operation.
What could be interfering with this section of the stored procedure?
I have created a queue with automatic execution of a stored proc with the attribute Max_Queue_Readers = 5. While processing data, I can select from the queue and see that messages are backed up in the queue. I have two questions:
I'm converting a replication script from SQL 2000 to SQL 2005.
I am getting an error with push merge with no way to figure out what is wrong.
I've configured replication on a single XP server in SQL 2005 RTM version.
I have a push merge set up between A and B and between B and C. All 3 databases are 9.0 compatibility.
The snapshot and merge jobs for the A to B run fine with no errors, and merge replicates ok.
The snapshot for B to C fails with this message: Message 2006-03-09 17:30:35.94 --------------------------------------------- 2006-03-09 17:30:35.94 -BcpBatchSize 100000 2006-03-09 17:30:35.94 -HistoryVerboseLevel 2 2006-03-09 17:30:35.94 -LoginTimeout 15 2006-03-09 17:30:35.94 -QueryTimeout 1800 2006-03-09 17:30:35.94 --------------------------------------------- 2006-03-09 17:30:35.95 Connecting to Publisher 'MyInstance' 2006-03-09 17:30:35.97 Publisher database compatibility level is set to 90. 2006-03-09 17:30:35.97 Retrieving publication and article information from the publisher database 'MyInstance.MyDB' 2006-03-09 17:30:36.22 [0%] The replication agent had encountered an exception. 2006-03-09 17:30:36.22 Source: Replication 2006-03-09 17:30:36.22 Exception Type: Microsoft.SqlServer.Replication.ReplicationAgentSqlException 2006-03-09 17:30:36.22 Exception Message: Data is Null. This method or property cannot be called on Null values. 2006-03-09 17:30:36.22 Message Code: 52006 2006-03-09 17:30:36.22
Love that exception message: "Data is Null" - very helpful to someone who is clairvoyant perhaps. I checked the snapshot bcp files. The tables being merged all have data.
If you have any ideas on how to fix this, I'd be most grateful. As it is after 6pm I probably won't read this again until morning. Thanks for any suggestions.
Ok guys, I am trying to install Sql server 2005 on Vista but I am still stuck with this warning message in the System Configuration Check during Sql server 2K5 installation :
SQL Server Edition Operating System Compatibility (Warning) Messages * SQL Server Edition Operating System Compatibility
* Some components of this edition of SQL Server are not supported on this operating system. For details, see 'Hardware and Software Requirements for Installing SQL Server 2005' in Microsoft SQL Server Books Online.
Now, I know I need to install SP2 but how the hell I am going to install SP2 if Sql server 2005 doesn't install any of the components including Sql server Database services, Analysus services, Reporting integration services( only the workstation component is available for installation)?
Any work around for this issue?
P.S.: I didn't install VS.NET 2005 yet, can this solve the problem?
Hey. I need to substitute a value from a table if the input var is null. This is fine if the value coming from table is not null. But, it the table value is also null, it doesn't work. The problem I'm getting is in the isnull line which is in Dark green color because @inFileVersion is set to null explicitly and when the isnull function evaluates, value returned from DR.FileVersion is also null which is correct. I want the null=null to return true which is why i set ansi_nulls off. But it doesn't return anything. And the select statement should return something but in my case it returns null. If I comment the isnull statements in the where clause, everything works fine. Please tell me what am I doing wrong. Is it possible to do this without setting the ansi_nulls to off??? Thank you
set ansi_nulls off
go
declare
@inFileName VARCHAR (100),
@inFileSize INT,
@Id int,
@inlanguageid INT,
@inFileVersion VARCHAR (100),
@ExeState int
set @inFileName = 'A0006337.EXE'
set @inFileSize = 28796
set @Id= 1
set @inlanguageid =null
set @inFileVersion =NULL
set @ExeState =0
select Dr.StateID from table1 dR
where
DR.[FileName] = @inFileName
AND DR.FileSize =@inFileSize
AND DR.FileVersion = isnull(@inFileVersion,DR.FileVersion)
I have just finished installing SQL 2005 Ent Edition on Win 2000 Adv Server, SQL2005 SP2, and SP2 Hotfix KB934458. After the installation, I could see and configure all services via SQL Configuration Manager and SQL Server Surface Area Configuration tools. This worked for a couple of days and now both configuration tools no longer detect SQL2005 components. SQL Server Surface Area Configuration issued an error that said "No SQL Server 2005 components were found on specified computer. Either no components are installed, or you are not an administrator on this computer. (SQLAC)". SQL Configuration Manager did not list any installed services. I don€™t know what caused this. Anyone has any idea? Please help! Below is the Installation Report which shows installed components.
===================================
The following components are installed on this server
Hi --I was wondering if this is a bug when I add new data in my table SSIS Confiurations and give wizard a new Configuration filter the package configuration wizard can not see the new values --the old values from the previous configuration are still showing---is there any known workaround or forced refresh I can do
thanks in advance Dave
Background:
SQL Package Configurations are most important because they provide the possibility of a central configuration store for your entire enterprise!!!!!!!! and is in my mind the only way to go
USE [ETLConfiguration] GO /****** Object: Table [dbo].[SSIS Configurations] Script Date: 05/23/2006 13:34:35 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[SSIS Configurations]( [ConfigurationFilter] [nvarchar](255) COLLATE Latin1_General_CI_AS NOT NULL, [ConfiguredValue] [nvarchar](255) COLLATE Latin1_General_CI_AS NULL, [PackagePath] [nvarchar](255) COLLATE Latin1_General_CI_AS NOT NULL, [ConfiguredValueType] [nvarchar](20) COLLATE Latin1_General_CI_AS NOT NULL ) ON [PRIMARY]
It seems to me, that the best way is to have one Environment Varible containing the name of the SQL Server, so that you can look up the configuration in the SSIS Configuration Table when you run the package.
Is this the preferable way of doing it ? I would like to hear some positive/negative comment of why chosing a configuration type instead of another.
It seems to me that putting all of the configuration in the Environment variable is harder work but most secure (server breakdown vs table corruption/database error...)
I am having trouble specifying a message body that is valid. I mean for the client to send. If I leave it as null then everything is ok but if I create a memorystream and add a line of text it reports back it did not pass validation. I do not understand this and am not sure what to do. I need to send a message based on a code and text but do not know the format of the body that is allowed. The code I am refering to comes out of HelloWord_CLR because that is what I am formating my sample after. I call it the same way it calls the return message done in ServiceProc. I need to know the message format including body since this does not seem to work. A sample of the call is bellow.
// Create an empty request message
string Msg = "Hello";
MemoryStream body = new MemoryStream(Encoding.ASCII.GetBytes(Msg));
In my report i have CNAME parameter , which allows null value. I checked Allow null value check box in report parameter properties.
when i preview the report , it displays checked NULL check box beside CNAME parameter . I want to give some meaningful name(i.e.ALLCustomers) to this checkbox instead of NULL.Â