Need OS X Server Script help

Hi All,
We have an issue with one of our servers ( 10.4.11 ), and I would like to restart it every day. I do not see that option in System Prefs anymore so I think I need to write a script to do it? I am using Lingon.
Any help appreciated.
TIA - Vijay

The option to schedule a restart is available in 10.4.11
System Preferences -> Energy Saver -> Schedule

Similar Messages

  • Help needed with Popcorn Island Script

    Hey all, I am trying to use this script so I can transfer over my FCP files to AE. I have watched the tutorial but it doesn't show you how to install the script. I'm asked for a language and I'm not sure what I need to be using or where to go from there. The link for the download is below if it helps.
    Anyone with experience in this that can help is greatly appreciated.
    http://www.popcornisland.com/after-effects/final-cut-2-after-effects/
    Cheers
    GK

    Just move the script into the relevant AE script folder. You will see the script in the dropdown list when you select File/Scripts within AE.
    You don't need to "run" the script outside of AE. (The only reason I can think that you have been asked for a language is that you have double-clicked on the script and opened the programme, ExtendScript Toolkit. There's no reason to do this.)
    Frank

  • Serious, Pro level Illustrator Scripting help needed

    I need a pretty robust script and I am willing to pay for it. I am sorry if soliciting like that is a against forum rules, I will find out if my post gets, deleted/locked. I am just serious about this need for a script.
    I am not sure if this is possible in Illustrator, but I really hope so. I need a script that will read the information from the x,y position and width x height in the Transform Palette of any selected object (or objects would be even better), including all the the different reference point values, and then write discrete user selected info; based on a easy to use panel of check marks, radio buttons or whatever, to a text field a set number of pixel offset from the upper left corner of the object bounds.
    I would be happy to explain further if this is the correct place for this type of discussion.
    If this is not the right place, my humblest apologies but perhaps someone could turn me on to a better place?
    Thanks in advance for any help!

    This does not sound like a big task.
    Here is a script I use every day.
    displays the Width and Height below each selected Item or group.
    have a go and let me know if this is kinda what you are thinking.
    from there we can work out how you want everything displayed
    var doc = app.activeDocument;
    var sel = doc.selection;
    var TOmm = 2.83466796875;
    Dim(sel);
    function Dim(objs) {
        for (var i=objs.length-1;i>=0;i--) { // loop through your collection of objects
            var bounds = objs[i].visibleBounds; // Get visibal bounds, which are only visable bounds in some cases...
            var b1 = bounds[0] /TOmm;
            var b2 = bounds[1] /TOmm;
            var b3 = bounds[2] /TOmm;
            var b4 = bounds[3] /TOmm;
            var W = Math.abs(b3-b1).toFixed(1);
            var H = Math.abs(b4-b2).toFixed(1);
            var txt = doc.textFrames.add(); // Create the text frame
            txt.contents = "Size:  "+ H + " x " +W + " mm W";  // Adds contents to frame
            txt.position = [objs[i].left,objs[i].top - objs[i].height - 20]; // Positions the frame
    This example ignores clipping paths and measures everything, including what is clipped.

  • Custom Calculation Script Help Needed

    I need to make a script that Sums a column of fields based on whether or not information found in another column of fields is the same or specific text. Please see below screenshot of what I would like it to do.
    I would like a Sum of all Amounts that have the Code A...

    You can use this script as the custom calculation script of "SumOfA":
    var total = 0;
    for (var i=0; i<=2; i++) {
        if (this.getField("p1TC."+i).value=="Code A")
            total+=Number(this.getField("p1RecIn."+i).value);
    event.value = total;
    You can easily adjust it for the other field as well.

  • Do I need a email server? Please help

    Hi,
    currently my school project needs to create a email system that send reminder and notice to users. However, we are unable to tap the school email server, I am using my own pop3 account (my ISP). I dun think it is a good way. Do i need an email server to make the system more appropiate? If yes, any email server to recommend?? Please guide..thanks

    you don't need an email server to send mail. Just write a small "main" class that opens a socket to whatever domain you're sending to (ex: hotmail.com) on port 25. Then just use all the SMTP commands:
    http://www.ietf.org/rfc/rfc0821.txt
    Basically, you'll have a conversation with their server, something like this:
    //FOR READING WHAT THE SERVER SAYS
    BufferedReader in = new BufferedReader(new InputStreamReader(sock.getInputStream()));
    //SO YOU CAN RESPOND
    PrintStream out = new PrintStream(sock.getOutputStream() );
    //STORE THEIR RESPONSES
    String strResponse;
    //SEND IT CONNECTION OK, YOU REACHED...
    out.println("220 mail.myserver.com SMTP Server (Billy Bob's Personal Server v5.0) ready");
    out.flush();
    strResponse = in.readLine();
    if (strResponse.equals("EHLO") || strResponse.equals("HELO"))
         out.println("250 mail.myserver.com");
         out.flush();
    etc...Now, it won't actually be "EHLO" or "HELO", it'll probably be that plus their name or something. So maybe: "EHLO mail.yahoo.com". Anyways, don't worry about all that. You can get that info at the link I put above. it'll do the assignment, and be more fun!

  • Novice in need of a bit of help

    The last time I put together a website was with Frontpage, so
    this is the first time i've attempted to do serious work in DW.
    I'm currently at a stage where i've done the website layout
    in PS, have sliced it up in IR and am editing it in DW. I've also
    done a Flash menu that i'm trying to integrate into DW.
    I've run into a number of problems though:-
    1. I can't seem to move the images around in DW - the center
    of the website will be taken up by a white portion (where all the
    text will go) and i've tried to delete that and put it back in as a
    background image. But when I do that, the image that's directly
    below it (a grey bar for the bottom of the website) get's pushed
    up. I can't seem to move any of the images around. Is there a way
    of locking all of the images, bar the one that's currently
    selected, that I don't want to immediately move around (e.g. with
    different layers in PS)?
    2. When I try to import the Flash menu into DW, I can't move
    it around either. It just sits in the spot it was inserted in.
    Additionally, I can't find a way of giving the Flash menu a
    transparent background. I just need the Flash buttons to sit over
    the background image. Is that something I need to correct in Flash
    or can I do that in DW?
    3. When I eventually get the Flash menu sitting nice and
    pretty on top of the background image, how do I link the Flash
    buttons to the different pages?
    4. How do I insert a pdf d/l function into the website?
    There'll be a tonne of documents on there (it's for a small
    accounting firm) and the client wants the ability to offer some of
    the documents as pdf downloads.
    Any help/advice'd concerning these issues would be greatly
    appreciated, thanks.

    > I'm currently at a stage where i've done the website
    layout in PS, have
    > sliced
    > it up in IR and am editing it in DW. I've also done a
    Flash menu that i'm
    > trying to integrate into DW.
    While this is not surprising, it's a VERY bad start. One
    should never use
    HTML written by a graphics program for 'serious' work. It's
    fragile, and
    poorly formed, and will break at the slightest provocation.
    I'd guess that
    in excess of 20% of all the posts here are directly related
    to the use of
    such HTML.
    In addition, Flash menus are bad business. You create a
    monster for
    yourself, since DW will not manage the links in that menu, in
    the event that
    files are named or moved from their current location. They
    are also
    inaccessible to those using screen assistive devices, and are
    just downright
    bad.
    > 1. I can't seem to move the images around in DW - the
    center of the
    > website
    > will be taken up by a white portion (where all the text
    will go) and i've
    > tried
    > to delete that and put it back in as a background image.
    But when I do
    > that,
    > the image that's directly below it (a grey bar for the
    bottom of the
    > website)
    > get's pushed up. I can't seem to move any of the images
    around. Is there
    > a
    > way of locking all of the images, bar the one that's
    currently selected,
    > that I
    > don't want to immediately move around (e.g. with
    different layers in PS)?
    You are suffering from a well-known disease, called "trying
    to build HTML
    pages without knowing HTML", often also called "trying to use
    an HTML
    authoring program as if it were Microsoft Word". I'm not
    trying to be
    snarky here. You will just need to learn some HTML. When you
    do this, you
    will quickly discover that HTML doesn't allow you to just put
    things on the
    page as if it were a graphics program, or a printed page
    layout program.
    > 2. When I try to import the Flash menu into DW, I can't
    move it around
    > either.
    > It just sits in the spot it was inserted in.
    Additionally, I can't find a
    > way
    > of giving the Flash menu a transparent background. I
    just need the Flash
    > buttons to sit over the background image. Is that
    something I need to
    > correct
    > in Flash or can I do that in DW?
    See above. Also, to make Flash transparent is a trick. You
    can use the
    Flash
    wmode parameter (however, Safari does not support this
    properly!).
    Adobe articles:
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_15523
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14201
    > 3. When I eventually get the Flash menu sitting nice and
    pretty on top of
    > the
    > background image, how do I link the Flash buttons to the
    different pages?
    You have to do this in Flash, not HTML - another good reason
    not to use
    Flash Buttons.
    > 4. How do I insert a pdf d/l function into the website?
    There'll be a
    > tonne
    > of documents on there (it's for a small accounting firm)
    and the client
    > wants
    > the ability to offer some of the documents as pdf
    downloads.
    Zip them, and link to the zipped document as you would to any
    other file.
    You can force a download, but that would require
    server-scripting that I
    don't think you are ready for yet.
    Good luck - there's lots of help here to get you up to speed.
    Don't be shy
    about seeking it!
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Lantonator" <[email protected]> wrote in
    message
    news:[email protected]...
    > The last time I put together a website was with
    Frontpage, so this is the
    > first
    > time i've attempted to do serious work in DW.
    >
    > I'm currently at a stage where i've done the website
    layout in PS, have
    > sliced
    > it up in IR and am editing it in DW. I've also done a
    Flash menu that i'm
    > trying to integrate into DW.
    >
    > I've run into a number of problems though:-
    >
    > 1. I can't seem to move the images around in DW - the
    center of the
    > website
    > will be taken up by a white portion (where all the text
    will go) and i've
    > tried
    > to delete that and put it back in as a background image.
    But when I do
    > that,
    > the image that's directly below it (a grey bar for the
    bottom of the
    > website)
    > get's pushed up. I can't seem to move any of the images
    around. Is there
    > a
    > way of locking all of the images, bar the one that's
    currently selected,
    > that I
    > don't want to immediately move around (e.g. with
    different layers in PS)?
    >
    > 2. When I try to import the Flash menu into DW, I can't
    move it around
    > either.
    > It just sits in the spot it was inserted in.
    Additionally, I can't find a
    > way
    > of giving the Flash menu a transparent background. I
    just need the Flash
    > buttons to sit over the background image. Is that
    something I need to
    > correct
    > in Flash or can I do that in DW?
    >
    > 3. When I eventually get the Flash menu sitting nice and
    pretty on top of
    > the
    > background image, how do I link the Flash buttons to the
    different pages?
    >
    > 4. How do I insert a pdf d/l function into the website?
    There'll be a
    > tonne
    > of documents on there (it's for a small accounting firm)
    and the client
    > wants
    > the ability to offer some of the documents as pdf
    downloads.
    >
    > Any help/advice'd concerning these issues would be
    greatly appreciated,
    > thanks.
    >

  • Calling SQL Server Script File in Hypersonic DB

    HI All,
    I am using Hypersonic Database with java swing.
    To update the database, i am getting SQL Server script file through a webservice.
    The problem is i dont have any idea, how i can update Hypersonic Database with the SQL Server script file.
    Please Help.
    Thanks
    Nitin

    Also I think
    CREATE TABLE table1
    ( tableoneid INT PRIMARY KEY NOT NULL
    , name VARCHAR(255) NOT NULL
    , PRIMARY KEY(tableoneid) );should probably be
    CREATE TABLE table1
    ( tableoneid INT CONSTRAINT table1_pk PRIMARY KEY
    , name VARCHAR(255) NOT NULL );otherwise you specify the primary key twice (and PRIMARY KEY implies NOT NULL so the NOT NULL is redundant).
    Then TABLE2 might need to be something like:
    CREATE TABLE table2
    ( tabletwoid INT NOT NULL
    , tableoneid NOT NULL CONSTRAINT table2_table1_fk REFERENCES table1
    , CONSTRAINT table2_pk PRIMARY KEY(tabletwoid, tableoneid) );although the table-level constraint syntax could be used for the foreign keys if it meant less editing of your scripts. The "CONSTRAINT constraintname" clause of constraints is optional but recommended, as otherwise they will get system-generated names like "SYS_C005157". (Note that if you specify the FK inline as part of the column definition you do not need to include a datatype.)
    If the IDENTITY clause causes a sequential value to be assigned as a default, there is no direct equivalent to that in Oracle. The nearest thing would be a row-level BEFORE INSERT trigger.

  • Sql Server Script for the List of all Country State and City

    I am searching for the Sql Server Script of all country State and City with the Following type
    For the Country only 2 Columns are there i.e. CountryId and CountryName(CountryId is primary Key)
    For the State 3 Columns are there i.e. CountryId, StateId and StateName(StateId is Primary Key and CountryId is Foreign Key)
    For the City 3 Columns are there i.e. StateId ,CityId and CityName(CityId is PrimaryKey and StateId is foreign Key).
    I need this type of Script with Column name. plzzz help me out i m stuck i didnt get the list as i want.
    Thanx and Regrads,

    Hi Vishnu,
    According to your description, you want to list all countries, states and cities, right?
    I have tested it on my local environment, here is a sample script for you reference.
    select
    [dbo].[Country].[CountryId]
    , [dbo].[Country].[CountryName]
    , [dbo].[State].[StateId]
    , [dbo].[State].[StateName]
    , [dbo].[City].[CityId]
    , [dbo].[City].[CityName]
    from
    [dbo].[Country]
    left join [dbo].[State] on [dbo].[Country].[CountryId]=[dbo].[State].[CountryId]
    left join [dbo].[City] on [dbo].[State].[StateId]=[dbo].[City].[StateId]
    Regards,
    Charlie Liao
    TechNet Community Support

  • Script help -- to change the path of some script

    hi
    is it possible to make a script(perl or shell) which will change the location of sql script those are called from different shell script?
    i have some shell script which is calling some sql scripts.now i need one script which will ask for the path of those script once and set the path of those sql script in those shell script.these shell script only containing a line
    "sqlplus / as sysdba @<path of the sql script>/script.sql" now i need one script which will change <path of the sql script> .is it possible to do ??
    i need some help from gurus ...
    rgrds
    Edited by: new2appsdba on Aug 20, 2010 7:16 PM

    Hi
    can you say how to pass this mpath to n number of shell script??
    i need to update n number of script.ie. i need to pass $mpath variable to n number of script.
    example:
    profile_chk.sh contain only :
    sqlplus apps/<pass> @/u02/uatdb/.DBA-Scripts/profile_chk.sqlprofile_chk.sql contain:
    SELECT A.PROFILE_OPTION_ID,A.LEVEL_ID,A.LEVEL_VALUE,A.PROFILE_OPTION_VALUE,V.USER_PROFILE_OPTION_NAME
    FROM APPS.FND_PROFILE_OPTION_VALUES A, APPS.FND_PROFILE_OPTIONS_VL V
    WHERE A.PROFILE_OPTION_ID =V.PROFILE_OPTION_ID
    AND V.USER_PROFILE_OPTION_NAME like '%Debug Log%';
    select t.user_profile_option_name, profile_option_value
    from apps.fnd_profile_options o
    ,apps.fnd_profile_option_values v
    ,apps.fnd_profile_options_tl t
    where o.profile_option_id = v.profile_option_id
    and o.application_id = v.application_id
    and profile_option_value = 'Y'
    and start_date_active = SYSDATE
    and o.profile_option_name = t.profile_option_name
    and level_id=10001
    and (upper(t.user_profile_option_name) like '%PERSONALIZ%'
    and upper(t.user_profile_option_name) not like '%PERSONALIZ%WYSIWYG%'
    order by user_profile_option_name;
    select t.user_profile_option_name, profile_option_value, application_name
    from apps.fnd_profile_options o
    ,apps.fnd_profile_option_values v
    ,apps.fnd_profile_options_tl t
    ,apps.fnd_application_tl a
    where o.profile_option_id = v.profile_option_id
    and o.application_id = v.application_id
    and profile_option_value = 'Y'
    and start_date_active = SYSDATE
    and o.profile_option_name = t.profile_option_name
    and a.application_id = level_value
    and level_id=10002
    and t.language = a.language
    and upper(t.user_profile_option_name) like '%PERSONALIZ%'
    order by user_profile_option_name, application_name;now i need a script say install.sh
    which will update the location of profile_chk.sql in the profile_chk.sh.
    this install.sh will contain n numbers of
    install -c profile_chk.sh /usr/bin so that all user can access this shell script as a command.
    whenever the testing goes one server contains two instance so each everytime i need to monitor locks and invalid objects and etc so i need to use this scripts as a commands.for that reason i need this install -c for each scripts.and i need to visit different places also.so ineed this install.sh.my idea is basically work properly once and enjoy times lazily :-) so whenever i move to new place i shall only run this install.sh once and use those scripts lazily.
    rgrds

  • Retrieve meta for a stream from server script?

    I want to create a server script that will reply with the meta of a specified stream.  This is for a player I have that really needs meta, but I hate having to start playing the video to get it.  Is this possible?  What calls does the server need to do to fetch and transmit the meta?
    Cheers

    Try Stream.getOnMetaData (http://help.adobe.com/en_US/flashmediaserver/ssaslr/WS5b3ccc516d4fbf351e63e3d11a11afc95e-7 e42SSASLR.html#WS5b3ccc516d4fbf351e63e3d11a11afc95e-7f38SSASLR) - see if that resolves your problem

  • Best practice on mailbox database size & we need how many server for deployment exchange server 2013

    Dear all,
    We have  an server that runs Microsoft exchange server 2007 with the following specification:
    4 servers: Hub&CAS1 & Hub&CAS2 & Mailbox1 & Mailbox2 
    Operating System : Microsoft Windows Server 2003 R2 Enterprise x64
    6 mailbox databases
    1500 Mailboxes
    We need to upgrade our exchange server from 2007 to 2013 to fulfill the following requirment:
    I want to upgrade the exchange server 2007 to exchange server 2013 and implement the following details:
    1500 mailboxes
    10GB or 15GB mailbox quota for each user
    How many
    servers and databases  are
    required for this migration<ins cite="mailto:Mohammad%20Ashouri" datetime="2014-05-18T22:41"></ins>?
    Number of the servers:
    Number of the databases:
    Size of each database:
    Many thanks.

    You will also need to check server role requirement in exchange 2013. Please go through this link to calculate the server role requirement : http://blogs.technet.com/b/exchange/archive/2013/05/14/released-exchange-2013-server-role-requirements-calculator.aspx
    2TB is recommended maximum database size for Exchange 2013 databases.
    Here is the complete checklist to upgrade from exchange 2007 to 2013 : http://technet.microsoft.com/en-us/library/ff805032%28v=exchg.150%29.aspx
    Meanwhile, to reduce the risks and time consumed during the completion of migration process, you can have a look at this proficient application(http://www.exchangemigrationtool.com/) that would also be
    a good approach for 1500 users. It will help you to ensure the data security during the migration between exchange 2007 and 2013.

  • Startup shell script help for newbie?

    New to UNIX (linux)... need the bash shell script commands for my r.c local file to start my services when server boots.
    I got my ds, dps and admin server in their respective /opt directories. I need the shell commands to have these start. Of course I can start them manually but when I try a line like this in a script, it doesnt work:
    ./var/opt/sun/directory-server/slapd-dsserver/start-dsserver
    Some path problem or dot thing?

    There are a few other things you may want to consider, such as what the default browser is, are tabs being used, is the page loaded yet, etc, but Safari has a do javascript command in it's scripting dictionary. The following script will open a new document and run your specified javascript, or you can go to their NPR Program Stream Page and download a playlist that will run directly from iTunes.
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px; height: 335px;
    color: #000000;
    background-color: #FFDDFF;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    set my_script to "NPR.Player.openPlayer(2, 0, '03-21-2008', NPR.Player.Action.PLAY_NOW, NPR.Player.Type.PROGRAM, NPR.Player.Mode.LIVE)"
    tell application "Safari"
    activate
    set the URL of the front document to "http://www.npr.org/"
    if my page_loaded(20) is false then error numner - 128 -- page not loaded in time
    do JavaScript my_script in document 1
    end tell
    on page_loaded(timeout_value) -- from http://www.apple.com/applescript/archive/safari/jscript.01.html
    delay 2
    repeat with i from 1 to the timeout_value
    tell application "Safari"
    if (do JavaScript "document.readyState" in document 1) is "complete" then
    return true
    else if i is the timeout_value then
    return false
    else
    delay 1
    end if
    end tell
    end repeat
    return false
    end page_loaded
    </pre>

  • Hi, I need find out a script form of MIGO

    When user receive goods of PO using MIGO, they can print the goods receipt slip if they check the print box.
    Now I need create a new script form instead the default one, but I can't find the configuration of it.
    I think it should be SPRO->Material Management->Purchasing->Messages->Output Control->Message Types->Define message for purchase order , and I got the configuration of NEU, but the result looks not right.
    Is there anyone can help me to find out the exactly configuration of the script form of MIGO?

    but there are no WT03 at all, all output types list below:
    ET01     Material label
    J1IB     Excise Bonding ARE
    J1IF     Subcontract Challan
    MLFH     GR Missing Parts Msg
    MLGR     GR Message
    MLMD     GR Qty Deviation
    MLUD     GR under/Over deliv.
    WA01     GI Note Vers.1
    WA02     GI Note Vers.2
    WA03     GI Note Vers.3
    WAE1     GI Label Vers.1
    WAE2     GI Label Vers.2
    WAE3     GI Label Vers.3
    WE01     GR Note Vers.1
    WE02     GR Note Vers.2
    WE03     GR Note Vers.3
    WEE1     GR Label Vers.1
    WEE2     GR Label Vers.2
    WEE3     GR Label Vers.3
    WEK1     Kanban Card 1
    WF01     GR Prod. Ord. Vers.1
    WF02     GR Prod. Ord. Vers.2
    WLB1     GI Note RP Vers.1
    WLB2     GI Note RP Vers.2
    WLB3     GI Note RP Vers.3

  • Do i need a CAS server per AD site?

    Hi!
    So I have been browsing through a lot of Exchange Server documentation, guides and best practice but I have not found (or misunderstanding) the CAS placement for my situation.
    We are currently in the process of upgrading to Exchange server 2013. As we have an Exchange 2003 only deployment, we will first need to move to Exchange 2010 and get rid of all the Exchange 2003 servers and then move on to Exchange 2013. We have a
    single domain with 21 AD sites. 8 of these sites (Vessels at Sea) are connected by vSat the other 13 of these sites a remote offices with a more stable connection than vSat.
    We want to have a MBX server at every site and what I get from the available documentation on the internet I will also need a HUB server per AD site. What I am not sure about is, do I also need a CAS server per site? What I get from this excerpt:
    "A new service was introduced with Exchange Server 2010 to allow these MAPI connections to be handled by the Client Access
    server. The RPC Client Access service provides data access through a single, common path of the Client Access server, with the exception of public folder requests, which are still made directly to the Mailbox server. This change applies business logic to clients
    more consistently, and provides a better client experience when failover occurs." (ref Understanding RPC Client Access.), is that I also
    need a CAS server per site.
    Can somebody give me any definite insights in this one?
    To summarize the question:
    In a multi site AD with a MBX server per site, do I also need a CAS server per site?
    Your help is much appreciated!
    Regards,
    Erik

    (for Exchange 2010) You need CAS and Hub role in each site where Mailbox role deployed
    Understanding Client Access
    "You must install the Client Access server role in every Exchange organization and every Active Directory site that has the Mailbox server role installed"
    Overview of the Hub Transport Server Role
    "You must deploy a Hub Transport server role in each Active Directory site that contains a Mailbox server role"
    Blog - Smtp25.ru

  • C# application to execute both oracle and sql server script files.

    Hi All,
    I am suppose to develop an application using c# which can execute oracle script files as well as sql server script files based on some user's choice. 
    Both the script files(oracle/sql server) contains scripts to create tables, create views and create functions.
    What is the best way to do this and which existing c# functions should is use.
    Thanks in advance.

    I am suppose to develop an application using c# which can execute oracle script files as well as sql server script files based on some user's choice. 
    You can use SQL Plus for Oracle. You can have a C# program that issues commands  for  scripts for table, views, triggers  creation and the whole 10 yards to SQL Plus,
    http://docs.oracle.com/cd/B19306_01/server.102/b14357/qstart.htm
    https://www.google.com/#q=sql+plus
    I started writing a program to use SQL Plus to run the scripts, but cI ame to the conclusion that it was a waste of my time.
    A tool called OSM, an Oracle, tool gives a list of script files that need to be run do to a change in a script file based on file timestamp. You can copy the list doing a copy/past operation and drop it into SQL Plus's Command line, and SQL Plus runs the
    scripts.
    For MS SQL Server, you have this, which you can run from a C# program too.
    http://www.webfactory-world.de/wfknowledgebase/wfknowledgebase_wf3.3/Content/AdditionalWindowsSettings/Tutorials/UpdatingSQLDBFromCommandLine.htm
    I would consider using the above from a C# program a waste of time too.
    I look at it this way. If the user doesn't have database admin experience and know how to use DB admin tools, then they have no business doing anything with a database - period.
    BTW, the Invoke statement in VB or C# will run SQL Plus or SQL Server command line tool.

Maybe you are looking for

  • Camera Raw 5.5 problem?

    I upgraded to Lightroom 2.5 yesterday (9/20/09), which includes an upgrade to Adobe Camera Raw 5.5.  I started to see a purple artifact appear in highlights after making edits.  (I haven't yet investigated enough to identify which editing tool trigge

  • Can't install Lion in two macs

    Hi, i'm using a MBA where i purchased, downloaded and installed LION with no problem. When i sign in APP Store with the same apple ID in my Imac 27" i can't seem to be able to download and install LION on this machine...it shows the price and buy now

  • My ipod is black screen with logo and does not react

    I connect the iPod to the PC and the logo appeared to me and not turn on or off,

  • Delivaery Date in MRP PR

    Hi All, How the delivery date is calculated in MRP generated? Here is the scenario: We have planned del time in material master is 14 days, GR processing time is 2 days. PR has created on 23 Nov 2011, and it gave the delevery date 28.12.2011 how? FYI

  • How to know oracle 11.2.03  is upgraded from 11.2.02

    Hi All, Please Help me to know whether my Oracle installation is upgraded from lower version or directly installed latest version Thanks in advance