Constrained Flag In The STRTOSET Function Violated?

I get this error when, i try to set a parameter for user input, it doesnt
matter what i type in, it says this:

<<Query (1,408) The Restrictions imposed by the constrained flag in the
STRTOSET function were violated>>

what exactly does this mean? and how do i fix it?

My parameter is for dates, but i have the datetype set to "String", when i
change it to" DATETIME" , i get the same error when i select from the
calendar. So far the only date option that is working right now. Is a long
drop down list, that could go for days at a time. I just want users to be
able to input dates, such as "Jan 9, 2000" or 10/10/1999. What can i do about

View Replies


Constrained Flag In The STRTOSET Function Violated

I am having a really hard time trying to get around the auto generated MDX when I use a date as a parameter. It is forcing the values to be string and this is not allowing me to use the date picker on the reports. Can anyone help me figure this one out? Is there any way to use the date picker when using a cube dataset?

View Replies View Related

Unknown Members In Report Parameter Causes CONSTRAINED Flag Error In STRTOSET Function When NullProcessing Unknown Member


I'm using MS Report Designer 2005 and have created a report that uses a cube, with a dimension set up to convert null values to unknown (nullProcessing = UnknownMember).

When I create a parameter using the checkbox in the graphical design mode's filter pane, Report Designer automatically sets the constrained flag, eg:


When running the report and selecting the 'Unkown' value from the parameter list, the error 'the restrictions imposed by the CONSTRAINED flag in the STRTOSET function were violated' occurrs.

How can I prevent the constrained flag from being used, or am I doing something wrong with converting null values to 'Unknown'?


View Replies View Related

OLAP Multi Value Parameter Error:Members Belong To Different Hierarchies In The STRTOSET Function

Hi - I am building a reoprt (SSRS, SQL Server 2005) with a multi value parameter that exposes a picklist on the report page - when ALL is selected, or certain combinations of the elements in the picklist are chosen, I get the following error, that a query failed for a dataset because:

Members Belong to Different hierarchies in the STRTOSET function.

I have built reports with multiple value pick list before, and not encountered tis error. Any ideas? I cannot find a reference to this error anywhere.



View Replies View Related

Un-flag Reinitialization Flag On Trans Subscription

Here's my predicament. I changed the filter on an article within a subscription, but not in a meaningful way. I just added "database.dbo." before a column name, but now my subscription is flagged for reinitialization, and won't replicate any transactions unless I start over with a new snapshot. I don't want that to happen. How can I reset the article properties somewhere to get it back the way it was and continue replicating transactions.

(I needed to add "database.dbo" so that another job that looks at the filter info would point to the correct database. Next time maybe I'll just modify the table that stores the filter info)

The reason I don't want to snapshot from the beginning is that I have procedures on the subscribing server that fire triggers from the transactions, so all the jobs "downstream" would get all out of sync.


View Replies View Related

0xC020906A The Data Value Violated The Schema Constraint


Recently I had the following error when I tried to run an update command:
0xC020906A The data value violated the schema constraint

At the end of a data flow I wanted to do an update on the data I gathered during that data flow.

The sql-command was something like:
"Update MyTable set aField=? where theID = ISNULL(?,-1)"

Apparently SSIS doesn't accept a null value to be placed in the parameter or am I totally wrong (and I hope I am)? Maybe I have to change the sql-command, if so, please tell me.
Anyway, I replaced all the null values by a -1 via a Derived Column task before entering the command task and the problem was solved.


View Replies View Related

Constrained Delegation For SSRS

I am having a problem implementing constrained delegation for SSRS. I have followed the (very good) instructions located here:

I have chosen the option of running the application pool for SSRS under a domain user account. This is the same account that I use to run the SSRS service.

I have the authentication providers for the site set to "Negotiate,NTLM".

I also made sure that the application pool user account has rights on the ReportManager and ReportServer directories.

If browse to the URL while logged on to the SSRS server then I am able to access the site
My problem is when I try to access the site from anywhere but locally on the SSRS server:

I get a logon prompt if I try to access the SSRS URL from a different workstation. After three tries to login I get: "You are not authorized to view this page". Even with an account that is local admin on the SSRS Server.
If I set the authentication providers for the site to "NTLM" then I am able to access the site from a different workstation but of couse constrained delegation does not work.
Have i overlooked something? What could be causing the login prompt?

View Replies View Related

Filtering Result Sets With STRTOSET

Here's part of my query:


[Heidtman DW]))) WHERE

(IIF( STRTOSET(@DimSalesTypeDescription, CONSTRAINED).Count = 1, STRTOSET(@DimSalesTypeDescription, CONSTRAINED), [Dim Sales Type].[Description].currentmember ),

This should filter the result set, returning only those items that match the parameter that is selected. I would like to run a different filter which returns everything EXCEPT the parameter selected. Is there a way to do that with STRTOSET?


View Replies View Related

Error:Column 'FieldName' Is Constrained To Be Unique. Value '0' Is Already Present

Can anyone help me?
when I am inserting a record to a dataset I am getting  Column 'FieldID' is constrained to be unique.  Value '0' is already present.
I have 2 fields in table like FieldID,FieldName where FieldID id is Primary key and identity column
I am not inserting any value to FieldID as it is identity column.
DataRow newDR= dbDataSet.Tables[strTable].NewRow();for (int i = 0; i < e.Row.Cells.Count; i++)
{ if ( e.Row.Cells[i].Key != "FieldID" )
{if (e.Row.Cells[i].Value != null)
newDR[e.Row.Cells[i].Key] = e.Row.Cells[i].Value;dbDataSet.Tables[ strTable].Rows.Add(newDR);
Some times it is woking fine with out any error............

View Replies View Related


hi all!

i have columns.
1. Flag : stores only + / - / <NULL>
2. Number : stores float

how would i select this 2 columns to generate -ve and +ve number depend on the flag? eg :
Flag : -
Number : 4 ====> -4 and +4 if flag=+

when i try to just to combine with -(Flag) for -ve, it gave converting type error even i already CAST it..

tq in advance

~~~Focus on problem, not solution ¯(º_o)/¯ ~~~

View Replies View Related

Triggers And Flag Bit

I have a perl script (uses sql query) that will run if there is anyupdate in the row. Currently, I am a trigger that sets the DateModifiedfield with getdate() Then my perl script looks for certain range ofmodified dates and runs the necessary query.I am trying to come up with a different mechanism where I don't have touse the date field. I am looking into flag bits. But not sure howto use it.Should I create a trigger that will set the flag bit after any update?This way the script will just look for the updated records, regardlessof what time it was updated. Maybe I am misunderstanding flag bits, thenafter another subsequent update how would the perl/sql script know whichrecords were updated? I hope this make sense.thanks.--s

View Replies View Related

Trace Flag Help

I'm trying to use trace flag 1204 to get some detailed deadlock information
In EM, I add startup parameter -T1204, and then I stop and start the server.
I run two jobs that I have setup to deadlock, and they do. But no information about the deadlock is in my sql error log? anyone know what I am doing wrong? thanks.

View Replies View Related

Version Flag


I have following scenario where I need to populate version flag based on the partyid, count and seq columns.

Here is it how it should populate for each new count of a partyid the max(seq) should be versioned as 1

For example

10011 1
10111 0
10112 1
10121 0
10122 0
10123 1
10231 1

Is there any way to populate this version flag.

Any sugggestions and inputs would help


View Replies View Related

Regressor Flag

I am trying to build a decision tree algorithm with multiple regressors. I am having trouble changing the properties for the input variables to regressors (the only multiple flag choice is "not null"). I created a mining model using the DMX query thinking I could change the code to include multiple regressors, however I get a syntax error when trying to execute the model. Also, I am wondering if you can view the dmx code for a model built using the mining wizard.

My query is as follows:


(Machine Long Key,


[Cabinet] Text Discrete,

[CUID] Long Continuous PREDICT_ONLY,

[Denom] Text Discrete,

[Gametype] Text Discrete,

[Max Coins] Text Discrete,

[Par] Long Continuous,

[Pos] Text Discrete,

[Progressive] Text Discrete,

[Type]Text Discrete)

Using Microsoft_Decision_Trees

View Replies View Related

Getting Records Where Flag='Y' Or If No Y Then N

If you have a table with columns like Category int, Cost money, EffectiveDate DateTime, SpecialFlag (char Y or N) how would you write a query to get for each category, get the most recent, with a specialFlag of Y if a Y record exists and if not, grab the N record?

I have tried using the exists clause for the flag, but as soon as I mix in the group by to get the latest effectivedate, the max is evaluated first and I am not guaranteed to use the Y records if they exist.

To illustrate:
A 1, $10, 1/1/2007 Y
B 1, $12, 1/1/2007 N
C 2, $5, 6/7/2007 N
D 2, $4, 1/1/2007 N
E 3, $1, 1/1/2007 Y
F 3, $2, 6/7/2007 Y
G 3, $3, 2/1/2008 N

I want records A because it is flagged Y, C because it is the most recent and there is no Y record and F because it is flagged and most recent.

View Replies View Related

Backup Flag

Hi there,

I'm working on a program and I want it to check to see if the database it is pointed to has had a backup done against the database in the last 10 days. I will then throw a message box indicating that the database has not been backed up and that they should consider doing so.

Is there any attibute that I can check to see when the last time the database was backed up?

THanks for your input! - Eric -

View Replies View Related

Flag Random Record

I am using this select statement to radomly display a recordSelectCommand="SELECT TOP 1 *  FROM [TBL_Example] ORDER BY NEWID()I need to, however, flag this record, to determine if it has already been previously randomly selected, and won't take part in future random selections.I will need to add a where clause to the above, but what I am unsure of is what I should do for the insert statement.  I guess I could figure this out on my own as well if I could determine a means to prgramatically store my PK from the above record in session.Any ideas?

View Replies View Related

Trace Flag (3605) ???.

Does any body has any ideas what the trace flag (3605). We try to test the deadlock in SQL Server 7 but we do not see the error file. The following trace flags was turn on. No error was return but we got the deadlock message. If you have encounter this problem and have solution for it, please share with me. Thank you

Please cc directly to me also:

This is the simulate the problem:

dbcc tracestatus(-1)

TraceFlag Status
----------- -----------
1204 1
1205 1
1208 1
1704 1
3604 1
3605 1

first process:

begin tran

update mytitle
set title_id = `abcd`
where title_id = `bu1111`

waitfor delay `00:00:20`
update mytitle
set title_id = `abcd`
where title_id = `bu1032`

commit tran


Error return but we cannot see in the server trace flag (3605)

Server: Msg 1205, Level 13, State 17
Your transaction (process ID #20) was deadlocked with another process and has been chosen as the deadlock victim. Rerun your transaction.

Second processes:

begin tran

update mytitle
set title_id = `abcd`
where title_id = `bu1032`

waitfor delay `00:00:20`

update mytitle
set title_id = `abcd`
where title_id = `bu1111`

commit tran


View Replies View Related

Update Notification Flag

i want to make a stored procedure that will update the notification flag in the table.

If the email was succesfully sent the flag will be updated as SENT. And if it is un successful the flag will be NOT SENT in column of the table in SQL. The email will be send using .NET codes and updates of notification flag will use SQL stored procedure. Please help

View Replies View Related

Setting A Failure Flag

I created a package wide OnError event handler with the following script:

Imports System

Imports System.Data

Imports System.Math

Imports Microsoft.SqlServer.Dts.Runtime

Public Class ScriptMain

' The execution engine calls this method when the task executes.

' To access the object model, use the Dts object. Connections, variables, events,

' and logging features are available as static members of the Dts class.

' Before returning from this method, set the value of Dts.TaskResult to indicate success or failure.


' To open Code and Text Editor Help, press F1.

' To open Object Browser, press Ctrl+Alt+J.

Public Sub Main()


Dts.Variables("FailureFlag").Value = True


Dts.TaskResult = Dts.Results.Success

End Sub

End Class

I ran the package with an error and set a break on error condition. When I looked at the value of "FailureFlag" it was False. Any ideas why it is not being set?

I have a post execute event that is supposed to rollback from a snapshot on failure and it is not doing so on failure so I'm trying to figure out what's wrong.

View Replies View Related

Trace Flag (-T1222)


Do i need to restart SQL Database Engine Service once I set trace flag (-T1222).


View Replies View Related

Setting Trace Flag

In order to use Microsoft Dynamics NAV with the SQL Server 2005, I need to set Trace Flag 4616, and I know it's a setting somwhere, where I can add this flag no. -but I can't remember where? Please help?

View Replies View Related

Zusammengesetzter Primary Key Mit Deleted-Flag

Knifflige Frage zu Datenbanken:Es gibt Tabellen, die mehr als ein PK-Feld haben; also z.B.MAID und GMID.Soweit ok.Nehmen wir an, aus dieser Tabelle sollen keine Datenstze physikalischgelscht werden, sondern der Lschstatus durch ein Datenfeld GELOESCHTangegeben werden. Hat das Feld den Wert 0, dann ist der Datensatz nichtgelscht; ansonsten steht der Zeitpunkt (Tag und Uhrzeit) der Lschung drin.Dann funktioniert der PK nicht mehr, denn es knnen ja durchaus mehrereDatenstze mit gleicher MAID und GMID vorhanden sein. Aufnehmen vonGELOESCHT in den PK geht theoretisch, ist aber gefhrlich (daFliekommafeld, und wer wei schon, ob 0 immer gleich 0 ist...).Hat jemand eine Idee?SWE@KP

View Replies View Related

Waiting On Flag To Activate Jobs ?

is there a way to automate a job to wait on a flag in a directory and to start my maintenance plans ?

if so how would i code is there external functions plz help.

View Replies View Related

Trace Flag For Table Scan?

Does anyone know of a trace flag that you can set that will tell you when your code is doing a table scan?

Many thanks in advance!

View Replies View Related

Deadlocks & Trace Flag 1204

I am trying to investigate some deadlocks. I have executed dbcc tracon(1204) in query analyser, within the connection issuing the query always chosen as deadlock victim, but I do not get a deadlock report in the error log when the next deadlock occurs.

Any ideas why not ?

View Replies View Related

Copyrights 2005-15, All rights reserved