Problem in sql script?

Some examples running with Control-M and Control-EM database.
Post Reply
User avatar
infomercialscams
Nouveau
Nouveau
Posts: 2
Joined: 26 May 2009 12:00

Problem in sql script?

Post by infomercialscams » 26 May 2009 4:07

Hello everyone,
I noticed a problem with auth, in practice I create the script to generate the database (I use ANT or MAVEN) and I run into postgre to create tables.
After that I made the test to insert a Group manually and after to cancel but just delete the line in the table GROUP while the associated row in the table SUBJECT not erase.
I check the script and apparently is not created the rule on the cancellation which is required by default to "ON UPDATE NO ACTION ON DELETE NO ACTION."
But if the operations erasure are made directly from the code with smartweb everything works properly.
I wanted to know then how can create the script sql them properly?
kindly guide me

DEAN GRAZIOSI REVIEW RATINGS

User avatar
johnwright456
Nouveau
Nouveau
Posts: 3
Joined: 27 May 2011 12:00

Post by johnwright456 » 27 May 2011 2:29

Try putting

USE [master]
GO

Before the CREATE DATABASE. Also make sure you login with a user that can actually CREATE a database (Login->Server Roles and Permissions tabs, under SSMS).

Post Reply