Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 scripting database

Author  Topic 

noamg
Posting Yak Master

215 Posts

Posted - 2000-12-25 : 09:59:34
I have to create a database + all objects by a programm, not by
enterprise manager.
So, I create the script into a file: db.sql.
my script include tables, store procedure, ect' ...

Now, I wrote a java class that read this file, make connection to the sql server 2000.
I create a CallableStatement and try to execute() it.

I got an exception from the server that say the "GO" word is error.
remember that the end of store procedure is "GO".
What to do ?




Noam Graizer
   

- Advertisement -