TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
jayakrishnan Morayur
NA
193
258.8k
IncludeIfNotExist in trigger
Mar 12 2011 4:36 AM
conServer =
new
Server
(
new
ServerConnection
(mySQlCon));
Database
db = conServer.Databases[cmbDatabase.Text];
Transfer
t =
new
Transfer
(db);
ScriptingOptions
scriptOp =
new
ScriptingOptions
();
Server db.DatabaseOptions.RecursiveTriggersEnabled =
true
;
t.CopyAllObjects =
true
;
t.DropDestinationObjectsFirst =
true
;
t.CopySchema =
true
;
t.CopyData =
true
;
t.DestinationServer =
true
;
t.CopyAllDatabaseTriggers =
true
;
t.Options.Triggers =
true
;
t.Options.IncludeIfNotExists =
true
;
StringCollection
commands = t.ScriptTransfer();
StringBuilder
sb =
new
StringBuilder
();
i'am generate script above way
but the script of stored procedure and table are includeIfNotExists statment but trigger not includeIfNotExist statment why?
Attachment:
scriptgenerate.zip
Reply
Answers (
3
)
Get next datagridrow
Reading from excel sheet to visual c# datagridview using excel object library