IIS Remote Administration dan IIS Database Manager

by rudysetyo 14 October 2009 08:23

Fitur baru dari IIS Manager dari beberapa jajaran IIS Extensions yang menarik adalah IIS Database Manager. Untuk menggunakan IIS Database Manager ini, operator harus memiliki akses ke IIS baik secara local maupun remote. Dengan bantuan IIS Remote Administration, IIS Database Manager pun dapat diakses dari remote area.

Tentunya kita harus mengenal terlebih dahulu fitur dari IIS Remote Administration yang sudah tidak asing lagi, beberapa diantaranya adalah saya kutip dari website iis.net:

  • Remotely manages IIS 7 from Windows 7, Windows Vista, Windows XP, and Windows Server 2003
  • Connects directly to a Web server, Web site, or Web application
  • Installs even when you don't have IIS 7.0 on the local machine
  • Allows multiple simultaneous connections
  • Supports delegated administration to Web sites and Web applications so owners can connect to and manage their own site directly
  • Familiar and easy to use administration tool
  • Supports HTTP over SSL for more secure management
  • Automatically downloads features to the local IIS Manager for Remote Administration console to match features newly installed on the remote Web server.

Pada point terakhir yaitu adanya download fitur otomatis pada lokal IIS Manager ketika ada penambahan Extensions baru pada Web Server, contohnya penambahan Extensions Database Manager, maka secara otomatis IIS Manager lokal akan melakukan download assembly untuk melakukan tugas Database Manager tersebut.

iisdbmanager

Sedangkan langkah-langkah untuk melakukan administrati IIS secara remote sangat mudah sekali, langkah pertama adalah download dan install IIS Manager versi 7.0 dari website Microsoft, pilih sesuai arsitektur OS anda.

32 bit (x86) - http://go.microsoft.com/?linkid=9655671
64 bit (x64) - http://go.microsoft.com/?linkid=9655672

Buka IIS Manager dan pilih koneksi yang sesuai dengan informasi dari Server Administrator, contoh disini adalah Connect to a Site…

remoteiis4

Kemudian masukkan nama server atau IP address dari server tersebut, bisa juga untuk menuliskan nama domain dari website yang akan kita remote administrasinya.

remoteiis5

Masukkan username beserta password untuk melakukan remote administrasi. Username dan password ini haruslah sudah diberikan hak akses ke website oleh Server Administrator.

remoteiis9

Pada langkah selanjutnya, akan ada konfirmasi Server Certificate, ini karena WMSVC service belum disertifikasi, namun tidak masalah, untuk sementara accept saja, klik connect.

remoteiis6

Jika koneksi remote berhasil, maka tampilan yang akan didapatkan yaitu permintaan untuk mengisikan nama website sebagai referensi kedepannya.

remoteiis7

Setelah tombol Finish ditekan, IIS Manager akan menawarkan add on assembly jika pada IIS Server ada penambahan Extensions, sebagai contohnya kita akan mencoba IIS Database Manager, maka pada IIS Manager akan muncul permintaan untuk menginstall add on Database Manager assembly.

iisdbmanager

IIS Remote Administration siap digunakan.

remoteiis8

 

Kemudian untuk fitur IIS Database Manager, setelah proses koneksi IIS Remote Administration berhasil, beserta instalasi add on tambahan yaitu Database Manager assembly, pilih Connection Strings pada bagian ASP.NET, Connection Strings ini tidak lain adalah Connection Strings yang ada pada web.config aplikasi ASP.NET.

Connection Strings

Buka fitur Connection Strings untuk memodifikasinya dan klik "Add...".

Add Connection Strings

Isi Connection Strings dengan informasi database.

Edit Connection Strings

Jika semua informasi database yang diisikan sudah benar, buka fitur Database Manager pada bagian Management.

Database Manager

IIS Manager 7.0 sekarang siap digunakan untuk mengolah database anda berdasarkan Connection Strings yang diisikan.

IIS DB Manager

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Database | IT Pro | SQL Server

ASP.NET Web Hosting in Indonesia, mau?

by rudysetyo 01 February 2009 20:26

If you want to try new erudeye server in Cyber Building, we have a trial...

Control Panel : http://my.erudeye.net
Username : demo
Password : demo2009

Wait for next update...

------- update 3 July 2009 -------

This demo account has been deleted, please signup on erudeye hosting website to use our server Laughing

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , , ,

Database | SQL Server | IT Pro

SQL Server error message no 1105 on hosting area

by rudysetyo 02 November 2008 10:02

Weekend ini saya habiskan untuk memindahkan 2 web applicationnya dari server hosting satu ke lainnya. Untuk memindahkan web application, yang paling crucial adalah memindahkan database, seperti yang sudah kita ketahui bahwa backup restore atau attach database di shared server bisa menimbulkan security thread karena semua object database yang di restore atau di attach akan ikut, termasuk role object.

Maka dari itu setiap hoster biasanya hanya memperbolehkan user untuk melakukan SSIS atau execute query hasil dump database lain. Microsoft team sudah menyediakan tool buat user maupun hoster, silahkan cek di codeplex.

OK, singkatnya setelah kita dump database menggunakan tool Database Publishing Wizard tersebut, langkah selanjutnya adalah run the query against database baru di server, hati-hati dengan query time out. Permasalahan muncul ketika running query tersebut, error message yang muncul adalah

"Could not allocate space for object '%.*ls' in database '%.*ls' because the '%.*ls' filegroup is full. Create disk space by deleting unneeded files, dropping objects in the filegroup, adding additional files to the filegroup, or setting autogrowth on for existing files in the filegroup."

Lebih lengkapnya ada di http://msdn.microsoft.com/en-us/library/aa258767(SQL.80).aspx. Setelah saya cek fisik, ternyata database nya memang di cap hanya sebesar 50MB.

space

Limit database ini ada ketika database di create, mungkin menggunakan SMO, dengan melihat kapasitas hosting yang dipilih. Disini package nya adalah 50 MB, so database yang di create juga sebesar itu pula.

Bisa diambil kesimpulan ketika akan melakukan dump database ke database yang baru, pastikan unrestricted file growth jika file database anda besar, contact your administrator to ensure that.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Database

a "netTiers like" LINQ to SQL application

by rudysetyo 30 January 2008 06:01

Some of us maybe familiar with netTiers when building an application, it's really helping us to cut the development time, LINQ does cut the time also... No, i don't want to compare between netTiers and LINQ to SQL, although in some cases they're comparable... What i want to share here is how to make a simple data visualization using gridview, really simple coz we will use LINQ to accomodate the simpleness... What "simple" i'm talking about? commonly when we build a CRUD application, we use ADO.NET or DAAB to access the database, but in this case, ADO.NET was handled by LINQ.



Familiar with the search control above? if you are new to that control, that is GridViewSearchPanel of netTiers. But what i'll show you is we'll create our own search to GridView exactly the same function as netTiers have.

    <form id="form1" runat="server">
    <div>
        Look for :
        <asp:DropDownList ID="DropDownList1" runat="server">
            <asp:ListItem>Code</asp:ListItem>
            <asp:ListItem>Description</asp:ListItem>
        </asp:DropDownList>
        Which :
        <asp:DropDownList ID="DropDownList2" runat="server">
            <asp:ListItem Value="0">Contains</asp:ListItem>
            <asp:ListItem Value="1">Ends With</asp:ListItem>
            <asp:ListItem Value="2">Starts With</asp:ListItem>
        </asp:DropDownList>
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
        <asp:Button ID="Button1"
            runat="server" Text="Search" onclick="Button1_Click" />
        <asp:Button ID="Button2"
            runat="server" Text="Reset" onclick="Button2_Click" />
        <p></p>   
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="true">
        </asp:GridView></div>
    </form>

1. Add an aspx page right exactly the same as above. 

2. Add LINQ to SQL (.dbml), disobey what behind the dbml right now, we talk about it later, here is my dbml:  

 

3. Go to your code behind, add this code and play it:

    protected void Page_Load(object sender, EventArgs e)
    {
        GridView1.DataSource = GetJobPrefix(0);
        GridView1.DataBind();
    }

    public IList<JobPrefix> GetJobPrefix(int rowStatus)
    {
        using (JobPrefixDataContext context = new JobPrefixDataContext())
        {
            return (from c in context.JobPrefixes
                    where c.RowStatus == rowStatus
                    select c).ToList();
        }
    }

    protected void Button1_Click(object sender, EventArgs e){}

    protected void Button2_Click(object sender, EventArgs e){}

 

In my application, the aspx will render like this, at this point the search facility didn't worked yet.


 

4. Next we'll create a method for searching and filtering.

    public IList<JobPrefix> GetJobPrefix(int rowStatus, string desc, string code, SearchOperator searchOperator)
    {
        using (JobPrefixDataContext context = new JobPrefixDataContext())
        {
            switch (searchOperator)
            {
                case SearchOperator.contains:
                    return (from c in context.JobPrefixes
                            where c.RowStatus == rowStatus && c.JobPrefixDesc.Contains(desc) && c.JobPrefixCode.Contains(code)
                            select c).ToList();
                    break;
                case SearchOperator.endswith:
                    return (from c in context.JobPrefixes
                            where c.RowStatus == rowStatus && c.JobPrefixDesc.EndsWith(desc) && c.JobPrefixCode.EndsWith(code)
                            select c).ToList();
                    break;
                case SearchOperator.startswith:
                    return (from c in context.JobPrefixes
                            where c.RowStatus == rowStatus && c.JobPrefixDesc.StartsWith(desc) && c.JobPrefixCode.StartsWith(code)
                            select c).ToList();
                    break;
                default:
                    return (from c in context.JobPrefixes
                            where c.RowStatus == rowStatus && c.JobPrefixDesc.Contains(desc) && c.JobPrefixCode.Contains(code)
                            select c).ToList();
            }
        }
    }

    public enum SearchOperator
    {
        contains = 0,
        endswith = 1,
        startswith = 2,
    }

    protected void Button1_Click(object sender, EventArgs e)
    {
        switch (DropDownList1.SelectedValue)
        {
            case "Code":
                GridView1.DataSource = GetJobPrefix(0, string.Empty,TextBox1.Text,(SearchOperator)Convert.ToInt32(DropDownList2.SelectedValue));
                GridView1.DataBind();
                break;
            case "Description":
                GridView1.DataSource = GetJobPrefix(0, TextBox1.Text, string.Empty, (SearchOperator)Convert.ToInt32(DropDownList2.SelectedValue));
                GridView1.DataBind();
                break;
        }
       
    }

    protected void Button2_Click(object sender, EventArgs e)
    {
        GridView1.DataSource = GetJobPrefix(0);
        GridView1.DataBind();
    }

 

Ok, that's it. When i try to filter the data using keyword "in" in the Description(JobPrefixDesc) field with the "Contains" method, the aspx will render like this (you could try the "Ends With" and "Starts With" by yourself) 

  

 

  Really simple isn't it? Laughing build our own "netTiers like" GridViewSearchPanel using LINQ to SQL. Please enjoy...

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

.NET Programming | Database

Copyright © Rudy Setyo Purnomo. Hosting by erudeye.

About the author

me Developer
Researcher
Entrepreneur
Juventini

Chat with me!