Row-level CRC?

May 3, 2007

Does anyone know if SQL Server 2005 as a built-in way (sp or func) to calculate a row-level CRC?

View 2 Replies


ADVERTISEMENT

Column Level Or Database Level Encryption/decryption....

Jan 16, 2008

I want to perform column level and database level encryption/decryption....
Does any body have that code written in C# or VB.NET for AES-128, AES-192, AES-256  algorithms...
I have got code for single string... but i want to encrypt/decrypt columns and sometimes the whole database...
Can anybody help me out...
If you have Store procedure in SQL for the same then also it ll do...
Thanks in advance

View 1 Replies View Related

High Level && Detail Level Design Documents

Nov 19, 2007



Hi,
AM in need of SSRS 2005 design documents for a project purpose. Can somebody let me know where can i find these documents? Thanks in advance

View 1 Replies View Related

Transactions = Table Level Or Row Level ?

Nov 29, 2006

When you utilize transactions in ADO.NET are the locks put on the entire TABLE used or at the row level?
For instance if you do a SELECT within a transaction if you only pull 5 rows out of a 1000 row table can you just make it lock the rows that have been pulled?  It seems like it locks the entire table?
 
Thanks

View 6 Replies View Related

What Is Low Level And High Level Locking

May 3, 2007

Hi, Can anybody please explain me, what is low level and high level locking in SQL Server 2005 database.
Also what is the name of process which converts low level locking into high level locking and vise versa.
-Sanjeev

View 2 Replies View Related

Statement Level Vs. Row Level Triggers

Jul 20, 2005

Hi..I'd very much appreciate it if someone would tell me how to translatea statement level trigger written in Oracle to its equivalent (if there isone)in MS SQL Server. Ditto for a row level trigger.If this is an old topic, I apologize. I'm very much a newbie to SQL Server.Regards,Allan M. Hart

View 2 Replies View Related

Analysis :: Calculate Members At Certain Level In One Hierarchy As Sum Of Corresponding Members At A Certain Level

Jun 4, 2015

Problem setting is a geography dimension with multiple user defined hierarchies in SSAS 2008. 

Ex.: 
Hierarchy 1 (political territory): level 6 --> level 5 --> level 4 --> level 3 (state) --> level 2 --> level 1
Hierarchy 2 (sales territory): level 4 --> level 3 --> level 2 (sales region) --> level 1
...
Hierarchy 9

The relationship between state and sales region is n:1, i.e. one state belongs to exactly one sales region, and one sales region can consists of one or multiple states.  Unfortunatly I can't define this attribute relationsship in the dimension because it would lead to a diamond-shaped relationsship without a user-defined-hierarchy to back it up. So far that isn't much of a problem, user don't drill down from sales region to state. But now I want to define a calculated member that multiplies a measure from the main measure group with another measure from a weighting factor measure group at the state level and above. The granularity attribute of the geography dimension in the dimension usage tab of the weighting factor measuregroup is the state. 

So far what I've got is:

CREATE MEMBER Currentcube.Measures.[weighted measure state and above] AS NULL;
SCOPE (Measures.[weighted measure state and above],
Descendants(geography.[political territory].[all member],3,SELF_AND_BEFORE),
Descendants(geography.[salesterritory].[all member],2,SELF_AND_BEFORE),
... Descendants(geography.[hierarchy 9].[all member],1,SELF_AND_BEFORE)); this = sum(existing(geography.[political territory].state.members), measures.[main measure group measure] * measures.[weighting measure group measure]);END SCOPE;

This works from a functional point of view, but is rather slow when querying any other hierarchy than the political territory hierarchy, because SSAS first goes down from the state level to the key attribute of the geography dimension, and then aggregates from there to the sales region.In other words, I want SSAS to resolve the relationsship (which state belongs to which sales region) through the dimension, and not through the fact, and apply the calculation afterwards. Like some kind of currency conversion, but only from a certain level upwards.

View 5 Replies View Related

The SSE Provider Did Not Find The Database File Specified In The Connection String. At The Configured Trust Level (below High Trust Level), The SSE Provider Can Not Automatically Create The Database File.

Aug 31, 2007

The problem that I am having is that with Visual Web Developer I am creating a webpage and having it directly put online, so for example when I start a new ASP.NET page, I select the location to be HTTP, with the location http://MYWEBSERVER/Website   and for the language and Visual BasicI notice a couple of things, first that there is no longer a a link under the Main toolbar "Website" selection called the ASP.NET configuration.  So how can I configure what I want to have users be able to do?  It seems that this choice is only available if I am building the ASP.NET page on my "localhost".  So that is the first problem.  So I am able to get the pages to work, atleast the things such as the textboxes to show up etc, (Even things as advanced as the "Login" box).  How ever when I try to get someone to try to login  I am taken to a page that has an server error.  The error is:
"The SSE Provider did not find the database file specified in the connection string. At the configured trust level (below High trust level), the SSE provider can not automatically create the database file. "
The Stack Trace Errors are at the bottom.  I think this is happening because the automatically generated databases are not getting built online as they are on my computer.  On my computer I have MSSQL express.  So either the databases are not getting built for some reason, (and I think that is the case as I don't see any in the folder).  So I think that somehow I have to create a database on my server, and then somehow configure the ASP.NET file, perhaps in the Web.Config file to look for that new database.  Is this the correct methodology?   Is there some simpler way that I can just somehow upload things as they are and have them work correctly on my server?   The error says that either the Server did not find the database or that the trust level was insufficient.  I don't think that is it as I just looked again and I don't see any .MDF files.  So how would I go about getting this to work right? Is there a way to do this with MySQL also?  So that I don't have to use MSSQL?  My server only allows 1 DataBase for that.
Thanks and I hope my question makes sense.  It is basically how can I get it to be able to create and check users etc. online?
Brian
[ProviderException: The SSE Provider did not find the database file specified in the connection string. At the configured trust level (below High trust level), the SSE provider can not automatically create the database file.]   System.Web.DataAccess.SqlConnectionHelper.EnsureSqlExpressDBFile(String connectionString) +2555237   System.Web.DataAccess.SqlConnectionHelper.GetConnection(String connectionString, Boolean revertImpersonation) +87   System.Web.Security.SqlMembershipProvider.GetPasswordWithFormat(String username, Boolean updateLastLoginActivityDate, Int32& status, String& password, Int32& passwordFormat, String& passwordSalt, Int32& failedPasswordAttemptCount, Int32& failedPasswordAnswerAttemptCount, Boolean& isApproved, DateTime& lastLoginDate, DateTime& lastActivityDate) +1121   System.Web.Security.SqlMembershipProvider.CheckPassword(String username, String password, Boolean updateLastLoginActivityDate, Boolean failIfNotApproved, String& salt, Int32& passwordFormat) +105   System.Web.Security.SqlMembershipProvider.CheckPassword(String username, String password, Boolean updateLastLoginActivityDate, Boolean failIfNotApproved) +42   System.Web.Security.SqlMembershipProvider.ValidateUser(String username, String password) +83   System.Web.UI.WebControls.Login.OnAuthenticate(AuthenticateEventArgs e) +160   System.Web.UI.WebControls.Login.AttemptLogin() +105   System.Web.UI.WebControls.Login.OnBubbleEvent(Object source, EventArgs e) +99   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +35   System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +115   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +163   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102
 

View 1 Replies View Related

What Isolation Level Should I Use?

Jan 12, 2007

lets say user1 is reading row1, then user2 reads and updates row1, when user1 is about to update row1 i want him to be informed that his copy of row1 have been updated, so he has now the options to either get the new version of row1 or cancel his update process.

View 4 Replies View Related

Row Level Trigger

Nov 27, 2007

How can i write a trigger which gets fired for each row that is being deleted
i.e. Row level Trigger

I tried something like this

ALTER TRIGGER [dbo].[Del_Msg]
ON [Seat27].[dbo].[Email_Messages]
AFTER DELETE
&.......



 it gets executed once for the triggering SQL statement

View 2 Replies View Related

Server: Msg 207, Level 16,

Aug 21, 2004

In a Stored Procedure, I created a table in code:

CREATE TABLE TEMP ( ...)

, then ALTER TABLE TEMP ADD int1 int, varchar2 varchar(25)

I inserted some rows to the above table. Everything looks good.

Here's what puzzled me:

SELECT * FROM TEMP shows all the rows inserted.

But

SELECT int1, varchar2 FROM TEMP caused this error:

Server: Msg 207, Level 16, State 3, Line 5
Invalid column name 'int2'.
Server: Msg 207, Level 16, State 1, Line 5
Invalid column name 'varchar2'.

Thanks for any help.

View 1 Replies View Related

Row Level Locking

Feb 24, 2006

I have a busy transactional table , I wanna use row level locking mechanism in msSQL.
SELECT * FROM PARTY WITH (UPDLOCK ROWLOCK)
where LastName ='Clinton'
is there any downsides of this approach?

View 1 Replies View Related

Row Level Security

Mar 9, 2006

I am looking for a way to implement row level security on my SQL Server 2005 Express database.  Thanks in advance for any input.

View 1 Replies View Related

DatabaseCompatibility Level

Aug 29, 2001

Hi,
I am asked to look into a DB which was upgraded from SQL65 to SQL70.
Problems:
1.The SQL was renamed from Server_old to Server_NEW.The Sysservers tables still have entry with Server_old name and srvid = 0(local).The server is running with this config.from last few months w/o any problem(this is what the present DBA working on this DB says)...whereas the name has changed from server-old to server_new.
2.2 user DB on this Server has compatibility level of 65.Any suggestion as should I set the compatibility level to 70 or leave it as it is.client is planning to first,go for replication from sql70/EE to SQl70/EE on Nt4/SP6.
Second,they are also planning to upgrade to sql2k.
Any thoughts appreciated.

View 1 Replies View Related

Isolation Level

Nov 15, 2000

Is there a way to change the default isolation level at the SQL Server level to READ UNCOMMITED ??

View 2 Replies View Related

Top N And Compatability Level

Aug 16, 2000

How do I check the compatability level of a database?
The db in question was originally created in SQL 6.5 and converted to 7.0. Would this have reset the compatability level to 7 or left it at 6.5?
If it is at 6.5 what are the implications of changing it to 7?

Ray, if you answer this can you please forward me your email address. Thanks.

View 3 Replies View Related

Raw-level Locking

Sep 19, 2002

I used sp_indexoption to allow row locks and disallow page locks on all indexes of a heavily contented table (lots of concurrent selects/inserts/updates). The first error I saw was "The SQL Server cannot obtain a LOCK resource at this time. Rerun your statement when there are fewer active users or ask the system administrator to check the SQL Server lock and memory configuration.". I restarted the sql server and everything is ok (the server is not very powerful and will be beefed up).

My question is that with the above settings, will the select statements acquire row-level shared locks as well? Since our select queries are fairly complicated, my main concern is that we may frequently run of of resource even with a more powerful machine. Is my concern valid or I got everything wrong?

Thanks a lot.

View 1 Replies View Related

Row Level Locking

Apr 28, 1999

Hi there,

yes, There is a 'insert row level locking' but
Is there anything for delete or update row level locking?

We keep geting deadlock problem with our application with multi-users. First we ran into the deadlock on INSERT. By setting 'insert row level locking' help us to go a little bit further but later we run into deadlock with DELETE. For my knowlege, DELETE and UPDATE requires exclusive page lock. Might be I am out of date.

Thanks in advance for your help
Tung Nguyen

View 1 Replies View Related

Isolation Level

Jun 30, 2004

Hi, folks. Please guide.
I have a VB application that is used for production and reporting. I 've been having alerts for deadlocks that popup after every 2 or 3 minutes. I am planning to seperate reporing server by using transactional replication from production server to the reporting server. However some reports update and insert data so i need reporting server to be enabled for DML.

Is there any option on the server-level where i can force each user to operate in READ-UNCOMMITTED mode instead of specifying WITH (NOLOCK) in the queries of my application. Dirty reads won't bother me in current situation, i guess the propotion of fast reads would be a better trade-off.
New to SQL, Thanx for helping!!


Howdy.

View 14 Replies View Related

Security On Row Level ?

Feb 9, 2005

How can I apply security on row level ?

I want to use internal SQLSever users and roles.
Some users or roles should have only access to a limited numbers of rows.

The table contains a field "Company" and there are several companies.
The users should have acces only to their own company.

Thanks

View 1 Replies View Related

What Level Raid Is Best?

Nov 29, 2005

Hi guys,
On a new server with 4 disks, what level of raid is best to apply. In terms of what's important, I'd say speed is at the top of the list.

BJ

View 1 Replies View Related

3 Level Self Join

Jan 15, 2008

i need something exactly like the following example but with 3 levels self join : http://databases.about.com/od/sql/a/selfjoins.htm

what i mean by 3 levels is that consider that relation like
Director >>> Manager >>> Employee

so the output will look like :
dir1 mgr1 emp1
dir1 mgr2 emp1
dir1 mgr2 emp2
dir2 null null
dir3 mgr1 null

View 2 Replies View Related

Row Level Trigger

Mar 25, 2004

Hi all

I am doing a DB porting project in which i need to translate oracle specific queries to sql server.I need to convert following trigger to sqlserver specific .Any help will be appreciated



CREATE OR REPLACE TRIGGER T_BI_R_TARGET_OBJECTIVE
BEFORE INSERT
ON TARGET_OBJECTIVE
REFERENCING OLD AS OLD NEW AS NEW
FOR EACH ROW WHEN (NEW.TARGET_OBJECTIVE_ID IN (NULL,0))
DECLARE
seq_id NUMBER;
BEGIN
SELECT TARGET_OBJECTIVE_ID_SEQ.NEXTVAL INTO seq_id FROM dual;
:new.TARGET_OBJECTIVE_ID := seq_id;
END;



Regards
sreenath

View 1 Replies View Related

Row Level Trigger

Apr 26, 2004

Hi,

Is there any row-level trigger available in SQL server(in oracle is does)

my problem is ..I am trying to write a trigger which updates all the items

But it give me error:

Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.
The statement has been terminated.

My statement is : SET @var_item=(SELECT item_no FROM deleted)

How can i make it possible?
Note: I am trying convert Oracle trigger to SQL Server trigger

View 9 Replies View Related

Hierarchy Level

Apr 28, 2008

Hi

i tried on CTE but iam not gettng correct result plz help me


Declare @TMaster Table (MasterId int, Type varchar(100), ParentMasterId int)
Insert into @Tmaster
Select 1, 'Fixed', 14 Union All
Select 2, 'Flexible',14 union All
Select 3, 'Others',14 union All
Select 13, 'Retirement benefits',1 union All
Select 14, 'PBHeads', 0

Select * From @Tmaster

Declare @TDetails Table ( MasterId Int, Description varchar(100))
Insert into @TDetails
Select 1, 'Basic' union all
Select 1,'Conveyance' union all
Select 1,'HRA' union all
Select 1,'Special Allowance' union all
Select 2, 'Children Education' union all
Select 2,'Travel Allowance' union all
Select 2,'Medical Expenses' union all
Select 2,'Variable Spl Pay' union all
Select 3, 'Project Allowance' union all
Select 3,'Quarterly Incentive' union all
Select 3,'Shift Allowance' union all
Select 3,'Annual Component' union all
Select 13,'Provident Fund' union all
Select 13,'Gratuity' union all
Select 13,'Super annuation'


Select * From @TDetails

in group list we have to show fixed, flexible, other
in subgroups(L1) list under fixed we have to show
Basic salary, HRA, Conveyance, Special Allowance,Retirement benefits

in subgroup(L2) we have to show Gratuity, providedfund, Super annuation they are subgroups of retirementbenefits


output :
Group Subgroup(L1) Subgroup(L2)
Fixed
Basic salary
HRA
Conveyance
Special Allowance
Retirement benefits
Provident Fund
Gratuity
Super annuation

Flexible reimbursements
LTA/Group Travel
Medical expenses
Children education
variable special pay

Others
Project allowance
Performance incentive
Medical insurance

View 12 Replies View Related

Row Level Security

May 23, 2008

Hi Folks,

I have the following Problem:
( not simular to
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=101916 )



In one Table ( Objects ) exists an Id to my internal Security Tables, where the combination of many Features together results in, which Data the user could see.
Today, i use only one SQL Account and the Security ist solved in my Application,
In an SP is a where Clause generated, every SQL Statement is extended whitch this where clause.
This work fine, but everyone with SQL User and PW could see everything this the Query Analyser or Management Studio.



The perfect solition could be:
Several Usergroups should have Access to my DB.
Only a few Views / SP where execuable for these Usergroups.

The Application calls alway the same View / SP an depending on the Login the Data ist filtered in the right way.

Is ist possible to filter a view with dynamic SQL ?

2.nd Question:

Is it possible to restrict Users / roles depending on the Network IP Address / Network Mask ?

The Security Problem only exists, when Users with VPN are connecting, internal Users always have full access.

Thanks an greeting from Germany,
Markus

View 1 Replies View Related

Compatibility Level

Oct 24, 2007

Hi Gurus,

I would like to know if I put the Compatibility Level in a SQL Server 2005 installation to 70 I can make afirmation that I have a full SQL Server 7.0. If the answer is "Yes" where I can find a documentation or a FAQ that explained this topic.

View 2 Replies View Related

Compatibility Level

Dec 7, 2007

Has anyone changed compatibility level from 80 to 90? Did you have any problems?

View 8 Replies View Related

Compatibility Level From 80 To 90

Feb 3, 2008

I restored the database from SQL server 2000 to 2005.The database was restored with 80 compatibility.Can i change it to 90 and what are the effects? Coz my applications are pulling data from SQL server 2000. Does 80 work for database mirroring?

View 5 Replies View Related

Compatibility Level

Feb 13, 2008

Hi there

We found interesting issue which is basically the app is being tested ok on SQL2005 by software vendor. Then we tested in our environment and we found it's not truly true. There are some compatibility issue on SQL syntax. Anyway ... the plan set the compatibility level back to 80 instead 90. Cause this thing for sure is working.

Now my question is do you know any other impacts that you know of if we are doing this setting (running SQLServer 2005 but the database set as 80)? I know that some inbuilt reporting only run 90 level but I can get around this. Performance or something? Is there any thing that I should to know?

Thanks

View 1 Replies View Related

ROW LEVEL SECURITY

Jul 20, 2005

How can I implement "Row Level Security" in SQL Server 2000?Thanks alot.

View 1 Replies View Related

Row-Level Locking

Jul 20, 2005

How do I do row-level locking on SQL Server?Thanks,Nid

View 16 Replies View Related

Which Level Of Security

Jan 18, 2007

I am attempting to create a view only user in Report Manager which can only view and run reports from a single directory. I have the following configured:

Active directory Group: DomainReport Users - Group Scope: Global; Group Type: Security; Member of: <none>

Active directory User: DomainReportUser - Member of: DomainReport Users group

Default web site Reports virtual directory: Directory security: Integrated Windows Authentication only

Default web site ReportServer virtual directory: Directory security: Enable Anonymous Access (user: domainadministrator) & Integrated Windows Authentication

Report Manager

Site Settings->Item-level roles: New role: Report Viewer; view folders and view reports only items selected

ReportFolder(Report Manager folder with reports): Properties->Security: Added DomainReportUser with Report Viewer role

When I go to my Report Manager site (e.g. http://url/reports) I get the Windows security form, in which I enter the DomainReportUser credentials. However, after I log in I have full rights to all folders and functions of Report Manager, as if I logged in as BuiltinAdministrator.

At what level of security is this breaking down? As far as role-based, I believe DomainReportUser should only have access to limited resources of Report Manager when logging on. What is allowing him to have Content Manager control of Report Manager? Is there a better way to set up a "view reports only" user access to Report Manager?

Thanks

View 1 Replies View Related







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