# sql scripting help

**URL:** <https://community.unix.com/t/sql-scripting-help/178787>\
**Category:** Shell Programming and Scripting\
**Created:** [December 10, 2007, 6:51am UTC](https://community.unix.com/t/sql-scripting-help/178787 "2007-12-10T06:51:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sam786](https://community.unix.com/letter_avatar/sam786/32/6_449c533f586939b6e5f246632a46421f.png) [@sam786](https://community.unix.com/u/sam786)\
**Post date:** [December 10, 2007, 6:51am UTC](https://community.unix.com/t/sql-scripting-help/178787/1 "2007-12-10T06:51:09Z")

</div>

I would like to run the following as bash script

sql -U history  
update feed\_domain\_configuration  
set enabled=1  
where domain='lon' and vendor\_name='\<lond'

-sam

---

<div class="post-metadata">

**Author:** ![suntac](https://community.unix.com/letter_avatar/suntac/32/6_449c533f586939b6e5f246632a46421f.png) [@suntac](https://community.unix.com/u/suntac)\
**Post date:** [December 10, 2007, 7:03am UTC](https://community.unix.com/t/sql-scripting-help/178787/2 "2007-12-10T07:03:52Z")

</div>

'sql -U history  
update feed\_domain\_configuration  
set enabled=1  
where domain='lon' and vendor\_name='\<lond'"

which database?

Regards,  
Johan Louwers.

---

<div class="post-metadata">

**Author:** ![sam786](https://community.unix.com/letter_avatar/sam786/32/6_449c533f586939b6e5f246632a46421f.png) [@sam786](https://community.unix.com/u/sam786)\
**Post date:** [December 10, 2007, 7:05am UTC](https://community.unix.com/t/sql-scripting-help/178787/3 "2007-12-10T07:05:48Z")

</div>

Sybase

Thanks  
sam

---

<div class="post-metadata">

**Author:** ![suntac](https://community.unix.com/letter_avatar/suntac/32/6_449c533f586939b6e5f246632a46421f.png) [@suntac](https://community.unix.com/u/suntac)\
**Post date:** [December 10, 2007, 11:31am UTC](https://community.unix.com/t/sql-scripting-help/178787/4 "2007-12-10T11:31:08Z")

</div>

Hi sam, I have no experience with Sybase... Have a look at [Basic Usage](http://tldp.org/HOWTO/Sybase-ASE-HOWTO/usage.html)

How do you normally start a sql script from the command line... sql / isql command or something? Just use this command and put it into your bash script.... What is the normal syntax used to start a .sql script at sybase?

Regards,  
Johan Louwers.
