Here is a problem with my C# express installation.(RTM). With the
previous version it was possible to connect to the SQL Server Express specifing a server and a database(add connection).
Now it is only possible through "AttachDBFileName". So I cannot connect to
the SQLEXPRESS if I don't specify "Database file name(.mdf file)". Is that correct
In the VWD it is possible Why this limitation in C#express
In the "Change Data Source" dialog, there are only two Data sources: "Microsoft Access Database file" and "Microsoft SQL Server Database file", NOT "Microsoft SQL Server".
Thanks.

Why this limitation in C#express
BqSoftware
Mario Marschner
I guess these feature was stripped to prevent the user from connecting to a remote sql-server (which is also a limitation of express). The VWD wasn't included in the limitation of remote access, that's why it wasn't stripped of that feature..
cheers,
Paul June A. Domag
Brian Vallelunga
I've been pulling my hair out trying to connect to a SQL 2000 Server Personal Edition database running on the local machine, guess I now know why.
Is this the same also for Visual C++ and VB (express)
Paul Scheremet
An example would be most helpful.
yss
Damn, you're right.. just tried connecting to a SQL 2000 Server now using OLE under Visual Web Developer, works fine.
This makes no sense though, why limit it under all but one express version
Microsoft Can we please have some comment as to why we can connect via OLE etc under Visual Web Developer but not under C++, VB and C# !
Edwin4GS
IMHO, microsoft enabled it in VWD because it would be pretty much useless if you can't connect to an online or external database. Web applications usually are developed with remote database servers, while windows forms application could live with a local database. A reminder, Visual Studio Express are Free and are designed to be used by Hobbyists and students. If you want a more programmer-intended software, then I would suggest using VS2005 professional...
cheers,
Paul June A. Domag
htayhlaing_win
Here's a ADO.Net walkthrough that you might find useful. Using these codes, you can acess a remote sqlserver instance.
cheers,
Paul June A. Domag
Julia Keffer
rbfigueira
NL Camp
Hi,
Here's a product comparison of VS2005 product line.
cheers,
Paul June A. Domag
KenCubs
Yup. Except for VWD (Visual Web Designer).
cheers,
Paul June A. Domag
Michael Proctor from NTDS
You can definitely connect through code. But you cannot connect using the Express environment (Data Sources).
cheers,
Paul June A. Domag
Ori Amiga - MSFT
"
To create the data connection and data adapter
The Data Adapter Configuration Wizard starts, which will help you create both the connection and the adapter.
Since the Wizard has a very limited set of connection types (which is the problem here) going to the wizard to make a connection 0other than what the wizard allows is futile.
Darren Gosbell
Paul is correct in his reply above about why we decided to allow remote database access in Visual Web Developer Express. The typical situation for Visual Web Developer is to build a web site which will be hosted by some hoster on the web. Since many of these hosters require data to be stored on a seperate machine, it is critical to allow VWD applications to access remote databases. The same is not true for client (Windows) applications. For most simple client applications, the database is used to store data locally.
Thanks,
Luke Hoban
Visual C# IDE Program Manager