Page 1 of 1

Problem in sql script?

Posted: 26 May 2009 4:07
by infomercialscams
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

Posted: 27 May 2011 2:29
by johnwright456
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).