Viewing 15 posts - 256 through 270 (of 311 total)
SELECT
COUNT(*) OVER (PARTITION BY name), name, surname
FROM
Info
May 19, 2009 at 2:00 am
Are you using a 'SQL Server Destination' in your dataflow? SQL Server Destination only works at the server-side. If your package has to connect to a remote server, use the...
May 6, 2009 at 5:15 am
IsEmpty (without a space) is a MDX function. In SSRS use IsNothing e.g.
=IIf(IsNothing(Fields!ClientID.Value), True, False)
Peter
February 25, 2009 at 12:42 am
The Join function in SSRS expects an array of objects or strings as its first argument. It concatenates all string values of the elements in the array and separates them...
February 1, 2009 at 11:39 pm
You can add a calculated field NewField to your dataset with the expression
=IIF(Fields!FieldA.Value="Y",0,Fields!FieldB.Value)
Now can summarize on the field NewField in the group footer.
Peter
December 17, 2008 at 12:29 am
Try
Dim connection As ConnectionManager
connection = Dts.Connections("flatfileconn")
' Store it in a defined variable flatfileconnString
Dts.Variables("flatfileconnString").Value = connection.Properties("ConnectionString").GetValue(connection)
' Or display
MsgBox(CStr(connection.Properties("ConnectionString").GetValue(connection)))
Success
Peter
November 11, 2008 at 1:14 pm
Note that right now you are using string concatenation to build you query. If @[System::ErrorDescription] contains a single quote, the statement will become invalid, which probably explains the error you...
November 11, 2008 at 12:47 pm
Maybe the error description contains characters which breaks the statement. Try parameterizing the statement.
Peter
November 10, 2008 at 3:00 pm
I guess you forgot the parentheses. Try
"INSERT stg.Errors(error_code)
VALUES (
'' + @[System::ErrorCode] + '')
"
Peter
November 10, 2008 at 1:37 pm
Use the menu item "Add Existing Item" to re-include the package. Don't use the "Add Existing Package" menu item. It will make a copy of your package.
Peter
November 8, 2008 at 2:52 am
After some googling I found two solutions:
1. use a dummy select statement as the first select statement in your procedure to provide the metadata:
ALTER procedure [dbo].[up_test]
as
begin
set nocount...
June 17, 2008 at 12:56 pm
The 'column has no name' error is caused by the statement 'select 1/0'. I suggest to use the RAISERROR statement for raising errors. I tested this using the following procedure:
create...
June 16, 2008 at 1:41 pm
Oops, you're absolutely right! I agree with Peter Rijs, it's easy to make a mistake without proper testing. Anyway, the idea was clear, I suppose.
Peter
June 13, 2008 at 8:41 am
I hope I do unstand your question this time.
Set the following label/value pairs as the available (non-queried) values to your parameter (let's name it AgeRange):
18-40, 18040
41-60, 41060
61 and above, 61999
Now...
June 12, 2008 at 9:55 am
As an alternative to using T-SQL, you can add a calculated field to your report dataset and use an expression like:
=Switch(
Fields!Age.Value >= 18 And Fields!Age.Value <= 40, "18-40",
Fields!Age.Value >= 41...
June 7, 2008 at 2:32 am
Viewing 15 posts - 256 through 270 (of 311 total)