is it possible to use same database for both vb.net appplication and asp.net?? and if is possible, how can to connect it??? now..i'd build vb.net application and asp.net in my laptop... it can connect..but i wonder how to make the database connect for vb.net and asp.net in real... thank you in adnvance
-
This question doesn't really make sense. VB.NET is a language. ASP.NET apps can be written with any .NET language including VB.NET. You probably mean WinForms vs ASP.NET. If that's the case, please edit this post (including title).Samuel Neff– Samuel Neff2010-02-04 04:57:08 +00:00Commented Feb 4, 2010 at 4:57
-
@Sam, I am quite sure the OP meant what you commented, he/she probably do not know how to express it better. Maybe you can tweak it? :)o.k.w– o.k.w2010-02-04 04:59:18 +00:00Commented Feb 4, 2010 at 4:59
-
@o.k.w, Since it totally changes the question, I was hoping the OP would confirm before I "tweaked" it. I'm afraid tweaking won't save this question though--it'll just lead to more questions. Specifically it's not clear if the desktop and server both have a connection to the same database server since the question is about making them connect.Samuel Neff– Samuel Neff2010-02-04 05:14:23 +00:00Commented Feb 4, 2010 at 5:14
-
i'm sorry for my question.... i'm really new with this vb.net and asp.net.... but what i meant is it possible to make the application(win forms) which is using vb.net and web based using asp.net to connect same database?? is this question make confuse??irienaoki0407– irienaoki04072010-02-04 06:03:41 +00:00Commented Feb 4, 2010 at 6:03
Add a comment
|
2 Answers
Short answer... Yes.
Databases are meant to be shared by many different applications as well as many different types of applications.
For VB.net and ASP.NET (in the code behind), you can use the same code to access the database...
Using _conn as New SqlConnection(connectionString)
'Do Stuff'
End Using
For databases to use for free, you can get MS SQL Express edition, Oracle XE, MySql, and a few others.