DataSource Controls :: Locking Down Database Access For Production?

Mar 12, 2010

In the development environment, in SSMSE > MyDatabase > Security > MyUser > Database role membership I have checked db_owner to allow me to build the database.

Now I am copying the database to the production environment I would like to lock the security down tightly. In the past (with classic ASP applications) I have only checked db_datawriter and db_datareader and, in Securables, checked Execute Grant on the stored procedures.

In Database > Securables I add my stored procedures and check Execute/Grant for each of them and click OK. When I return to the securables page the stored procedures are no longer listed.

I have noticed that nothing is listed in Effective Permissions and I think it should list Execute. If this is the problem, how do I add Execute to the Effective Permissions list?

View 1 Replies


Similar Messages:

DataSource Controls :: Locking The Database?

Jan 12, 2010

I have multiple database running in my SQL Sever , in that I need to lock only one database is there is any inbuilt method in SQL Server 2008

View 1 Replies

DataSource Controls :: SSIS: RetainSameConnection And Variable Locking?

Jun 8, 2010

I am modifying a rather large ETL package using BIDS. It builds a datawarehouse, so there are many sources and a single destination. There are quite a few data flow tasks, and their connection strings are read into variables from an encrypted source. All the data flow tasks are arranged serially because of variable locking issues - occasionally two DFTs attempt to simultaneously lock the variable and it fails. I realize there are script solutions out there, but I am looking for perhaps a more elegant (easier) solution than to apply scripted solutions to tons of packages over something so trivial.

I came across the "RetainSameConnection" connection property, and I have a hunch this could be the solution. My reasoning is: If there's only one connection to a data source, there should only be one read operation from the variable. At least, it makes sense when SOURCING.As for destinations, I'm not sure if it's a good idea to have data from multiple sources flowing in through a single connection.This is my first week working in ETL so I don't know all the nuances of databases, ETLs, connections, etc.

View 1 Replies

DataSource Controls :: Looping Through Data Locking For Each Thread?

Feb 12, 2010

I need to have maybe 5 threads running which all use the same DataSet and need to loop through all the rows retrieved but each row must be processed by one thread only (e.g. I don't want row 1 to be processed by thread 1 and thread 3).

I can also use a DataReader if that helps, but I need to dow some locking logic I would have thought.

View 1 Replies

DataSource Controls :: How To Access Database Once With Big Resultset Or Access Multiple Times On The Fly

Jun 17, 2010

I have a situation where I am accessing a database multiple times and I'm wondering if it is necessary.

I have a GridView with a template column with a hyperlink to "Get Results" and on the RowDataBound event I have it check the batch number against the database and see if results exist and then if they don't, hide the link.

So when viewing the page if there is 20 rows in the gridview it is effectively doing 20 queries.

I was wondering if it is a better idea to query the database once with all "batches" and load it into a datatable, then on the RowDataBound event query the datatable. The only issue I see with this is there is currently 40,000 batches and grows daily.

View 1 Replies

Does Record Locking (Pessimistic And Optimistic Locking) Is Applicable

Oct 8, 2010

Does record locking (Pessimistic and Optimistic Locking) is applicable in ASP.NET application? If so, What is the pros and cons on doing this?

View 3 Replies

Access :: Locking Mechanisim To Manage Transactions?

Dec 29, 2010

I am building an aspx page using c# and Visual Studio 2008. can anyone help to answer this question,Q1. When a page has add/edi/delete features by calling stored procedure or sql inline code (within the aspx page) It may cause issues in this senario:two users accessing the same page, lets say they both at the same time are editing the same record. a third user is only viewing that same record. how can I control such senario who get to make the change first.Q2. if the thrid user accessed the record after the first user change the records, but before the second user change the record. is he going to see the origional record or the updated record done by the second user.Q3. if the third user opened the record to view it before the first user make any changes, so he is opening a grid view , lets say the first user make a change. The third user will still see the old record...right, so he is not viewing updated record.how would he know that the record he is viewing is not current?If anyone can explain the senario and also would appreciate if you have any documentation or URL reference to searh .

View 1 Replies

DataSource Controls :: Access Cross - Database With MVC?

Mar 3, 2010

Now I'm developing web application with ASP.Net MVC but I have to use 3 databases. So I have no idea about this. I have to extract the data from 2 databases and I have to save the data to another 3rd database.

View 7 Replies

DataSource Controls :: Access SQL Database Remotely?

May 18, 2010

How can i connect my local project with the SQL server 2008 Database that is running on other server (This server is not on my network and i connect to it via remote desktop connection).

View 1 Replies

DataSource Controls :: Access A Database On A Different Server?

Jan 4, 2010

If I have the appropriate permission, is their a way to access a sql server database on two different servers?

For example if I have a Table A on server 1 and Table B on a different server. How would I join the two tables together, if they each have a column named "PonyId"

View 2 Replies

DataSource Controls :: Writing Records To Access Database

Jun 4, 2010

I am creating an insert statement in my c# code to insert records to an access database table. I am getting the error copied below using c# code. When I copy the generated insert statement from the console and run this on my access database, it succesfully appends a record in the table.Insert statement generated:

insert into [Pet Fish-log 2010] ([Specimen Type], Year, [Lab Number], [Last Name], [First Name], [Middle Initial], Gender, [Date of Birth], [Collection Date], [Date Received], Client, [Tissue Type], [Block Number],
[code]......

View 3 Replies

DataSource Controls :: Access The SQL Server 2008 Database On The LAN?

Mar 5, 2010

I am using SQL SERVER 2008.

Now I want to access the SQL SERVER 2008 DATABASE on the LAN.

So what was the Connection String and can u give me the Example of that.

View 3 Replies

DataSource Controls :: Pulling A Date From An Access Database?

May 26, 2010

I am pulling a date from an Access Database and inserting into my Dataset. I am assigning it to "myDate" and then assigning it to my SQL parameter @StartDate.

When I run my ExecuteNonQuery I get a null value in my SQL database. There are no null values in my access database. I must have the syntax wrong.

[Code]....

View 4 Replies

DataSource Controls :: How To Access Ms Sql Database From Local (mssql.domainname.com)

Jun 9, 2010

In remote db, I can be able to connect ms sql db as localhost in my connection string like below,

<

add
name="ConnectionString"
connectionString="Data
Source=localhost;Initial Catalog=DBServer;Persist Security Info=True;User ID=sa;Password=*****"
providerName="System.Data.SqlClient"
/>

This is running in server and its working fine.

If i want to make any changes in db structure or need to modify any data values, i have to login remotely to my server and has to open sql server management studio do db change or value editing stuffs. Its really getting iritating when the remote machine looks slow.

I just want to know how to configure the db hostname like dbname.domainname.com or mssql.domainname.com in server, so that we can open the server db in local using sql server management studio.

The application installed in windows server 2008 and using IIS 7.0 & SQL Server 2008

I have only little knowledge in server.

View 6 Replies

DataSource Controls :: How To Access Database Without Using VWD Data Controls

Jun 8, 2010

I would like to access the database through the code behind in C#.

Looking how to do this in VWD specifically. Does it go in a onload function? onclick? How does it work specifically in ASP.NET 3.5?

Using:

Visual Web Developer 2008, ASP.NET 3.5 with SQL Server Express 2005.

View 1 Replies

DataSource Controls :: Data Restore From Production To Testing Environment?

Mar 3, 2010

Current process:

Whenever we have an issue in production, we restore DB backup from our nightly sql backup files in our testing environment. This way we get all data from production.

New Requirement:

Instead of restoring the db which takes upto 2 days, they want to do only selective restore based on few parameters. Requirement is to a build a new ASP.NET page in our application with few inputs. On submit button click, I should select data from prod and insert into testing environment. This involves opening new sql connection.

View 2 Replies

DataSource Controls :: Connecting To Remote SQL Server Fine From Dev, Fails From Production Host

Feb 16, 2010

I have a SQL server in my office. I can connect from my home development workstation website to the remote SQL server with no problems but when I upload the site to the web host and try and use the same SQL server it fails with 'A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible'

View 4 Replies

DataSource Controls :: Full Text Search Returns No Results On Production SQl Server?

Jul 2, 2010

I am actually using 2 type of queries in my website e.g

These Queries are from my stored procedures

SELECT * FROM TblName WHERE FREETEXT(ColumnName, @parameter)

AND

SELECT * FROM TblName WHERE CONTAINS((Column1, Column2), @parameter))

I have enabled Full Text Indexing on my tables both local and on my hosting company MS SQL Server.

The above queries are working fine on my local database and return results but these queries return nothing when i try to run them on hosting company MS SQL Server.

I have identical data on both MS SQL Servers and both servers are 2008.

View 2 Replies

DataSource Controls :: Generates Unspecified Error On Opening File On Production Server

Jan 5, 2010

I have an application that uploads an Excel .xls file to the file system, opens the file with an oledbconnection object using the .open() method on the object instance. The upload and writing of the file to the file system works fine but I get an error when trying to open the file on our production server only. The application works fine on two other servers (development and testing servers).

string connectionString = ("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + fileName + ";") + "Extended Properties="Excel 8.0""
OleDbConnection connection = null;
connection = new OleDbConnection(connectionString);
connection.Open();

The exception comes on production server at connection.Open() some times, when I reset the asp.net worker process it started to work but after some hours/days It occurs again. how can I fix this issue which comes in production some times but very irritating, or there is some other work around.

View 4 Replies

DataSource Controls :: Read Data From An Access Data File And Input Into The SQL Database?

Mar 10, 2010

I have a lot of members data to enter into the ASPNETDB database. How can I read this data from an Access data file and input into the SQL database. All data is for user Names and Password,

View 1 Replies

DataSource Controls :: Data Access Layers And App Data Database Information

Jan 3, 2010

I am using an SQL Express server hosted on a different machine and it is listed in my server explorer just fine. It is listed as my connection string in my web.config just fine as well and lastly it seems to sync just fine with my asp.net membership tables. My question is does it need to be listed in my app data folder of my site? Currently I have the ASPNETDB.mdf connection listed, which is apparently just a local sql express connection. The database I am using in my webconfig and other files is not listed so do I need to add it there?

Second question is about DAL, Data Access Layers. I have mostly been using presentation level SQL commands with my data presentation controls. Manually entering separate select, insert and update statements. I just went through a tutorial that stated the best way to interact with your database in asp.net is with DAL using table adapters. It mentioned that it gives you the ability to use strongly-typed references to each row. My question is can I use the same method multiple times on a single page. For instance a method inside an adapter named GetProductsByID(@ID) ? What if I want this bound to three different gridviews on a single page? Anyone have any other general things to point out about using DAL over presentation level commands?

View 2 Replies

How To Access Production Server IIS From The Remote Machine

Dec 27, 2010

We have staging server and production server for website. We will move the changes from the staging server to the Production server through the FTP.

Since we have the product release for every 3 months. So, we need to redirect to the latest version in the Production server IIS. Is it possible to access the Production server IIS and redirect the web site link from staging server ?

View 2 Replies

DataSource Controls :: How To Transfer Data From Development Server To Production Server

Jul 8, 2010

how to transfer my data from devlopment server to production server ,i have already records exist in my database if i go for script then how can i transfor record in script i can transfor only table ,procedure and views.I am using SqlServer 2005.

View 2 Replies

SQL Server :: Best Way To Connect To Database On A Production App?

Feb 20, 2011

I know its better to use stored procedures than the asp.net sqldatasource control. But on an app like say amazon and ebay what is the best way to connect to a database (best practices) that multiple users will use: sqldatasourcecontrol,disconnected classes,or connected classes?(Programmatically or not}

View 2 Replies

DataSource Controls :: Access Property Of Object As Session Variable As Declarative Datasource Parameter Value

Oct 27, 2010

I am storing a custom "Organisation" object as a session variable. One of the properties of the Organisation object is "OrganisationID" (integer). I have a DataSource that requires a parameter value to run, and I want to use a SessionParameter to populate this. In a previous version, I stored the OrganisationID directly as a session variable. In that case, I could easily access it like this:

[Code]....

However, how do I now access the OrganisationID property of an "Organisation" type session variable (called "Organisation")? I have tried this, which does not seem to work: <asp:SessionParameter Name="OrganisationID" SessionField="Organisation.OrganisationID" Type="Int32" />

View 2 Replies







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