How to revoke the ddl statements in the same user's objects
anyone pls,
I need to restrict ddl on the same user's objects.
means, i'm having a user common. my developers are keep on creating tables and alter the existing tables. Even if they are the owner of the objects, can possible to revoke the create and alter only?
if possible means, could u advice with queries.. because now only i'm learning dba sides.
Thanks in advance,
Regards,
RengarajR
Hi Vadim.
GREAT! Our requirement is fulfilled by that way you described. Special thanks for your help!!!
Best regards,
Masa
Similar Messages
-
How to use the Include Statement in the BADI
Dear All,
I am trying to implement the BADI. So i need to use the Include in the BADI.
How to use the Include statement in the BADI. I cant able to use it in the Public, Private and protected statement.
Where should i mention that,,,,
Thanks
YogeshHi Sharat,
Thanks for your reply.
I need to use the BADI HRWPC_PCR_APPR_FORM. In which the values are available in the Container. So if i need to use the container values then i need to use that include <cntain>.
Is there any possible ways to make it.
Thanks
Yogesh -
Please Help!!!
How to write a case statement for the totals column of two different years (2013 and 2014) of the same month so that I can get a +/- column.
January 2014 January
2013 +/-
Region Entry Exit Total Entry Exit Total (Total of Jan2014-Total of Jan2013)
A 2 3
40 5 7 30 40-30= 10What is a table structure? Sorry cannot test it right now..
SELECT <columns>,(SELECT Total FROM tbl WHERE Y=2014)-(SELECT Total FROM tbl WHERE Y=2013)
FROM tbl
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence -
How to pass the bind variable value to the sql statement of the LOV
Hi,
I am using Forms 10g builder.
I have a text item which will be populated by a LOV when i press a button, but i have a bind variable in the SQL statement of the LOV. That bind variable should be replaced by a value which is derived from a radio group in the same data block.
For Ex: ( )radio1 ( )radio2
before i click on the push button, I'll select one of the radio button above,so my question is how to assign this radio group value to the bind variable in the sql statement in the LOV?
Pl any hint is appreciated!
Thanks
ReddyThe variable can be taken into account in the SELECT order contained in the Record Group used by the LOV.
e.g. Select ... From ... Where column = :block.radio_group ...Francois -
How do you save "game state" so the user can continue next time?
I'm not sure what the correct game terminology is for this, but how do you save "game state" so the user can continue next time?
This seems like a pretty important feature for building some games, we don't want users to have to start over everytime.
Any ideas if this is possible?Check out my blog post on the PersistenceManager:
http://www.unitedmindset.com/jonbcampos/2010/11/01/flex-4-5-persistencemanager/
This will help you understand how to store the data. When the app starts up again get the state information from the persistencemanager and reset you game to the state you need. It requires a bit of code for the startup, but it is relatively simple. -
How can I set the initial state of the PGCTR0 out pin?
Hi,
I have a 6115 board, and I am trying to generate a pulse train on PGCTR0 with an external clock. The external clock signal is connected to PFI1 and the PGCTR0 is gated through PFI0. The PGCTR is reset at the end of each run.
The problem is that the initial state of the PGCTR out pin changes from run to run, but I'd like it to stay high after reset. Any help is appreciated. THanks.
fengHi Feng,
The default output state of your counters should be high depending on your board. If you run a counter application, and the line ends in a low state it will stay low. One way to change the output state is to not only reset the counter but reset the board (see knowledge base linked below). The other way is to treat it like a digital line (see second link below). This is probably the best method. This method should allow you to read the value and change it using a couple software calls. Instead of disabling the counter, I would reset the counter since you just want to reset the state. This method is also a decent workaround because you are resetting the counter anyway. Hope that helps. Have a good day.
Default State of Counter Output Lines
on E Series Data Acquisition Devices
http://digital.ni.com/public.nsf/websearch/008995633E33E47486256B5F00034436?OpenDocument
Using the General Purpose Counter (GPCTR) on the Data Acquisition (DAQ) Device as a Digital Line http://digital.ni.com/public.nsf/websearch/B8A49A4E33F38AB686256B610061DC6D?OpenDocument
Ron -
I'm getting an error on a line in the middle of a larger sql script, only in SQL Azure.
IF NOT EXISTS (SELECT * FROM sys.database_principals WHERE name = N'foouser')
CREATE USER [foouser] FOR LOGIN [foouser] WITH DEFAULT_SCHEMA=[dbo]
GO
Error: "The CREATE USER statement must be the only statement in the batch."
I don't actually understand what 'the only statement in the batch' means.
What is a batch? Is it a SQL file? Is it related to a 'GO' statement or an 'IF' statement? What is the reason for the error? And how do I avoid it?
Thanks,
Tim>IF...ELSE imposes conditions on the execution of a Transact-SQL statement
I understand the general purpose of an If statement. I could let go of our definition of statement counting disagreeing too except that because of the error I'm stuck.
It's less important for Create User but what I am really puzzled over now is a very similar issue how am I supposed to do a safe version of CREATE LOGIN, when I don't know whether a login has been previously created on the server or whether I
am setting up the database on a clean server?
IF NOT EXISTS (SELECT * FROM sys.server_principals WHERE name = N'foouser')
CREATE LOGIN [foouser] WITH PASSWORD = 'asdfasdf'
GO
If I try and execute this script, it throws the same error as above.
The first unworkable workaround idea is to omit the if statement
CREATE LOGIN [foouser] WITH PASSWORD = 'asdfasdf'
GO
But if the login already exists on the server (because a similar script was already run), then the script throws an error.
The second unworkable workaround idea is to do
DROP LOGIN [foouser]
GO
CREATE LOGIN [foouser] WITH PASSWORD = 'asdfasdf'
GO
Obviously this throws an error in the second block if the login doesn't already exist on the server.
The third workaround idea I have is to go conditional by putting an IF condition around DROP instead of CREATE:
Unfortunately that doesn't work for me either!
"The DROP LOGIN statement must be the only statement in the batch"
(This is despite the fact that 'drop login' is listed on the
supported commands page, not the partially supported page..?! Which disagrees with the notes on
this page.)
Anyway the real question I am interesting in addressing is: is there actually a way to have a 'Create/Delete login
if exists' operation which is SQL-Azure compatible and doesn't throw me error messages (which messes with the sql execution tool I am using)?
If there is no way, I would like to believe it's because it would be a bad idea to do this. But in that case why is it a bad idea?
Tim -
hi,
when i was trying to deploy a SP solution from my vs 2012 solution. this error is displayed.
i tried many things like
1) get the wsp and apply power shell cmds to add and deploy, here also it failed:
Add-SPSolution -LiteralPath d:\mywsp.wsp
Install-SPSolution mywsp.wsp -GacDeployment -AllWebApplications -Local
2) restart the timer services and do iisreset and reboot the server. etc .as mentioned in one of the the below blogs:
http://sharepoint1on1.blogspot.in/2014/04/sharepoint-error-occurred-in-deployment.html
http://suehernandez.wordpress.com/2011/03/31/error-occurred-in-deployment-step-activate-features-operation-is-not-valid-due-to-the-current-state-of-the-object/
http://www.dotnetsharepoint.com/2014/04/error-occurred-in-deployment-step-add.html
http://social.msdn.microsoft.com/Forums/en-US/63adde23-03cf-4b65-923e-1219da94a780/error-occurred-in-deployment-step-add-solution-operation-is-not-valid-due-to-the-current-state-of?forum=sharepointdevelopmentprevious
http://www.shakirmajeed.com/error-occurred-in-deployment-step-activate-features-operation-is-not-valid-due-to-the-current-state-of-the-object/
but even after doing all these steps, the error still persists!. and am not deploying into a remote server, the dev env is in a VM, where sp 2013, vs 2012, sql 2012 are installed.
just wanna share one note: there is a isue in my search admin component. index was reset due to some reason. and from that time onwards my search full/incremental crawls were not working!
will this cause an issue in my wsp deployment ? i hope it wont, still asking...
can anyone help me how to resolve this error.because this is a show stopper for me for the last few days!
help is highly appreciated!This issue cause because of feature activation failure while WSP deployment.
when you create a WSP using visual studio, it creates WSP package with default deployment configuration settings.
Please restrict feature activation configuration, this will help you to troubleshoot this issue.
- Click on Project in WSP and press F4, it will open "Project Properties"
- set "Active deployment Configuration" - as "No Activation"
- you can activate this features in required sequence after deployment using Activate-SPFeature
If my contribution helps you, please click Mark As Answer on that post and Vote as Helpful
Thanks, ShankarSingh(MCP) -
The update operation is not allowed in the current state of the request
When users have logged a request through the service manager 2012 portal and they go back in to add user input they sometimes receive a message that says " The update operation is not allowed in the current state of the request." The state of the
request has not changed it is still Active and has not breached its service level .
I can't seem to find any information about this error and don't know how to troubleshoot it. Any help and advice would be appreciated.
Thanks
Sarahok, so they're adding user comments after creating the service request. looks like this:
the first thing to check is that the user is added to the default, un-scoped "End User" security role, or the custom end user security role they are added to has a scope that includes all work items. The "user input" field adds a user comment related
to the SR, so the ability to create user comments is required to use this field. -
I'm trying to share a folder in OneDrive with another user in my organization, and create a link so that people outside of the company can see the folder. Whenever I try to create a link I get an error that says: "Couldn't create the link sorry something
went wrong operation is not valid due to the current state of the object" How do I resolve this?Hi,
Sorry for replying late and I noticed that you posted another thread in this forum:
http://social.technet.microsoft.com/Forums/en-US/2b8c6f54-9c59-4b37-b28f-1d49a1b7913b/operation-is-not-valid-due-to-the-current-state-of-the-object-error-when-trying-to-create-a-link?forum=officeitpro
I've replied and kindly refer to it to see if it is helpful.
Regards,
Melon Chen
TechNet Community Support -
A better way to determine the current state of the FLVPlayback component?
Below is the AS3 code I have used to display images (MCs) over an instance of the FLVPlayback component. These images (one for loading, one for the title) are to appear – or disappear – according to the current state of the FLVPlayback component.
It “works,” but when testing, I have noticed that it can be rather finicky. The most common issue that arises is that many times the loadPoster movieclip will still be visible even though the video has entered the playing state.
Also, I wanted a title placeholder image to appear whenever the user stops the video or if the video completes. However, I had to add the conditional statement to the “stoppedStateEntered” case to make everything appear when expected. When the video is first viewed (and has completed buffering), it seems that the FLVPlayback component enters the stopped state before entering the playing state. Thus, the titlePoster would flash on the screen right before it and the loadPoster “should” disappear when the video begins playing.
Even in my limited testing, these issues were very easily re-created. I am definitely looking for a more reliable solution. Is there a better (or more correct) way to go about all this? If possible, I would like to stick with the FLVPlayback component, just for the simple fact of not having to code my own.
Where am I going wrong?
function updateMoviePoster(event:VideoEvent):void
switch (event.type)
case "playingStateEntered":
loadPoster.visible = false;
titlePoster.visible = false;
break;
case "stoppedStateEntered":
if (loadPoster.visible == false)
titlePoster.visible = true;
break;
case "complete":
titlePoster.visible = true;
break;
myFLVPlayback.addEventListener(VideoEvent.PLAYING_STATE_ENTERED, updateMoviePoster);
myFLVPlayback.addEventListener(VideoEvent.STOPPED_STATE_ENTERED, updateMoviePoster);
myFLVPlayback.addEventListener(VideoEvent.COMPLETE, updateMoviePoster);Any suggestions? I would truly appreciate the help.
-
I created a SharePoint 2013 farm solution project in Visual Studio 2013 (running on the same machine where SharePoint 2013 server is running) with
event receiver. I added web.config at project root level to store connection string (I'm working off external SQL DB) and got the following error during deployement:
Error 27
Error occurred in deployment step 'Activate Features': Operation is not valid due to the current state of the object.
When I commented out the ConfigurationManager.ConnectionStrings["MyConnectionString"].ConnectionString; the error went away. Am I missing something or not supposed to add my own App.config to SharePoint project solution?Hi,
From your description, you might want to store your connection string in web.config and there is an error during deployment.
It is recommended to store the configuration data of SharePoint solution in either property bags or hierarchical object store.
The links below will provide more information about this:
http://blogs.msdn.com/b/zwsong/archive/2012/03/27/where-should-you-store-your-sharepoint-solution-s-configuration-data.aspx
http://msdn.microsoft.com/en-us/library/ff647766.aspx
Thanks
Patrick Liang
Forum Support
Please remember to mark the replies as answers if they
help and unmark them if they provide no help. If you have feedback for TechNet
Subscriber Support, contact [email protected]
Patrick Liang
TechNet Community Support -
My NBA League Pass login cannot be authenticated -- I am in the United States and the same league pass name and password are working for my iPad, but not for my apple tv.
I have this same issue and am becoming quite upset. NBA has absolutely no contact information to call and resolve this issue. I just spent $139.99 and cannot connect to Apple TV, while the same login works just fine on my iMac and iPad. When I signed up, the information provided indicated that I could view live games on Apple TV. What the ****?
-
WCF Service update UPS. Operation is not valid due to the current state of the object.
I try import custom data to custom user properties from my own wcf service (on sharepoint server machine), but i got
Message "Operation is not valid due to the current state of the object. "
on line
userProfile[PropertyConstants.Department].Value = "SDDDD";
Why i cant modify property value?
SPSecurity.RunWithElevatedPrivileges(delegate()
using (SPSite site = new SPSite("http://portal.local"))
SPServiceContext serviceContext = SPServiceContext.GetContext(site);
using (var web = site.OpenWeb())
Debug.WriteLine(web.CurrentUser); //Here AppPoolAccount user of current wcf service
Debug.WriteLine(WindowsIdentity.GetCurrent().Name); //Here too AppPoolAccount user of current wcf service
UserProfileManager userProfileMgr = new UserProfileManager(serviceContext);
ProfilePropertyManager profilePropMgr = new UserProfileConfigManager(serviceContext).ProfilePropertyManager;
ProfileSubtypePropertyManager subtypePropMgr = profilePropMgr.GetProfileSubtypeProperties("UserProfile");
UserProfile userProfile = userProfileMgr.GetUserProfile(accountName);
userProfile[PropertyConstants.Department].Value = "SDDDD";
userProfile.Commit();
My service running under domain\SPSvcAcc what have full permissions on UPS service, it's management account and UPS admin with full rights.
If i create console app with identical code and run it under SPSvcAcc account it working without problems
What i do wrong?Hi,
pls seee if you can add threading like this below to solve the pbm
https://social.technet.microsoft.com/Forums/office/en-US/b6d6f85c-e12b-4540-a821-690e296b7b56/operation-is-not-valid-due-to-the-current-state-of-the-object-exception-when-activating-a?forum=sharepointdevelopmentprevious
Please remember to click 'Mark as Answer' on the answer if it helps you -
Write the DDL to construct the Facebook User and Post tables in SQL server.
Write the DDL to construct the Facebook User and Post tables in SQL server. You need to populate the user table with the user’s information provided as in Figure 1 and additional attributes may be needed for the design. Use the ID in the excel file to
identify the other Facebook user. For example ID 612831408762037 is David Cunliffe. Import the excel sheets to SQL server and then write effective SQL to merge the two tables into the Post table. Ensure the relationship is maintained between entities. Submit
the SQL scripts that create the database and tables, import the excel sheets and populate the tables such that one can re-create the database and tables with all the data by running the script.IF NOT EXISTS(SELECT * FROM sys.databases WHERE name = N'xxx')
CREATE DATABASE xxx
GO
USE xxx
IF EXISTS(SELECT * FROM sys.tables WHERE name = N'DAVID')
DROP TABLE DAVID;
IF EXISTS(SELECT * FROM sys.tables WHERE name = N'JOHN')
DROP TABLE JOHN;
IF EXISTS(SELECT * FROM sys.tables WHERE name = N'NEWDAVID')
DROP TABLE NEWDAVID;
IF EXISTS(SELECT * FROM sys.tables WHERE name = N'NEWJOHN')
DROP TABLE NEWJOHN;
IF EXISTS(SELECT * FROM sys.tables WHERE name = N'USER')
DROP TABLE [USER];
IF EXISTS(SELECT * FROM sys.tables WHERE name = N'POST')
DROP TABLE POST;
CREATE TABLE DAVID(
ID VARCHAR(100),
[MESSAGE] VARCHAR(MAX),
[TYPE] VARCHAR(MAX),
CREATED_TIME VARCHAR(MAX),
UPDATED_TIME VARCHAR(MAX),
SHARES_COUNT VARCHAR(MAX),
[COUNT OF LIKES NAME] VARCHAR(MAX),
[COUNT OF COMMENTS MESSAGE] VARCHAR(MAX),
LINK VARCHAR(MAX),
NAME VARCHAR(MAX),
[DESCRIPTION] VARCHAR(MAX),
CREATE TABLE JOHN(
ID VARCHAR(100),
LINK VARCHAR(MAX),
NAME VARCHAR(MAX),
[DESCRIPTION] VARCHAR(MAX),
[TYPE] VARCHAR(MAX),
CREATED_TIME VARCHAR(MAX),
UPDATED_TIME VARCHAR(MAX),
[COUNT OF LIKES NAME] VARCHAR(MAX),
[COUNT OF COMMENTS MESSAGE] VARCHAR(MAX),
[MESSAGE] VARCHAR(MAX),
SHARES_COUNT VARCHAR(MAX),
EXECUTE (N'BULK INSERT DAVID FROM ''' + 'datapath' + N'david.csv''
WITH (
CHECK_CONSTRAINTS,
CODEPAGE=''ACP'',
DATAFILETYPE = ''char'',
FIELDTERMINATOR= '','',
ROWTERMINATOR = ''\n'',
KEEPIDENTITY,
TABLOCK
EXECUTE (N'BULK INSERT JOHN FROM ''' + 'datapath' + N'john.csv''
WITH (
CHECK_CONSTRAINTS,
CODEPAGE=''ACP'',
DATAFILETYPE = ''char'',
FIELDTERMINATOR= '','',
ROWTERMINATOR = ''\n'',
KEEPIDENTITY,
TABLOCK
SELECT * FROM DAVID
SELECT * FROM JOHN
CREATE TABLE NEWDAVID(
POST_ID VARCHAR(100),
[USER_ID] VARCHAR(100),
CREATED_DATE VARCHAR(MAX),
CREATED_YEAR VARCHAR(MAX),
CREATED_MONTH VARCHAR(MAX),
UPDATED_DATE VARCHAR(MAX),
UPDATED_YAER VARCHAR(MAX),
UPDATED_MONTH VARCHAR(MAX),
[MESSAGE] VARCHAR(MAX),
SHARES_COUNT VARCHAR(MAX),
[COUNT OF LIKES NAME] VARCHAR(MAX),
[COUNT OF COMMENTS MESSAGE] VARCHAR(MAX),
NAME VARCHAR(MAX),
[TYPE] VARCHAR(MAX),
LINK VARCHAR(MAX),
[DESCRIPTION] VARCHAR(MAX),
CREATE TABLE NEWJOHN(
POST_ID VARCHAR(100),
[USER_ID] VARCHAR(100),
CREATED_DATE VARCHAR(MAX),
CREATED_YEAR VARCHAR(MAX),
CREATED_MONTH VARCHAR(MAX),
UPDATED_DATE VARCHAR(MAX),
UPDATED_YAER VARCHAR(MAX),
UPDATED_MONTH VARCHAR(MAX),
[MESSAGE] VARCHAR(MAX),
SHARES_COUNT VARCHAR(MAX),
[COUNT OF LIKES NAME] VARCHAR(MAX),
[COUNT OF COMMENTS MESSAGE] VARCHAR(MAX),
NAME VARCHAR(MAX),
[TYPE] VARCHAR(MAX),
LINK VARCHAR(MAX),
[DESCRIPTION] VARCHAR(MAX),
INSERT INTO NEWJOHN
SELECT SUBSTRING(ID, CHARINDEX('_', ID) + 1, LEN(ID) - CHARINDEX('_', ID)) AS POST_ID,
SUBSTRING(ID, 1, CHARINDEX('_', ID) -1) AS [USER_ID],
SUBSTRING(CREATED_TIME, 1, 10) AS CREATED_DATE,
SUBSTRING(CREATED_TIME, 1, 4) AS CREATED_YEAR,
SUBSTRING(CREATED_TIME, 6, 2) AS CREATED_MONTH,
SUBSTRING(UPDATED_TIME, 1, 10) AS UPDATED_DATE,
SUBSTRING(UPDATED_TIME, 1, 4) AS UPDATED_YEAR,
SUBSTRING(UPDATED_TIME, 6, 2) AS UPDATED_MONTH,
[MESSAGE], SHARES_COUNT, [COUNT OF LIKES NAME], [COUNT OF COMMENTS MESSAGE], NAME, [TYPE], LINK, [DESCRIPTION]
FROM JOHN
INSERT INTO NEWDAVID
SELECT SUBSTRING(ID, CHARINDEX('_', ID) + 1, LEN(ID) - CHARINDEX('_', ID)) AS POST_ID,
SUBSTRING(ID, 1, CHARINDEX('_', ID) -1) AS [USER_ID],
SUBSTRING(CREATED_TIME, 1, 10) AS CREATED_DATE,
SUBSTRING(CREATED_TIME, 1, 4) AS CREATED_YEAR,
SUBSTRING(CREATED_TIME, 6, 2) AS CREATED_MONTH,
SUBSTRING(UPDATED_TIME, 1, 10) AS UPDATED_DATE,
SUBSTRING(UPDATED_TIME, 1, 4) AS UPDATED_YEAR,
SUBSTRING(UPDATED_TIME, 6, 2) AS UPDATED_MONTH,
[MESSAGE], SHARES_COUNT, [COUNT OF LIKES NAME], [COUNT OF COMMENTS MESSAGE], NAME, [TYPE], LINK, [DESCRIPTION]
FROM DAVID
SELECT * FROM NEWDAVID
SELECT * FROM NEWJOHN
CREATE TABLE POST (
POST_ID VARCHAR(100) NOT NULL,
[USER_ID] VARCHAR(100),
CREATED_DATE VARCHAR(MAX),
CREATED_YEAR VARCHAR(MAX),
CREATED_MONTH VARCHAR(MAX),
UPDATED_DATE VARCHAR(MAX),
UPDATED_YAER VARCHAR(MAX),
UPDATED_MONTH VARCHAR(MAX),
[MESSAGE] VARCHAR(MAX),
SHARES_COUNT VARCHAR(MAX),
[COUNT OF LIKES NAME] VARCHAR(MAX),
[COUNT OF COMMENTS MESSAGE] VARCHAR(MAX),
NAME VARCHAR(MAX),
[TYPE] VARCHAR(MAX),
LINK VARCHAR(MAX),
[DESCRIPTION] VARCHAR(MAX),
INSERT INTO POST
SELECT * FROM NEWDAVID UNION SELECT * FROM NEWJOHN
SELECT * FROM POST
CREATE TABLE [USER]
[USER_ID] VARCHAR(100) NOT NULL,
INSERT INTO [USER] VALUES (612831408762037),(1119736203)
ALTER TABLE [USER] ADD PRIMARY KEY([USER_ID])
ALTER TABLE POST ADD PRIMARY KEY(POST_ID)
ALTER TABLE POST ADD FOREIGN KEY([USER_ID]) REFERENCES [USER]([USER_ID])
Maybe you are looking for
-
After restore time machine log in twice
After moving files and programs from Mac Air to new Mac Pro, I have to login twice. I assume that this means the file restore occurred "inside" a logged in user, but how do you fix it? Also curious is that even while I am typing something, the mach
-
I was looking for one of my favorite artists the other day and was pleasantly suprised to find her on iTunes. Her name is Paige Lewis and she goes by "Paige" or "the Paige." I found her under Paige Lewis, complete with an accurate biography for her d
-
I'm definitely new to mac, but I have been using itunes without problems so far. Lately though whenever I try to open it I do not get the usual window with all my playlists and everything, I only get the itunes thing in the upper left corner. So I ca
-
I was wondering that on the iPod Photo 20 GB is there a backlit screen? I want to buy an iPod but I need one with a backlit screen. Thanks for your time in answering this for me. Inspiron 1000 Windows XP
-
when i use my iphone 4, my iphone get a brown screen and is frozen. Who can help me?