473,666 Members | 2,048 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Create local SQL db in ASP app

cj
Here's what I'm trying to do direct from MS (Create a Database)
http://msdn2.microsoft.com/en-us/lib...54(VS.80).aspx

Only I have VS 2005 Pro instead of Visual Web Developer. I do have SQL
Server 2005 Express.

I get: Connections to sql server files (*.mdf) require sql server
express 2005 to function properly. Please verify the installation of
the component or download from the URL:
http://go.microsoft.com/fwlink/?linkid=49251

Why doesn't it work?????
Apr 13 '07 #1
4 1766
Hi Cj,

From your description, you're encountering the following error when try
creating a sql express mdf database file in VS 2005, correct?

============
Connections to sql server files (*.mdf) require sql server express 2005 to
function properly. Please verify the installation of .........
=============

Based on my experience, such behavior is likely caused by the following
things:

** SQL Express is not installed or installed with non-default instance name
rather than the default "SQLExpress " (also expected by VS 2005)

** SQL Express hasn't be configured to enable User Instance

I suggest you check the above things via the following steps:

1. Check your installed SQL Express to see whether its instance name is the
"SQLExpress " or other customized value.

2. Try connecting to other database in SQL Express through VS IDE server
explorer or SQL management studio(if you have installed) to see whether it
works

3. Try using script to check the user instance configuration in SQLExpress,
if not enabled, enable it. Here is the BOL reference about "user instance":

#Working with User Instances
http://msdn2.microsoft.com/en-US/library/ms254504.aspx

In addition, here are two web threads about the similar problem and include
some clues on checking the SQL Express instance name and the expected
instance configuration in VS 2005:

http://predicatet.blogspot.com/2007/...er-files-mdf.h
tml

http://forums.microsoft.com/MSDN/Sho...24596&SiteID=1

Hope this helps.
Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

=============== =============== =============== =====

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.

=============== =============== =============== =====

This posting is provided "AS IS" with no warranties, and confers no rights.

Apr 16 '07 #2
cj
Hi Steven,

I don't remember the setup program asking me for an instance name. It
shows as cj\sqlexpress in MS SQL Server Management Studio Express.

http://msdn2.microsoft.com/en-US/library/ms254504.aspx was too confusing
for me to understand but thankfully I had also posted in the SQL Server
group too and a Charles Wang gave me instructions to check user
instances. Sill he left out a few small things like -S after sqlcmd but
I got it to work finally. I believe user instances are enabled. I ran
"sqlcmd -S cj\sqlexpress" from the dos prompt then
1sp_configure
2go
config_value & run_value both show 1 for user instances enabled

Your second link http://predicatet.blogspot..... was very simple but he
said his had "SQLSERVEREXPRE SS" in the SQL server instance name and he
had to leave it blank. Mine was blank but I decided to put "SQLEXPRESS "
in it. It Worked!!!!

I don't know what Visual Studio was thinking the default name was when
it was left blank but I guess it really doesn't matter.

Thank you very much for you help.

CJ

Steven Cheng[MSFT] wrote:
Hi Cj,

From your description, you're encountering the following error when try
creating a sql express mdf database file in VS 2005, correct?

============
Connections to sql server files (*.mdf) require sql server express 2005 to
function properly. Please verify the installation of .........
=============

Based on my experience, such behavior is likely caused by the following
things:

** SQL Express is not installed or installed with non-default instance name
rather than the default "SQLExpress " (also expected by VS 2005)

** SQL Express hasn't be configured to enable User Instance

I suggest you check the above things via the following steps:

1. Check your installed SQL Express to see whether its instance name is the
"SQLExpress " or other customized value.

2. Try connecting to other database in SQL Express through VS IDE server
explorer or SQL management studio(if you have installed) to see whether it
works

3. Try using script to check the user instance configuration in SQLExpress,
if not enabled, enable it. Here is the BOL reference about "user instance":

#Working with User Instances
http://msdn2.microsoft.com/en-US/library/ms254504.aspx

In addition, here are two web threads about the similar problem and include
some clues on checking the SQL Express instance name and the expected
instance configuration in VS 2005:

http://predicatet.blogspot.com/2007/...er-files-mdf.h
tml

http://forums.microsoft.com/MSDN/Sho...24596&SiteID=1

Hope this helps.
Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

=============== =============== =============== =====

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.

=============== =============== =============== =====

This posting is provided "AS IS" with no warranties, and confers no rights.


Apr 16 '07 #3
Thanks for your reply Cj,

Glad that you've got it working. So is the SQL express on your machine be
installed separate from Visual Studio(not install together)? Anyway, as one
of the thread has mentioned, when you want to ensure the installed SQL
Express instance matches the Visual studio's expected SQL Express
instancce, you can use the following setting in Visual Studio 2005:

Tools---options ----Database tools---Data connection

Have a good day!

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.

Apr 17 '07 #4
cj
Yes, SQL Express was installed separately from Visual Studio.
Steven Cheng[MSFT] wrote:
Thanks for your reply Cj,

Glad that you've got it working. So is the SQL express on your machine be
installed separate from Visual Studio(not install together)? Anyway, as one
of the thread has mentioned, when you want to ensure the installed SQL
Express instance matches the Visual studio's expected SQL Express
instancce, you can use the following setting in Visual Studio 2005:

Tools---options ----Database tools---Data connection

Have a good day!

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
Apr 17 '07 #5

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

Similar topics

2
3102
by: Keith Jakobs, MCP | last post by:
Greetings: I had seen several posts around the Internet about this issue from a few months back, but have been unable to find a resolution ... I have a user who is trying to get started with Visual Studio.NET 2003. We have uninstalled and reinstalled the Product.... then we did a complete cleanout of development products, re-installed IIS, and reinstalled JUST Visual Studio.NET 2003 with Framework 1.1 (no more 2002 edition or...
11
3060
by: Andre | last post by:
Hi, I have ASP.NET application running on standalone (not part of the domain) Windows 2003. I use forms authentication for my application. The problem I have is that I need to create and read files on Windows domain network shared drives and also on shared via Samba Unix drives, which is equivalent to writing/reading to the workgroup computer. Please point, if possible, to detailed step by step description of what needs to be done. Thank...
3
14913
by: Amjad | last post by:
Hi, I just wrote a test Windows Service that creates a text file on startup (please see my code below). The file is never created. Protected Overrides Sub OnStart(ByVal args() As String) Dim swLog As StreamWriter = File.CreateText("C:\myLog.txt") swLog.WriteLine("My Windows Service has just started.") swLog.Close() : swLog.Flush() End Sub
3
4318
by: fyi85 | last post by:
I am trying to create a server on the same machine running the same instance. This is v8.1.5 on Windows 2003 Server. The instance is set to FEDERATED=YES The server will be created for database TEST The TEST database will be referenced from database master. There is nobody using the databases and there are no active connections. I log on to the database master from CLP and do
5
3076
by: Philip Nelson | last post by:
I get - db2inst1@dvorak /db2data $ db2 "create database DBTST001 automatic storage yes on /db2data/db2db dbpath on /db2data/db2db" SQL0805N Package "NULLID.SQLE2F0J 0X4141414141654557" was not found. SQLSTATE=51002 At least one other person on the IRC forum reports the same thing, so it isn't my install.
5
20150
by: ljlevend2 | last post by:
Is there any way to create a local server during runtime? For example, if you add an existing Web Site to a Solution from within Visual Studio (by right clicking the solution in the Solution Explorer, then selecting Add - Existing Web Site...), then Visual Studio will create an ASP.NET Development Server on a random port (e.g., http://localhost:1619/Test). Can a similar thing be done during runtime with VB.NET? If not, is it possible to...
16
2958
by: vbnewbie | last post by:
I need to create a number of arraylists at run time. The number of arraylists to be created is unknown at design time. The name of the first newly created arraylist is the first element of an array, NameArray (a Publicly declared array with an unknown number of elements at design time). The name of the second newly created arraylist is the second element of NameArray, etc Problem 1: How can I retrieve that name from NameArray and...
3
2404
by: DBLWizard | last post by:
Howdy All, Is it possible to have Visual Studio 2005 create a project form an existing hosted website? In other words I want to be able connect via ftp to my website structure and have it pull down all the files and create a local project from it? I know things like DreamWeaver will do this ... and I have been poking around VS 2005 and haven't seen anything that jumps out at me.
10
3968
by: SM | last post by:
Hello I'm trying to create a multi dimensional array in JavaScript, but after some reading i still can't figure out how to apply it to my model. Here it is: I have a list A and for each item in the list A i want to associate an undetermined number of items. The complication for me is the fact that the items to associate in list A are undetermined.
4
6901
by: Vlad | last post by:
I am having problems using the file.create method within a function that is called when looping through an array of filepaths. If I call my function with a hardcoded file path --C:\Temp.txt the function creates the file as expected. When I loop through my array I get the error - "ArgumentException was unhandled - Illegal characters in path" The value "C:\Temp.txt" is the first value in the array - as it works
0
8444
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8869
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8781
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8639
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7386
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6198
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4368
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2771
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 we have to send another system
2
1775
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.