![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Is there a way I can set up a SQL script to run when the instance starts up? SQL Server 2005 SP2 thanks! |
#3
| |||
| |||
|
|
On Oct 18, 11:50 am, traceable1 <thham... (AT) gmail (DOT) com> wrote: Is there a way I can set up a SQL script to run when the instance starts up? SQL Server 2005 SP2 thanks! This link describes the use of 'Automatic Execution Stored Procedures' than may fit the bill for what you are looking for. http://msdn2.microsoft.com/en-us/library/ms191129.aspx |
#4
| |||||||||||||||||||||||||||
| |||||||||||||||||||||||||||
|
|
Is there a way I can set up a SQL script to run when the instance starts up? SQL Server 2005 SP2 |
|
thanks! |
|
Alternatively you can create a job to run your stuff which starts when SQL Server Agent starts... (may not be as good as Tibor's suggestion but I already said, it's just an alternative)-- Ekrem Önsoy |
|
"traceable1" <thham... (AT) gmail (DOT) com> wrote in message news:1192722595.538697.92480 (AT) y27g2000pre (DOT) googlegroups.com... |
|
Is there a way I can set up a SQL script to run when the instance starts up? SQL Server 2005 SP2 |
|
thanks! |
|
Actually, one can claim that your alternative, Ekrem, is a cleaner solution than mine. I.e., it might feel better to have a client app (Agent) execute whatever TSQL commands you want to run instead of the database engine. (Of course, if one only start the engine and not Agent, then the script will not be executed.) Good thinking. :-) |
|
-- Tibor Karaszi, SQL Server MVPhttp://www.karaszi.com/sqlserver/default.asphttp://sqlblog.com/blogs/... |
|
"Ekrem Önsoy" <ek... (AT) btegitim (DOT) com> wrote in message |
|
news:1890C2B6-7DD2-40AE-AF10-01981F3ABD51 (AT) microsoft (DOT) com... |
|
Alternatively you can create a job to run your stuff which starts when SQL Server Agent starts... (may not be as good as Tibor's suggestion but I already said, it's just an alternative) |
|
-- Ekrem Önsoy |
|
"traceable1" <thham... (AT) gmail (DOT) com> wrote in message news:1192722595.538697.92480 (AT) y27g2000pre (DOT) googlegroups.com... |
|
Is there a way I can set up a SQL script to run when the instance starts up? SQL Server 2005 SP2 |
|
thanks!- Hide quoted text - |
|
- Show quoted text - |
|
Actually, one can claim that your alternative, Ekrem, is a cleaner solution than mine. I.e., it might feel better to have a client app (Agent) execute whatever TSQL commands you want to run instead of the database engine. (Of course, if one only start the engine and not Agent, then the script will not be executed.) Good thinking. :-) |
|
-- Tibor Karaszi, SQL Server MVPhttp://www.karaszi.com/sqlserver/default.asphttp://sqlblog.com/blogs/.... |
|
"Ekrem Önsoy" <ek... (AT) btegitim (DOT) com> wrote in message |
|
news:1890C2B6-7DD2-40AE-AF10-01981F3ABD51 (AT) microsoft (DOT) com... |
|
Alternatively you can create a job to run your stuff which starts when SQL Server Agent starts... (may not be as good as Tibor's suggestion but I already said, it's just an alternative) |
|
-- Ekrem Önsoy |
|
"traceable1" <thham... (AT) gmail (DOT) com> wrote in message news:1192722595.538697.92480 (AT) y27g2000pre (DOT) googlegroups.com... |
|
Is there a way I can set up a SQL script to run when the instance starts up? SQL Server 2005 SP2 |
|
thanks!- Hide quoted text - |
|
- Show quoted text - |
|
On Oct 18, 11:50 am, traceable1 <thham... (AT) gmail (DOT) com> wrote: Is there a way I can set up a SQL script to run when the instance starts up? SQL Server 2005 SP2 thanks! This link describes the use of 'Automatic Execution Stored Procedures' than may fit the bill for what you are looking for. http://msdn2.microsoft.com/en-us/library/ms191129.aspx |
![]() |
| Thread Tools | |
| Display Modes | |
| |