DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    rkbnair Guest

    Sending Message (SQL)


    Is it possible to send a message to another user from VB application via SQL
    Server. I mean I want to send a message to a another user of the same database
    (MS SQL 7.0)

    Thanks,
    RK.


  2. #2
    rkbnair Guest

    Re: Sending Message (SQL)


    David, thanks for the reply. Wherre can I get some documentation for this.
    Which table should be queried in order to get the messages?

    RK.

    "David Satz" <davidNOSPAMsatz@yahoo.com> wrote:
    >AFAIK not thru any native TSQL functionality, but you could design one
    >yourself - it would not be that easy, but VB (if i remember) has some event
    >in the application that can runa timer. The timer could run a query looking
    >for messages.
    >--
    >HTH,
    >David Satz
    >Principal Web Engineer
    >Hyperion Solutions
    >{ SQL Server 2000 SP1/7.0 SP3/6.5 SP5a } { Cold Fusion 5/4.5.1 SP2 } { VSS

    }
    >(Please reply to group only - emails answered rarely)
    >-----------------------------------------------------------------
    >"rkbnair" <rkannale@solus.oceaneering.com> wrote in message
    >news:3c34d601$1@147.208.176.211...
    >>
    >> Is it possible to send a message to another user from VB application via

    >SQL
    >> Server. I mean I want to send a message to a another user of the same

    >database
    >> (MS SQL 7.0)
    >>
    >> Thanks,
    >> RK.
    >>

    >
    >



  3. #3
    David Satz Guest

    Re: Sending Message (SQL)

    AFAIK not thru any native TSQL functionality, but you could design one
    yourself - it would not be that easy, but VB (if i remember) has some event
    in the application that can runa timer. The timer could run a query looking
    for messages.
    --
    HTH,
    David Satz
    Principal Web Engineer
    Hyperion Solutions
    { SQL Server 2000 SP1/7.0 SP3/6.5 SP5a } { Cold Fusion 5/4.5.1 SP2 } { VSS }
    (Please reply to group only - emails answered rarely)
    -----------------------------------------------------------------
    "rkbnair" <rkannale@solus.oceaneering.com> wrote in message
    news:3c34d601$1@147.208.176.211...
    >
    > Is it possible to send a message to another user from VB application via

    SQL
    > Server. I mean I want to send a message to a another user of the same

    database
    > (MS SQL 7.0)
    >
    > Thanks,
    > RK.
    >




  4. #4
    Daniel Reber Guest

    Re: Sending Message (SQL)

    Create a message table with what ever fields you need plus a bit field to
    set if the message has been read or not. In the app add a timer control and
    on the Timer() event add code to retreive all messages that have not been
    read yet.

    HTH
    Daniel Reber
    Datamasters, Inc


    "rkbnair" <rkannale@solus.oceaneering.com> wrote in message
    news:3c34d601$1@147.208.176.211...
    >
    > Is it possible to send a message to another user from VB application via

    SQL
    > Server. I mean I want to send a message to a another user of the same

    database
    > (MS SQL 7.0)
    >
    > Thanks,
    > RK.
    >




  5. #5
    David Satz Guest

    Re: Sending Message (SQL)

    see Daniel post - but basically it is a total do it yourself solution.

    "rkbnair" <rkannale@solus.oceaneering.com> wrote in message
    news:3c35ab8d@147.208.176.211...
    >
    > David, thanks for the reply. Wherre can I get some documentation for this.
    > Which table should be queried in order to get the messages?
    >
    > RK.
    >
    > "David Satz" <davidNOSPAMsatz@yahoo.com> wrote:
    > >AFAIK not thru any native TSQL functionality, but you could design one
    > >yourself - it would not be that easy, but VB (if i remember) has some

    event
    > >in the application that can runa timer. The timer could run a query

    looking
    > >for messages.
    > >--
    > >HTH,
    > >David Satz
    > >Principal Web Engineer
    > >Hyperion Solutions
    > >{ SQL Server 2000 SP1/7.0 SP3/6.5 SP5a } { Cold Fusion 5/4.5.1 SP2 } {

    VSS
    > }
    > >(Please reply to group only - emails answered rarely)
    > >-----------------------------------------------------------------
    > >"rkbnair" <rkannale@solus.oceaneering.com> wrote in message
    > >news:3c34d601$1@147.208.176.211...
    > >>
    > >> Is it possible to send a message to another user from VB application

    via
    > >SQL
    > >> Server. I mean I want to send a message to a another user of the same

    > >database
    > >> (MS SQL 7.0)
    > >>
    > >> Thanks,
    > >> RK.
    > >>

    > >
    > >

    >




  6. #6
    rkbnair Guest

    Re: Sending Message (SQL)


    Daniel/David.

    Thanks for your guidelines. It was so easy to do. It is working perfect.

    Thanks you both
    "Daniel Reber" <dreber@dminconline.com> wrote:
    >Create a message table with what ever fields you need plus a bit field to
    >set if the message has been read or not. In the app add a timer control

    and
    >on the Timer() event add code to retreive all messages that have not been
    >read yet.
    >
    >HTH
    >Daniel Reber
    >Datamasters, Inc
    >
    >
    >"rkbnair" <rkannale@solus.oceaneering.com> wrote in message
    >news:3c34d601$1@147.208.176.211...
    >>
    >> Is it possible to send a message to another user from VB application via

    >SQL
    >> Server. I mean I want to send a message to a another user of the same

    >database
    >> (MS SQL 7.0)
    >>
    >> Thanks,
    >> RK.
    >>

    >
    >



  7. #7
    Peter Belbin Guest

    Re: Sending Message (SQL)


    Yes, it is possible, if all your ducks are sitting in a row.

    You can knock up a T-SQL procedure which uses runs a command line prompt
    to send the message to the client using the net message command.

    The only problem with this is that it relies on the client running the messenger
    service in order to catch the message at the client, and cause it to be displayed
    on the screen.

    Mostly this is already running, but, depending on the client, it might not.
    Mostly WinNt clients will have it running all the time. Win9x might not,
    however.

    peter.



    "rkbnair" <rkannale@solus.oceaneering.com> wrote:
    >
    >Is it possible to send a message to another user from VB application via

    SQL
    >Server. I mean I want to send a message to a another user of the same database
    >(MS SQL 7.0)
    >
    >Thanks,
    >RK.
    >



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links