Why RS Lets User To Create BookmarkID And Actions By Using A Different Query That The Reportitem Is Using.

Jun 20, 2007

It seems in the spec that Data Regions can only reference a single dataset, then why bookmarkID and bookmark action can reference a different dataset than the one that the Data Region is using?

Like in this case:

1) create a table with dataset1

2) create another table with dataset2

3) create a bookmarkID using =Last(somefield, "dataset1") in any table cell in the first table

4) create a bookmark action using =Last(somefield, "dataset1") in any table cell in the SECOND table.

This is valid report, and it can preview....



I know this example not practical at all, it is just used to illustrate my question.

Is this a scoping rule exception for any special reasons? or it's just a bug?



If it is a scoping rule exception, please explain, and a practical example would be great.

View 4 Replies


ADVERTISEMENT

Using A SQL Query To Create A User Account.

Sep 17, 2005

I need to be able to have users run a query under the 'sa' account that will create another account that will just be used for reading and writing to a specific database.  Is there a way to do this with just a sql script or can you only set up logins and accounts from the enterprise manager?

View 1 Replies View Related

Is There A .net Assembly (api) That Lets Me Run Transact Sql From C#?

Apr 25, 2008

I see examples of running osql programmatically, but was wondering if there is a better way?

View 4 Replies View Related

Lets Start A Thread Just On The IDE

Oct 18, 2006

When a query is executed, the tab is split horizontally with the bottom half containing two tabs. The first with the result set(s) and the second with the messages.

How do I hide the bottom half after I have read it and now want the entire column to view my TSQL? Is there some menu item or shortcut key that I can use to accomplish this?

In 2000, there is a configuration option to make these tabs appear at the top of the window. I haven't found this setting in Express.

Another nice feature that I appreciate is to be able to divide the window into independant horizontal or vertical windows (or tabs) each with different files. I have found that I can get there with a mouse click but I could use some guidence in restoring the original layout, expecially without closing the windows.

Thanks,
IanO

View 1 Replies View Related

Microsoft No Longer Lets Us Download SqlExpress. Why?

Jun 23, 2007

Microsoft no longer lets us download SqlServer Express 2005. Does anybody know why? I thought it was free.



http://www.microsoft.com/downloads/details.aspx?FamilyID=220549b5-0b07-4448-8848-dcc397514b41&DisplayLang=en



In fact, none of the many options here work at all:



http://www.microsoft.com/downloads/browse.aspx?displaylang=en&productID=9F07F9CC-C308-4EBF-A4E9-2B8530AB1EA8



How come? Is there someplace else I can get it? I just don't understand why they do this stuff with no explanation. I'm trying to learn C# and I need a database.



Any help would be appreciated.



Dave

Arlington, Virginia

View 15 Replies View Related

How Do I Manage 100.000 Actions A Day ?

Mar 27, 2008

In a previous application i stored about 100.000 actions ( coming from an external system )in an access database for each day. Therefore i created everyday a new accessdatabase to have enough performance. Each month i copied automatically all databases in a new 'month' map as a backup.

The goal of the application is the view all actions of one day of week in one grid. This is a kind of history of the external system.

I'm afraid the application will become to slow if i save all actions in one database. ( after 1 month i will have 3.000.000 actions.

How this is done in an sql server ?
Do i have to use a different kind of method ?

View 2 Replies View Related

How To Handle Recurring Actions

Dec 8, 2004

Hi!
My problem/"goal to achieve" is the following..
Users can insert orders in a db-table. The date on which they've been created is stored.
I want the server to insert a new record in another table (accounts) for every order which is older than 2 weeks.
How should I do that?
With a custom action which checks all orders (a customer must press some button every day).
Or a static "update-class" with a kind of timer which does the action every 24 hours?
Of course an automatic solution will be the best! Another question is: how can i ensure that an instance of this "update-class" will never die?
Thanks so far...

View 2 Replies View Related

Actions On SQL Job Step Failure

Feb 26, 2001

Hi Team,

I've recently had a situation where some of the steps in the daily backup job failed. The job is defined such that if a step fails, it goes on to the next step (these are dev. backups :)

Is there a way that I can tell it to notfy me of the step failure AND go on to the next step? The notification is reporting that the job was successful when in fact a couple of the steps failed. Is there any way around this?

Thanks in advance,

View 2 Replies View Related

Question On Cube Actions

May 22, 2007

Hi, all experts here,

I am having a question on cube actions. What is the easiest way for us to see all actions properties(including objects to trigger the actions, etc.), hope it is clear for your help and I am looking forward to hearing from you shortly.

Thanks a lot in advance.

With best regards,

Yours sincerely,

View 7 Replies View Related

How To Compare And Take Actions From 2 Different Data Sources

Mar 17, 2008



Hi,

I have to get all the customer records from one table and compare this records with another table and finally if there is same record I have to perform an update but the record does not exist I have to make an insert.
How can I do it with SSIS Except writing sql or tsql scripts ?

thanks,
J

View 1 Replies View Related

DB Engine :: Deadlock Detection And Actions From A DBA

Jul 29, 2015

what are the best ways to action on the Deadlock issues. I am aware how a deadlock is occurred and we can get the queries causing by the Trace, and Profiler. What will en best steps to Investigate from DBA end later collecting the stats.What steps will ensure to get these deadlocks addressed.

View 4 Replies View Related

Problem When Adding Cascade Actions To A Relationship

Aug 21, 2007

Hello everyone,
I wanted to change a relationship in a database in order for it to have a cascading effect on update and on delete in order to preserve the data integrity. The problem is that when I click the save button I get the following error message:
'Role (Application)' table saved successfully'Usergroup_Role (Security)' table- Unable to create relationship 'FK_Usergroup_Role_RoleId_Application_Role_Id'.  Introducing FOREIGN KEY constraint 'FK_Usergroup_Role_RoleId_Application_Role_Id' on table 'Usergroup_Role' may cause cycles or multiple cascade paths. Specify ON DELETE NO ACTION or ON UPDATE NO ACTION, or modify other FOREIGN KEY constraints.Could not create constraint. See previous errors.
Any suggestion on how can I fix this? For a better understanding of the real problem I've uploaded a picture of the tables diagram. Here's the link
Best regards.

View 2 Replies View Related

Performing Completion Actions, Cursor_close_on_commit Setting

Jul 20, 2005

Hello,I have several SQL Server jobs that execute procedures written to rundeletes and updates against tables in my data warehouse. Some jobsoccasionally get stuck with the status "Performing Completion Actions"and can only be reset by restarting SQL Server or rebooting theserver.I have seen one answer to this problem in a DTS package is to checkthe box specifying "Close Connection on Completion" for each task. Isthis the equivalent of setting "cursor_close_on_commit" to "on" inT-SQL?? If not, what is the equivalent in T-SQL??Thanks in advance!Cliff

View 3 Replies View Related

Problem When Adding Cascade Actions To A Relationship

Aug 22, 2007





Hello everyone,

I wanted to change a relationship in a database in order for it to have a cascading effect on update and on delete in order to preserve the data integrity. The problem is that when I click the save button I get the following error message:

'Role (Application)' table saved successfully
'Usergroup_Role (Security)' table
- Unable to create relationship 'FK_Usergroup_Role_RoleId_Application_Role_Id'.
Introducing FOREIGN KEY constraint 'FK_Usergroup_Role_RoleId_Application_Role_Id' on table 'Usergroup_Role' may cause cycles or multiple cascade paths. Specify ON DELETE NO ACTION or ON UPDATE NO ACTION, or modify other FOREIGN KEY constraints.
Could not create constraint. See previous errors.

Any suggestion on how can I fix this? For a better understanding of the real problem I've uploaded a picture of the tables diagram. Here's the link

Best regards.

View 12 Replies View Related

SQL 2012 :: SSAS Actions Not Appearing In Excel 2010?

Nov 28, 2012

I have an SSAS cube that i want to add some actions to. I've had problems adding a reporting action to the cube so decided just to add a URL action instead. Start simple and build on the concepts...

So i add a new action, give it a name, set the Target Type to Cells, Taget object to All Cells. I've put no condition on the action since i want it to appear all the time.

The action content type is set to URL the action expression is set to [URL] I've also set a caption of "Google" under the additional properties and said that the caption is MDX (I'm aware that it isn't but i do intend to expand on this...).

I then build and deploy my cube, call up excel (2010) and then create a pivot table off the back of the cube but when i right-click the cells in the pivot table and go to "additional actions" it tells me that there are none specified.

[URL]

View 6 Replies View Related

SQL 2012 :: Creating A Popup Window From SSAS Actions?

Nov 19, 2014

I have a cube where i would like to define some actions. I have done report Actions but they are limiting in terms of what i am trying to achieve.I want a popup window from the action from relevant cells at the moment i can use the urlaction type to open the link in a new window which is ok but i want this as a popup.

View 0 Replies View Related

SQL Tools :: How To Trace Or Monitor Previous Actions In 2012

Sep 12, 2015

how to trace or monitor previous actions in sql server 2012. Like previous using delete command . I want to know who is used that command in server.

View 2 Replies View Related

SQL 2012 :: Using Database Mail To Send Emails Based On Certain Actions

Jun 12, 2014

I have been using database mail for quite a few years now. I started using it with SQL Server 2005 and then it worked fine. Then we went over to SQL 2012 and the problems started. At first I could not get any e-mails out and read a post by Microsoft that a patch needs to come out but not available yet. That was in 2012. Presumably the patch came out with windows updates and my DB Mail started working. Now, however, I have the problem that some e-mails do get sent but the majority failed.

I use this so that whenever a user captures certain data to update a person's status on the database then an automatic e-mail will be sent to that person to inform them of their status at this company.

View 0 Replies View Related

SQL Server 2012 :: Query To Find User Who Last Modified User Roles / Access?

Dec 6, 2013

I would like to know if there is a way to find out who changed a users roles/access WITHOUT using the audit function. For example, if a user account was created and given SA access then changed to read only, how can I find out who made that change? I tried searching for an answer, but kept getting no results. I'm thinking this may tie into the sys.sysusers view?

View 3 Replies View Related

Vb.net Create User

Dec 18, 2007

I am trying to create a program that user inputs the sa password and it creates a user in SQL Express 2005 installation.  Is this possible?  If so can someone point me in the right direction?

View 5 Replies View Related

Create User

Apr 28, 2000

Hello,

I would like to create a new database user using T-Sql command. Somebody Knows?

Thanks,
Hugo Venturini

View 2 Replies View Related

Create User Help

Jan 25, 2007

hi,

i am new to mssqlserver 2005, i installed it successfully in my localhost, problem is i cant create user it gives me:

'my_aro' is not a valid login or you do not have permission

how can i create a user?

View 2 Replies View Related

Create A RO User For All DBs

Feb 2, 2007

In SQL 2005, I want to create a RO_user with read only access rights to some of my databases. I wrote the folloiwng code but get an error in USE @db_name.

Is there an easier way to create the user id and grant the RO access right to it? I have about 500 databases.


USE [Master]
GO

DECLARE @db_name nvarchar(50)

DECLARE db_cursor CURSOR FOR
SELECT master.dbo.[name]
FROM sysdatabases
WHERE Substring(name,1,4) in ('DB06', 'AC06', 'RE07')

OPEN db_cursor

FETCH NEXT FROM db_cursor INTO @db_name

WHILE @@FETCH_STATUS = 0
BEGIN

USE @db_name
CREATE USER [RO_user] FOR LOGIN [RO_user]
EXEC sp_addrolemember N'db_datareader', N'RO_user'

FETCH NEXT FROM db_cursor INTO @db_name
END
CLOSE db_cursor
DEALLOCATE db_cursor


Canada DBA

View 3 Replies View Related

Create A New User

Jul 20, 2005

Hello,How can I create a new user with password for the MS SQL - Server 2000(and the MSDE) with a SQL - Statement? I use Borland Delphi 5 with theADO - Components!Thanks.best regards.Stephan Jahrling

View 1 Replies View Related

Create A New User

Mar 15, 2007

hi

im unable to create a new sql server authentication login

It is appreciated if anyone helps me

thanks in advance

View 4 Replies View Related

How To Create New User?

Jan 7, 2007

Hi,

i'm using SQL server 2005 and I need to create new login/user. Previously I used MySQL where user management is much simplier, so I need a help with SQL server. I run following script:

EXEC sp_addlogin 'uzivatele', @passwd = 'xyz', @defdb = 'master', @deflanguage = 'Czech'
GO

EXEC sp_addsrvrolemember 'uzivatele', 'sysadmin'
GO


GRANT CONNECT SQL TO [uzivatele]
GO

CREATE USER [jirka]
FOR LOGIN [uzivatele]
GO



But when I try to connect o database "master" as user "jirka" with password "xyz", it fails with message "Login failed for user 'jirka'". What do I wrong?

thanks

Jiri Matejka




View 1 Replies View Related

Create User

Jun 10, 2007

Hi,

how can i create a user in a stored procedure. the user has to be able to connect to my database

thanks.

View 3 Replies View Related

How To Create A User With Sa Privilege

Feb 16, 1999

Using SQL 6.5 SP4.
TIA.
Zak

View 2 Replies View Related

Create User Scripts

Aug 21, 2007

i need a scripts which should create a user with dbo privileges on the particular database please help

View 2 Replies View Related

Create User Form

Oct 7, 2007

hello there,

Can i create user forms for user to select options and then present them with data based on their selection.i want to be able to use check boxs and combo box.thanks in advance

cheers
zolf

View 1 Replies View Related

Create User Error!

Jan 30, 2006

I have just managed to have JDBC working, but I am getting an error that the user does not exist. I have read in the MSDN help that I need to set the sqlExpress to accept SQL server authentication and not windows authentication. So when I am trying to create a new User using Microsoft SQL server management studio express I get the following error.



TITLE: Microsoft SQL Server Management Studio Express
------------------------------

Create failed for Login 'adam'. (Microsoft.SqlServer.Express.Smo)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=9.00.1399.00&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Create+Login&LinkId=20476

------------------------------
ADDITIONAL INFORMATION:

An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.Express.ConnectionInfo)

------------------------------

The MUST_CHANGE option is not supported by this version of Microsoft Windows. (Microsoft SQL Server, Error: 15195)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=09.00.1399&EvtSrc=MSSQLServer&EvtID=15195&LinkId=20476


View 5 Replies View Related

HOW To Create An SQL User Using Parameters ?

Oct 1, 2007

Hello !

I want to create DB users with an stored procedure, and pass the user name as a parameter.
I wrote this code :

CREATE PROCEDURE [dbo].[spTest]

(


@ComName varchar(20),

)

AS

BEGIN


SET NOCOUNT OFF;

CREATE USER [@ComName] WITHOUT LOGIN WITH DEFAULT_SCHEMA = dbo;

END


If I execute this stored procedure :


DECLARE @return_value int

EXEC @return_value = [dbo].[spTest]

@ComName = N'Test_User',

SELECT 'Return Value' = @return_value

I obtain in my DB an user called "@ComNane" instead of "Test_User" !
Where is my mystake ?

Many thanks for any help.

Luc

View 3 Replies View Related

Create User Form

Oct 7, 2007

hello there,

Can i create user forms for user to select options and then present them with data based on their selection.i want to be able to use check boxs and combo box.thanks in advance

cheers
zolf

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved