SQL Server Policy Based Management Condition 'conditionname' cannot be used for filtering.
Using SQL Server 2008 R2, I am trying to create a condition to be used as a filter at the database level. So for each database, I would like to test the presence of a Database Extended Property using the following code in the Expression/Field:
ExecuteSql('String', 'SELECT value FROM sys.extended_properties WHERE class_desc = ''Database'' AND name=''somepropertyname''')
I created the condition using the Database Facet.
The condition can be evaluated in a policy, but I cannot use the condition as a filter for a policy against the "Database" filter. If I create a new condition that can be used as a filter and try to edit that condition, I receive the following
error:
"Condition 'conditionname' cannot be used for filtering."
I cannot find any documentation on the limitations of filters. I am assuming that ANY use of ExecuteSql would not be allowed. This filter is important because I am testing the @IsEncrypted of Every StoredProcedure, Every Database. If the
database extended property is present, I want to skip the test.
CorkChop
Hi, you resolved this issue? If yes, how?
[]'s | Rodrigo Ribeiro Gomes | MCTS/MCITP Dev/DBA
Similar Messages
-
Update data automatically in sql server 2005 based on condition proplem
Hi guys i have problem I have two table
First one is
Second One is Vacation
as relation one to many (vacation has foreign key of Contract No OF Table Contract)
what i need is to update Contract table with field status =Finish where start vacation date >end contract Date
How i do that in sql server 2005 to make update automatically
Ex
contract table
status nvarchar(20)
end contract date time
vacation table
start vacation date time
end vacation date time
start vacation date is 23/10/2014
and End
is 26/10/2014
Now not update status in contract table to finish because vacation date start is less from end contract
but when date today is 27/10/2014 update contract table field status to finish
automatically with sql server 2005
How i do that condition to make update to data automatically based on changing on date
Update statement i need is
update Contract set status = finish where start vacation>end contract
but problem how i write this statement to update data automatically based on date todayPlease post DDL, so that people do not have to guess what the keys, constraints, Declarative Referential Integrity, data types, etc. in your schema are. Learn how to follow ISO-11179 data element naming conventions and formatting rules. Temporal data should
use ISO-8601 formats. You failed again. Code should be in Standard SQL as much as possible and not local dialect.
This is minimal polite behavior on SQL forums. Now we have to write the DDL that you did not bother with! What you did post was wrong! There is no key or constraints. There is no generic “status” in RDBMS; a "<something in particular>_status"
is a state of being, so it needs a temporal duration. The correct idiom for this data model is:
CREATE TABLE Vacations
(vacation_contract CHAR(15) NOT NULL PRIMARY KEY,
vacation_start_date DATE NOT NULL,
vacation_end_date DATE,
CHECK(vacation_start_date < vacation_end_date),
Oh, a field is nothing like a column. You need to read a basic SQL or RDBMS book; you do not know the basics.
--CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
in Sets / Trees and Hierarchies in SQL -
I am setting up redundancy for another RD Connection Broker? What is the earliest version of SQL that i can use in Windows Server 2012?
Hi,
SQL Server 2008 R2 is listed as the minimum version. I have not tried earlier versions for use with RDCB.
RD Connection Broker High Availability in Windows Server 2012
http://blogs.msdn.com/b/rds/archive/2012/06/27/rd-connection-broker-high-availability-in-windows-server-2012.aspx
-TP -
Will the reports developed in sql server 2008 r2 BIDS work when deployed on sql server 2012 reporting manager?
when I check on Microsoft site it says
Reports are not upgraded when you upload a report definition file directly to the report server
or SharePoint site. Upgrading a report definition in SQL Server Data Tools is the only way to upgrade the .rdl file.
When you open an .rdl file in Report Designer in SQL Server Data Tools (SSDT), if the report was
created for a previous namespace, Report Designer automatically creates a backup file and upgrades the report to the current namespace.
This is the only way you can upgrade a report definition file.
Now here is another confusing statement which says
You can upload an .rdl file created in an earlier version of Reporting Services to a SQL Server
2012 report server and it is automatically upgraded on first use. The report server stores the report definition file in the original format. The report is automatically upgraded the first time it is viewed, but the stored report definition file remains
unchanged.
All I want to know is if I deploy a rdl made in 2008 r2 to 2012 will it work on the report manager of
2012?
<o:p>
</o:p>
MudassarI have tested this fucntionality and can confirm that ssrs 2008 r2 reports work when you deploy them on new ssrs 2012 report manager .
No Migration is required .
I didnt even moved report server dbs .All I did is just deployed reports on the report manager and it worked .
"You
can upload an .rdl file created in an earlier version of Reporting Services to a SQL Server 2012 report server and it is automatically upgraded on first use. "
Microsoft needs to correct this the documentation is misleading
Mudassar -
Hi,
I try to install, the SQL Express 2008 R2 with Advanced
The installation has only one error (Error 1316. The Specific account already exists.) and the Management Tools Basic setup is failed.
Overall summary:
Final result: SQL Server installation failed. To continue, investigate the
reason for the failure, correct the problem, uninstall SQL Server, and then rerun SQL Server
Setup.
Exit code (Decimal): -2068052700
Exit facility code: 1212
Exit error code: 1316
Exit message: SQL Server installation failed. To continue, investigate the
reason for the failure, correct the problem, uninstall SQL Server, and then rerun SQL Server
Setup.
Start time: 2015-01-02 16:17:17
End time: 2015-01-02 16:24:01
Requested action: Install
Log with failure: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap
\Log\20150102_161500\SSCRuntime_Cpu32_1.log
Exception help link: http://go.microsoft.com/fwlink?
LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=10.50.4000.0
Machine Properties:
Machine name: KHPNHSI_BNANG
Machine processor count: 4
OS version: Windows 7
OS service pack: Service Pack 1
OS region: United States
OS language: English (United States)
OS architecture: x64
Process architecture: 64 Bit
OS clustered: No
Product features discovered:
Product Instance Instance ID Feature
Language Edition Version Clustered
Package properties:
Description: SQL Server Database Services 2008 R2
ProductName: SQL Server 2008 R2
Type: RTM
Version: 10
Installation location: g:\41bee43707e62fab54ec\x64\setup\
Installation edition: EXPRESS_ADVANCED
Slipstream: True
SP Level 2
User Input Settings:
ACTION: Install
ADDCURRENTUSERASSQLADMIN: True
AGTSVCACCOUNT: NT AUTHORITY\NETWORK SERVICE
AGTSVCPASSWORD: *****
AGTSVCSTARTUPTYPE: Disabled
ASBACKUPDIR: Backup
ASCOLLATION: Latin1_General_CI_AS
ASCONFIGDIR: Config
ASDATADIR: Data
ASDOMAINGROUP: <empty>
ASLOGDIR: Log
ASPROVIDERMSOLAP: 1
ASSVCACCOUNT: <empty>
ASSVCPASSWORD: *****
ASSVCSTARTUPTYPE: Automatic
ASSYSADMINACCOUNTS: <empty>
ASTEMPDIR: Temp
BROWSERSVCSTARTUPTYPE: Disabled
CONFIGURATIONFILE:
CUSOURCE:
ENABLERANU: True
ENU: True
ERRORREPORTING: False
FARMACCOUNT: <empty>
FARMADMINPORT: 0
FARMPASSWORD: *****
FEATURES: SQLENGINE,REPLICATION,SSMS,SNAC_SDK
FILESTREAMLEVEL: 0
FILESTREAMSHARENAME: <empty>
FTSVCACCOUNT: <empty>
FTSVCPASSWORD: *****
HELP: False
INDICATEPROGRESS: False
INSTALLSHAREDDIR: C:\Program Files\Microsoft SQL Server\
INSTALLSHAREDWOWDIR: C:\Program Files (x86)\Microsoft SQL Server\
INSTALLSQLDATADIR: <empty>
INSTANCEDIR: C:\Program Files\Microsoft SQL Server\
INSTANCEID: SQLExpress
INSTANCENAME: SQLEXPRESS
ISSVCACCOUNT: NT AUTHORITY\NetworkService
ISSVCPASSWORD: *****
ISSVCSTARTUPTYPE: Automatic
NPENABLED: 0
PASSPHRASE: *****
PCUSOURCE: g:\41bee43707e62fab54ec\PCUSOURCE
PID: *****
QUIET: False
QUIETSIMPLE: False
ROLE: AllFeatures_WithDefaults
RSINSTALLMODE: FilesOnlyMode
RSSVCACCOUNT: NT AUTHORITY\NETWORK SERVICE
RSSVCPASSWORD: *****
RSSVCSTARTUPTYPE: Automatic
SAPWD: *****
SECURITYMODE: SQL
SQLBACKUPDIR: <empty>
SQLCOLLATION: SQL_Latin1_General_CP1_CI_AS
SQLSVCACCOUNT: NT AUTHORITY\NETWORK SERVICE
SQLSVCPASSWORD: *****
SQLSVCSTARTUPTYPE: Automatic
SQLSYSADMINACCOUNTS: PSI\ssamnang
SQLTEMPDBDIR: <empty>
SQLTEMPDBLOGDIR: <empty>
SQLUSERDBDIR: <empty>
SQLUSERDBLOGDIR: <empty>
SQMREPORTING: False
TCPENABLED: 0
UIMODE: AutoAdvance
X86: False
Configuration file: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap
\Log\20150102_161500\ConfigurationFile.ini
Detailed results:
Feature: Database Engine Services
Status: Passed
MSI status: Passed
Configuration status: Passed
Feature: SQL Client Connectivity SDK
Status: Passed
MSI status: Passed
Configuration status: Passed
Feature: SQL Server Replication
Status: Passed
MSI status: Passed
Configuration status: Passed
Feature: Management Tools - Basic
Status: Failed: see logs for details
MSI status: Passed
Configuration status: Passed
Rules with failures:
Global rules:
Scenario specific rules:
Rules report file: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap
\Log\20150102_161500\SystemConfigurationCheck_Report.htm
Please help!
Samnang.Hi SSamnang,
According to your description, you come across the error that the specific account already exists. Please help to share the complete error log in C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20150102_161500\SSCRuntime_Cpu32_1.log. You could
use google drive to upload the error log following the steps in the article:
https://support.google.com/drive/answer/2424368?hl=en
From the exception help link, we notice that, the issue could be due to that an attempt fails to install SQL Server Native Client on a computer where SQL Server Native Client is already installed.
I recommend you to check if there is already an existing SQL Server Native Client on your computer. If there is an existing one, you could uninstall it and install SQL Server again.
In addition, there is a similar thread for reference:
https://social.technet.microsoft.com/Forums/en-US/dc31bffd-c9e2-4630-b5d7-9252b03c24fe/sql-2008-r2-management-tools-install-fails-the-specified-account-already-exists?forum=sqltools.
Regards,
Michelle Li -
I am trying to create a silent installation package for SQL Server 2012 Express Management Studio SP1. (both x86 & x64)
Prior to installation I have performed the following :
1. Turned ON the Windows feature 'Microsoft .NET Framework 3.5.1' (I had read somewhere on the internet that this is required prior to installation)
2. Installed Microsoft .NET Framework 4.0
I am using the following command line to perform an unattended install :
<EXENAME> /Q /IACCEPTSQLSERVERLICENSETERMS /ACTION=install /FEATURES=Tools
However, the installation fails abruptly.
The application installs successfully with the following command line :
<EXENAME> /IACCEPTSQLSERVERLICENSETERMS /ACTION=install /FEATURES=Tools
The error occurs only while attempting to install the application with the /Q switch appended.
Please help.Hello Fanny,
Thanks for providing the link to the SQL Server 2012 unattended install guide.
However, I must highlight that I was running the setup.exe with "Run As a Administrator" option and still facing the issue.
Anyways, I found out the root cause and I must say that it was a rather silly one.
As I had stated previously, the following command line was causing the issue :
<EXENAME>
/Q /IACCEPTSQLSERVERLICENSETERMS /ACTION=install /FEATURES=Tools
I simply changed it to the following and it worked....
<EXENAME>
/QUIET /IACCEPTSQLSERVERLICENSETERMS /ACTION=INSTALL /FEATURES=TOOLS
It so seems that everything must be in CAPITALS for this to work.
Regards,
Soumen -
Can't find SQL Server 2012 Configuration Manager
In my Win8 I can't find SQL Server Configuration Manager.
I need to connect to an SQL Database using a specific port.
Does anyone know how to do that?
Thanks a lot!!Hi Lina,
Did you install multiple SQL Server instances on your local server? We can not configure SQL Server 2012 instance under SQL Server 2008 R2 Configuration Manager.
If you had installed SQL Server Configuration Manager with SQL Server 2012, you can try to run "sqlservermanager11.msc". If this is not opening then you might not install SQL Server 2012 Configuration Manager.
Regards,
Fanny Liu
If you have any feedback on our support, please click
here.
Fanny Liu
TechNet Community Support -
Hello All,
The code bellow works fine on our production server (WebLogic 5.1 sp12, SQL Server
7), but it fails on our development server (same configuration):
Product.java
383: java.sql.ResultSet rs = null;
384: java.sql.CallableStatement cs = null;
405: cs.execute();
406: rs = cs.getResultSet();
407: while (rs.next()) {
445: cs.getMoreResults();
446: rs = cs.getResultSet();
447: if (rs != null) {
448: while (rs.next()) { <<<<<< ERROR LINE
The trace follows:
java.sql.SQLException: This object was closed() and cannot be used anymore. at
weblogic.jdbcbase.mssqlserver4.BaseHandler.complainIfClosed(BaseHandler.java:115)
at weblogic.jdbcbase.mssqlserver4.TdsResultSet.next(TdsResultSet.java:68) at weblogic.jdbcbase.pool.ResultSet.next(ResultSet.java:158)
at weblogic.jdbc20.rmi.internal.ResultSetImpl.next(ResultSetImpl.java:44) at weblogic.jdbc20.rmi.SerialResultSet.next(SerialResultSet.java:38)
at com.visitrade.Product.getProduct(Product.java:448) at com.visitrade.ProductDetailAction.perform(ProductDetailAction.java:74)
at org.apache.struts.action.ActionServlet.processActionInstance(ActionServlet.java:794)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:702) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:314)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at com.visitrade.VisitradeServlet.service(VisitradeServlet.java:58)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:120)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:945)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:909)
at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:269)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:392)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:274) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:130)
Any clues?
Thanks in advance,
Wagner DosAnjos CMC, Tampa, FLWagner DosAnjos wrote:
Hello All,
The code bellow works fine on our production server (WebLogic 5.1 sp12, SQL Server
7), but it fails on our development server (same configuration):
Product.java
383: java.sql.ResultSet rs = null;
384: java.sql.CallableStatement cs = null;
405: cs.execute();
406: rs = cs.getResultSet();
407: while (rs.next()) {
445: cs.getMoreResults();
446: rs = cs.getResultSet();
447: if (rs != null) {
448: while (rs.next()) { <<<<<< ERROR LINEThat looks like a driver bug. Duplicate it in a standalone program using the MS driver.
If getResultSet() returns a non-null, and the first thing yo do afterwards is call rs.next()
it shouldn't throw an exception. Download our latest driver from our site, and make sure it's
ahead of all our server stuff in the weblogic.classpath, by editing the startWeblogic script.
Joe
>
>
The trace follows:
java.sql.SQLException: This object was closed() and cannot be used anymore. at
weblogic.jdbcbase.mssqlserver4.BaseHandler.complainIfClosed(BaseHandler.java:115)
at weblogic.jdbcbase.mssqlserver4.TdsResultSet.next(TdsResultSet.java:68) at weblogic.jdbcbase.pool.ResultSet.next(ResultSet.java:158)
at weblogic.jdbc20.rmi.internal.ResultSetImpl.next(ResultSetImpl.java:44) at weblogic.jdbc20.rmi.SerialResultSet.next(SerialResultSet.java:38)
at com.visitrade.Product.getProduct(Product.java:448) at com.visitrade.ProductDetailAction.perform(ProductDetailAction.java:74)
at org.apache.struts.action.ActionServlet.processActionInstance(ActionServlet.java:794)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:702) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:314)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at com.visitrade.VisitradeServlet.service(VisitradeServlet.java:58)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:120)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:945)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:909)
at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:269)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:392)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:274) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:130)
Any clues?
Thanks in advance,
Wagner DosAnjos CMC, Tampa, FL -
Hello Team,
I am trying to execute a SSIS package from web page. When i try to do that i am getting following error.
"To run a SSIS package outside of SQL Server data tools you must install <task name used in package> of Integration service or highter."
In my machine Integration Services are installed and its service is also in running state.
Please help me on this.
Thanks,
Ramesh
Thanks, Ramesh ArigeThe SSIS package developed using SSIS 2008 Server R2 and Integrations Services 10.0 is exists in my machine. Is this wrong configuration, please help me on this.
I am using the below code copied from CodeProject
Thank you so much for responding.
Ramesh
Thanks, Ramesh Arige
Which way are you using from the provided blog? Using 1) C# Code or 2) C# and Stored Procedure?
Cheers,
Vaibhav Chaudhari
MCP, MCTS, MCSA (SQL Server 2012) -
Hopefully this will save somebody some trouble.
Running 64bit Enterprise SQL and SSAS with Service pack 2 installed.
Also running Proclarity so 32bit mode Reporting Services is running.
When trying to create a linked server to my OLAP database I was continually getting the following Error:
OLE DB provider 'MSOLAP' cannot be used for distributed queries because the provider is configured to run in single-threaded apartment mode. (Microsoft SQL Server, Error: 7308)
Many posts suggested I select the "in Proc" check box under the olap provider, but this did not help.
Finally, instead of using the IDE to create the linked server I used a script to call sp_addlinkedserver and used @provider='MSOLAP.3'. This fixed the problem.
If you have a more clear idea of why I was having the issue in the first place, feel free to let me know what you think.Try this thread:
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/f02a3921-7d0b-4038-97bb-9f17d381b345/linked-ssas-server-fails?forum=sqlanalysisservices
Talk to me now on -
I want to change my ID and when I try to it says that that e-mail cannot be used for my id because it is my "rescue" email address. How can I change my "rescue" e-mail address?
Go to My Apple ID (appleid.apple.com), click "Manage your Apple ID," and sign in.
With the Name, ID, and Email Address drawer selected, click Edit next to Apple ID and Primary Email Address.
Enter your new email address.
Click on Password and Security;
Answer the security question;
Delete your email from rescue address;
Do logout and login again into manage your apple id;
Go back to Name, id and email address;
Change your primary email address;
Verify your email address. -
Destination system cannot be used for classic qRFC by activating integration models
Hi All,
I am trying to connect ECC Release 702 to SAP TM 8.0 but by activating integration models(CFM2) i got following runtime error:
Error analysis
Short text of error message:
Destination TMCLNT100 cannot be used for classic qRFC
Long text of error message:
Technical information about the message:
Message class....... "SR"
Number.............. 320
Variable 1.......... "TMCLNT100"
Variable 2.......... " "
Variable 3.......... " "
Variable 4.......... " "
any one has idea how to solve that?
Thanks a lot!
Kind regards
RWRW,
I am definitely not an expert on SAP Transportation Management. However, maybe your destination system has been set up as bgRFC instead of qRFC?
bgRFC (Background Remote Function Call) - Connectivity - SAP Library
Best Regards,
DB49 -
This apple ID cannot be used for MobileMe Sign in with a different Apple ID
When I try and use my Apple ID to setup the free find my account on MobileMe I get this error after I hit the OK on the pop that reads Terms of service have changed.
"This apple id cannot be used for MobileMe. Sign in with a differant Apple ID"
I can see the TOS page behind the pop up box my Apple ID is valid
Any Suggestions
Thanks
DennisI'm having the same issue with my iPad. I also used to have MobileMe, but cancelled. I seem to have two Apple ID's with the same email address. One Apple ID is not an email, the other Apple ID is my email address. They have different passwords and I can manage both. My iTunes Store one is the one without the email address. I had to use the email address Apple ID for Game Room.
I am in Live Chat Support with Apple right now. -
Error: The chosen certificate was not exported and cannot be used for SSL
Hello there,
when I try to configure the profilemanager in OS X Server and it comes to choose a certificate i get the following message:
The chosen certificate cannot be used.
The chosen certificate was not exported and cannot be used for SSL.
I chose our Wildcard certificate we received from Thawte.
It is completely imported in the Keychain from the Mac.
(Sorry if any sentence is wrong, I translated it from german to english)
Best regards,
ChristophIs this a regular web ssl cert or a code signing cert?
-
Help! My iPod touch won't let me download any apps. A message keeps coming up saying "This Apple ID cannot be used for the iTunes store. Please enter another Apple ID" I changed my ID to see if that would work but the same message still comes up.
Where are you physically located?
What country's Store are you using?
The two have to be the same and the payment method for your account also has to be associated (billing address, where iTunes gift card was purchased) with that country.
Has the ID(s) worked before for purchases for this country's store?
Maybe you are looking for
-
Mac Pro - "Quad", 2 X 2.66Ghz; 5GB RAM; OS X 10.5.6 Mac Pro will not boot. It powers up to the grey Apple logo screen. The progress circle spins for about 3 seconds, then powers itself off. This past week I came back from two weeks off. The first mor
-
OptionGroup is not set in Listbox
hi, i use ui:selectBox, listbox is populated well but when i set the option group it give error, i aslo try for first value of listbox selected. my jsp code: <ui:listbox binding="#{tpListing.listbox1_sub}" id="listbox1_sub" items="#{tpListing.airport
-
Forgive me, but I don't know what this is called. I have a piece of text in a top layer and below it a video. I want to be able to have the text's movement match a feature in the video, so it appears to move with it. Does FCE do this, or are there pl
-
Cannot connect iPod at all to my computer
I have tried everything from the help topics to do so. My iPod is now not playing properly. I don't know what to do and am waiting to find out about my warranty. Any suggestions or do you think my iPod is hosed? This is the second one I have that is
-
OK, You guys helped me out last night, but I have one more question. I downloaded Jam to burn my master disk to comply with Redbook. Do I just take my mixdown GB tracks from iTunes and drag them to Jam & burn? Does this then convert the AIFF to Redbo