473,657 Members | 2,486 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Articles on Dynamic SQL and certificates/impersonation

My article on dynamic SQL, "The Curse and Blessings of Dynamic SQL" is
frequently referred to in these newsgroups. I like to announce that I
have rewritten this article thoroughly. I started off with revising it
for SQL 2005, but the more I looked at it, I felt that it was time for a
major overhaul. After all, I wrote the initial version with a mindset of
SQL 6.5.

The URL is the same: http://www.sommarskog.se/dynamic_sql.html.

At the same time, I like to announce a new article, Granting Permissions
through Stored Procedures, http://www.sommarskog.se/grantperm.html. I wrote
this article since SQL 2005 offers two ways to use dynamic SQL in stored
procedures without giving direct table permissions to users. One method
is simpler than the other, but the simple method has some serious side-
effects. I cover these two methods, certificates and impersonation as well
as the classic ownership chaining in this article, and I also briefly
cover owner/schema separation and application roles.
--
Erland Sommarskog, SQL Server MVP, es****@sommarsk og.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
Apr 23 '06 #1
0 1028

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1099
by: Erland Sommarskog | last post by:
Since a few people refer to the articles on my web site, I've acquired a less cumbersome URL. Now you can refer to them as http://www.sommarskog.se/dynamic_sql.html etc. The old URL will continue to work for the forseeable future, so you don't need to rush to update any bookmarks. There are minor updates to three of the articles: * The Curse and Blessings of Dynamic SQL (local cursor with dynamic SQL. Korean translation available).
1
1474
by: Next | last post by:
Hello, I sure could use someone's help : ) I need to authenticate users and securely upload files from laptops on the internet ( not on the same domain as server ) to a server on my domain. But I don't want any interaction from the user...I don't want them to have to enter a username and password. So I believe part of the solution is to use certificates...Many-to-one...Right?
12
2562
by: Anil Krishnamurthy | last post by:
We have an ASP.NET application that uses COM objects through Interop. The web application requires access to network and database resources and hence, needs to impersonate a domain account. The problem is that even when it is configured to run under a certain identity through Web.config, the impersonation is not carried through to COM library. Consequently, the code in COM object runs under a local account and any code that needs to access...
1
3955
by: techfuzz | last post by:
I'm posting my problem experience and solution I found here for other ASP.NET developers. I have a web application that uses Forms Authentication with Active Directory to control access. In this web application, I have search page that utilizes the Windows Indexing Service (MSIDXS provider). For reasons I'm not aware of at this time, setting <identity impersonation="true" /> in the web.config causes an error whenever you try to search.
2
1744
by: Mong | last post by:
Hi, I've developed an ASP.net application for an intranet site. Users will be identified using Windows authentication and they will belong to one of two roles, Admin or Users. The application uses frames with a contents frame down the left which at the moment consists of html tables with a href in each one which will show the appropriate page in the main frame. Nothing too fancy. Now, what I want to do is only show the appropriate...
0
1565
by: dinoo | last post by:
Can some body help me out? I am trying to use client certificates in a Webservice. But some how i am not able to make it. I went through the msdn resources but i think some one needs to help me out. I am using IIS 5.1 on Windows XP professional. I am able to setup the SSL on my webserver using the 14 day trial period certificate. I setup the virtual directory using SSL connection required and Required Client certificates. I want to know...
5
4442
by: | last post by:
Hi all, HttpWebRequest, and SoapHttpClientProtocol both expose a ClientCertificates property, which can hold multiple client certificates, but on the service side, it can only receive one client certificate, since it derives System.Web.Services.WebService class, and it's Context.Request.ClientCertificate is a single HttpClientCertificate object, is there a way to receive all the client certificates that is sent in the request? or does IIS...
2
5772
by: Rune Nergard | last post by:
I have tried to use the System.Security.Cryptography.Xml.SignedXml class to sign an Xml message with Xml-DSIG and using an Enveloped signature type and the sha1RSA algorithm. Everything works fine with soft certificates and some smartcard based certificates. I'm using X509Certificate2 to hold the certificates. My problem is that our customers is forced (by law!) to use a smart-card based personal certificate with strong protection. That is...
1
1450
by: Tor Inge Rislaa | last post by:
Dynamic Articles from a Database Hi, I have a website containing one webform (default.aspx) and a database containing one table (articles) the table contains only 4 field's id, tittles, articletext, date. By simply dragging the table to my page I have a grid view of the data. I would however like to present the data as a list of articles with the title and date as a bold header and the articletext just below a blank line before the...
0
8392
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8305
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8503
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4151
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4301
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1944
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1604
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.