Tips
Automatically Running Stored Procedures at SQL Server Startup
I have a stored procedure I want to run when SQL Server starts. Is there a way to execute this procedure automatically each time the SQL Server service is started?
Getting started with SQL Server stored procedures
I have been using SQL Server for some time, but all of the code that is issued against the database is embedded in the application code. I know that you can create stored procedures, but I am not exactly sure where to start or what I need to do to implement stored procedures.
Grant Execute to all SQL Server Stored Procedures
With SQL Server 2000 no default server, database or application role was available to be able to execute all stored procedures. With SQL Server 2005 has this changed with all of the new security features? If not, what options do I have to grant execute rights to the needed database roles?
SET NOCOUNT ON Improves SQL Server Stored Procedure Performance
One of the biggest things that DBAs try to do on a daily basis is to ensure that their database systems run as fast as possible. As more and more users access the databases and the databases continue to grow, performance slow downs are almost inevitable. Based on this, DBAs and developers should do everything they possibly can to keep performance related issues in mind early in the database lifecycle. This is not always easy to do, because of the unknowns and the changes that occur over time, but there are some simple things that can be done and we will touch upon one of these in this tip.
SQL Server Stored Procedure Tutorial
In this tutorial we will step through creating, altering and dropping SQL Server stored procedures. The tutorial high level outline is: Creating stored procedures, input parameters, output parameters, error handling, comments, naming, SET NOCOUNT ON, dropping stored procedures and altering stored procedures. Check out this tutorial to jump start your knowledge of SQL Server stored procedures.
Switching Stored Procedure Execution Context in SQL Server using the REVERT clause
In the Granting permission with the EXECUTE AS command in SQL Server 2005 tip, you have seen how you can grant granular permissions using the EXECUTE AS clause. Context switching within a programmable object such as a stored procedure or function is important especially if the user calling the stored procedure does not have enough privileges to run a code block. But to make it more granular, we allow switching execution context only when needed and revert back to the original execution context of the caller. How do we do it?
Verify SQL Server Stored Procedures are the same on multiple servers
I have a stored procedure I push down to all of my servers that does a custom backup job and I want to make sure all servers have the same stored procedure. Is there some way to check without going to each server and reviewing the stored procedure? Check out this to find out.
Top 10
Grant Execute to all SQL Server Stored Procedures
With SQL Server 2000 no default server, database or application role was available to be able to execute all stored procedures. With SQL Server 2005 has this changed with all of the new security features? If not, what options do I have to grant execute rights to the needed database roles?
Verify SQL Server Stored Procedures are the same on multiple servers
I have a stored procedure I push down to all of my servers that does a custom backup job and I want to make sure all servers have the same stored procedure. Is there some way to check without going to each server and reviewing the stored procedure? Check out this to find out.
SET NOCOUNT ON Improves SQL Server Stored Procedure Performance
One of the biggest things that DBAs try to do on a daily basis is to ensure that their database systems run as fast as possible. As more and more users access the databases and the databases continue to grow, performance slow downs are almost inevitable. Based on this, DBAs and developers should do everything they possibly can to keep performance related issues in mind early in the database lifecycle. This is not always easy to do, because of the unknowns and the changes that occur over time, but there are some simple things that can be done and we will touch upon one of these in this tip.
Getting started with SQL Server stored procedures
I have been using SQL Server for some time, but all of the code that is issued against the database is embedded in the application code. I know that you can create stored procedures, but I am not exactly sure where to start or what I need to do to implement stored procedures.
SQL Server Stored Procedure Tutorial
In this tutorial we will step through creating, altering and dropping SQL Server stored procedures. The tutorial high level outline is: Creating stored procedures, input parameters, output parameters, error handling, comments, naming, SET NOCOUNT ON, dropping stored procedures and altering stored procedures. Check out this tutorial to jump start your knowledge of SQL Server stored procedures.
Automatically Running Stored Procedures at SQL Server Startup
I have a stored procedure I want to run when SQL Server starts. Is there a way to execute this procedure automatically each time the SQL Server service is started?
Switching Stored Procedure Execution Context in SQL Server using the REVERT clause
In the Granting permission with the EXECUTE AS command in SQL Server 2005 tip, you have seen how you can grant granular permissions using the EXECUTE AS clause. Context switching within a programmable object such as a stored procedure or function is important especially if the user calling the stored procedure does not have enough privileges to run a code block. But to make it more granular, we allow switching execution context only when needed and revert back to the original execution context of the caller. How do we do it?
Last 10
Grant Execute to all SQL Server Stored Procedures
With SQL Server 2000 no default server, database or application role was available to be able to execute all stored procedures. With SQL Server 2005 has this changed with all of the new security features? If not, what options do I have to grant execute rights to the needed database roles?
Verify SQL Server Stored Procedures are the same on multiple servers
I have a stored procedure I push down to all of my servers that does a custom backup job and I want to make sure all servers have the same stored procedure. Is there some way to check without going to each server and reviewing the stored procedure? Check out this to find out.
SQL Server Stored Procedure Tutorial
In this tutorial we will step through creating, altering and dropping SQL Server stored procedures. The tutorial high level outline is: Creating stored procedures, input parameters, output parameters, error handling, comments, naming, SET NOCOUNT ON, dropping stored procedures and altering stored procedures. Check out this tutorial to jump start your knowledge of SQL Server stored procedures.
Switching Stored Procedure Execution Context in SQL Server using the REVERT clause
In the Granting permission with the EXECUTE AS command in SQL Server 2005 tip, you have seen how you can grant granular permissions using the EXECUTE AS clause. Context switching within a programmable object such as a stored procedure or function is important especially if the user calling the stored procedure does not have enough privileges to run a code block. But to make it more granular, we allow switching execution context only when needed and revert back to the original execution context of the caller. How do we do it?
Automatically Running Stored Procedures at SQL Server Startup
I have a stored procedure I want to run when SQL Server starts. Is there a way to execute this procedure automatically each time the SQL Server service is started?
Getting started with SQL Server stored procedures
I have been using SQL Server for some time, but all of the code that is issued against the database is embedded in the application code. I know that you can create stored procedures, but I am not exactly sure where to start or what I need to do to implement stored procedures.
SET NOCOUNT ON Improves SQL Server Stored Procedure Performance
One of the biggest things that DBAs try to do on a daily basis is to ensure that their database systems run as fast as possible. As more and more users access the databases and the databases continue to grow, performance slow downs are almost inevitable. Based on this, DBAs and developers should do everything they possibly can to keep performance related issues in mind early in the database lifecycle. This is not always easy to do, because of the unknowns and the changes that occur over time, but there are some simple things that can be done and we will touch upon one of these in this tip.