Wednesday, February 13, 2008

Enable select into in sybase

To enable inserts (i.e. if you want to restore a backup with bcp) you can use sp_dboption as follows:

isql -S SERVER -U USER -PASSWORD
use master
go
sp_dboption DATABASE, "select into", true
go
use DATABASE
go
checkpoint
go

3 Comments:

Blogger JeesPhilip said...

thak you Mr

8:58 PM  
Anonymous Anonymous said...

I had a problem to activate the select into option in sybase but with your blog, I've found the solution of my problem.
thank you ! !

yet, my other question is that I want to list all properties of a table field (for exemple the name, type, size, default value)

whith my script, I have got all except the defaut value.

can you help me ?

7:17 AM  
Blogger Gralfca said...

There are tools like aqua studio that can generate the sql code description from a given object. Have you tried with ddlgen ?

7:31 AM  

Post a Comment

<< Home