# Connecto to database SQL2005 from ActionScript3

**URL:** <https://forum.kirupa.com/t/connecto-to-database-sql2005-from-actionscript3/284348>\
**Category:** Uncategorized\
**Created:** [March 18, 2009, 11:08am UTC](https://forum.kirupa.com/t/connecto-to-database-sql2005-from-actionscript3/284348 "2009-03-18T11:08:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahmy](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@ahmy](https://forum.kirupa.com/u/ahmy)\
**Post date:** [March 18, 2009, 11:08am UTC](https://forum.kirupa.com/t/connecto-to-database-sql2005-from-actionscript3/284348/1 "2009-03-18T11:08:55Z")

</div>

[SIZE=3]I need a code that enables me to connecto to database SQL2005 using ActionScript3 even directly or through middleware(Asp.net2 only not PHP).  
i searched about this issue in google and i found that it should be a middleware like PHP or ASP page and i want to know in details why direct connection is not secure and how data is exposed to all user and can be accessed ? as in C# we connecto to database directly so why data is not exposed to all user and we can secure it?  
i need please a help as i am new in this forum and a beginner in cs3  
if any one have an optimized solution please give full code for that [/SIZE]
