|
|||
stored procedures n' trace flags <sql sever>
SQL SERVER 7.0
how can i EXEC stored procedure automatically? i hav use trace flags 4022, which can do the task... and create the stored procedure in the master dB, but it still cant work, did i put the trace flags at the right place? and how could the master dB trace which dB i use? could anybody help me.... CREATE PROCEDURE [P11] AS DBCC TRACEON (4022) INSERT INTO TABLE1 {CODING...} |
|
|||
Hi, try:
CREATE PROCEDURE proc_name @Field1 varchar(50), @Field2 varchar(50) As INSERT INTO Table(Field1, Field2) values(@Field1, @Field2) Go You can name 'proc_name' whatever you want the procedure to be called. What do you mean by master DB? If you talking about the procedures, the system doesn't read from a mater database. When you make your SQL statement, you would use the database that you want to use (when you establish the connection). To call the procedure you would execute: proc_name Field1 Field2 (change as required) Last edited by sufyan; 13-08-2003 at 04:14 PM. |
![]() |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Dedicated Sever promotion - Limited Stock | AntonWong | Web Hosting Offers | 2 | 30-11-2006 10:04 PM |
All times are GMT +8. The time now is 04:05 AM.
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0 vBulletin skin by ForumMonkeys.com.
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0 vBulletin skin by ForumMonkeys.com.









Linear Mode

