473,503 Members | 2,114 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

creating .mdf in ASP

cj
I've been writing Windows apps for years now but to become familiar with
web apps I'm working my way through some instructions to build a web
site using a SQL database. The instructions assume I'm using VB Express
but I'm using VB 2005 pro. I ran into a problem when the instructions
said to right click on App_Data in the Solution Explorer and add a new
SQL database item. I got the following error:

Connections to SQL Server files(*.mdf) require SQL Server Express 2005
to function properly.

I do have SQL Server Express 2005 on my pc, it is running and I can use
SQL Server Management Studio Express to connect to it.

I think the problem comes from the fact many of my windows apps use our
production SQL Server 2000 database in the computer room. I expect that
the production system is being seen as the default SQL Server by my pc
and consequently the web app is trying to connect to it to create the
database. I think I should be able to choose which server the database
is created in somehow. Do you have any idea how I can force the web app
to look at my pc's SQL Server Express?
Apr 12 '07 #1
5 1383
Which is the technology you would prefer to use... SQL Server or MDF?

Use the App_Data folder you can create a connection (and database)
using Access as your backend (.mdf)

If you open server explorer and right click on data connections you
can create a new SQL database. The two things are entirely seperate
from one another.

Apr 12 '07 #2
Charlie Brown,

SQL Server 2005 uses .mdf files to hold databases. Access uses .mdb files
for the same purpose.

Kerry Moorman
"Charlie Brown" wrote:
Which is the technology you would prefer to use... SQL Server or MDF?

Use the App_Data folder you can create a connection (and database)
using Access as your backend (.mdf)

If you open server explorer and right click on data connections you
can create a new SQL database. The two things are entirely seperate
from one another.

Apr 12 '07 #3
I stand corrected, Thank you.

To the OP: Try using the Data Sources tab to create a new data source
if you haven't already. That should allow you to choose the server to
which you want to connnect.

Apr 12 '07 #4
cj
This problem seems to be that although SQL Server Management Studio
Express can connect and create a DB in SQL Server Express 2005 nothing
else can connect to it--including VB. I've been Googling and searching
but can't figure out how to get it to work.

Charlie Brown wrote:
I stand corrected, Thank you.

To the OP: Try using the Data Sources tab to create a new data source
if you haven't already. That should allow you to choose the server to
which you want to connnect.
Apr 12 '07 #5
cj
It's working now. Don't know what fixed it but at least it's working.

cj wrote:
This problem seems to be that although SQL Server Management Studio
Express can connect and create a DB in SQL Server Express 2005 nothing
else can connect to it--including VB. I've been Googling and searching
but can't figure out how to get it to work.

Charlie Brown wrote:
>I stand corrected, Thank you.

To the OP: Try using the Data Sources tab to create a new data source
if you haven't already. That should allow you to choose the server to
which you want to connnect.
Apr 12 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2706
by: rdsteph | last post by:
Python411 is a series of podcasts about Python, aimed at hobbyists and others who are learning Python. Each episode focuses on one aspect of learning Python, or one kind of Python programming, and...
6
6092
by: owen | last post by:
Generally speaking, what does it mean when I see a "button" with red text showing this message instead of the control I've dragged onto the web form in Design View.? (But the page works fine at...
2
2127
by: Pawan | last post by:
Hi Guys, I have this current assignment where I have to develop online forms for local municipal authorities. I have to use adobe acrobat to create online forms from PDFs (which I have never done...
15
6718
by: Carlos Lozano | last post by:
Hi, What is the right way to create an OCX COM component. The component is already registerred, but can't create an instance. I am using the reference to the interop module created. If I use...
2
3765
by: LIN | last post by:
Hello, Greetings. I am creating a web site which will contain lot of articles. I had been planning to create simple HTML page on the server everytime i posted a article (eg. article12.html )....
2
4548
by: Patrick | last post by:
I want to define a set of web-form templates in XML and render the equivalent web-form with ASP.NET, then process any input server controls on the form. Reading the XML file from Page_load is...
0
2118
by: Ravi Ambros Wallau | last post by:
Hi: I've created a custom control - a grid that uses Infragistics to display some filters, the grid itself, and some buttons. Well, when using this control directly on WebForm, everything works...
12
3138
by: Mats Lycken | last post by:
Hi, I'm creating a CMS that I would like to be plug-in based with different plugins handling different kinds of content. What I really want is to be able to load/unload plugins on the fly without...
15
2789
by: David Thielen | last post by:
Hi; My ASP.NET app (C# calling J# under .net 2.0) creates a png file in a subdirectory to display as part of the created page. However, the bitmap will not display due to a security violation. ...
9
2962
by: =?Utf-8?B?YmJn?= | last post by:
Hi all, I read somewhere "using kernel stuff in thread is not good.." if ManualResetEvent object is created in thread but not actually used, will it affect performance? Bob
0
7205
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7287
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7348
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7006
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5021
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3175
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3166
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1519
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
397
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.