473,651 Members | 3,029 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

select a database as the DataSource

Hello!

I use VS 2005.

A Datasource can be a Database, Web Service or an Object.
So I select Data->Add New Data Source in the menu. In the dialog data Source
Configuration Wizard I choose Database.

When being asked about Choose Your Data Connection I click New Connection.

In this dialog "Choose Data Source" I have several alternatives but there
are two here that I want to know what they mean.

I wonder what is the difference between these two alternatives
"Microsoft SQL Server" and "Microsoft SQL Server Database File".
I have read the description but I don't understand fully what they mean.
The first one is saying this in the description " Use this selection to
connect to Microsoft SQL Server 2000 or 2005
using the .NET Framework Data Provider for SQL Server". This sounds
understandable.
The second one is saying this in the description "Use this selection to
attach a database file to a local Microsoft SQL Server
instance(includ ing Microsoft SQl Express) using the .NET Framework Data
Provider for SQL Server"

So can somebody explain the difference between these two?

//Tony
Apr 1 '08 #1
1 2404
I've never done this before, but based on the messages, I would expect that
the second option allows you to specify a .MDF file (the underlying SQL
database file) which will then be imported into an existing instance of SQL
Express or SQL Server. By imported, I mean, it will create the necessary
metadata in the master database to allow you to access that imported
database.

This is just a guess, but it makes sense to me.
"Tony Johansson" <jo************ *****@telia.com wrote in message
news:28******** *********@newsb .telia.net...
Hello!

I use VS 2005.

A Datasource can be a Database, Web Service or an Object.
So I select Data->Add New Data Source in the menu. In the dialog data
Source Configuration Wizard I choose Database.

When being asked about Choose Your Data Connection I click New Connection.

In this dialog "Choose Data Source" I have several alternatives but there
are two here that I want to know what they mean.

I wonder what is the difference between these two alternatives
"Microsoft SQL Server" and "Microsoft SQL Server Database File".
I have read the description but I don't understand fully what they mean.
The first one is saying this in the description " Use this selection to
connect to Microsoft SQL Server 2000 or 2005
using the .NET Framework Data Provider for SQL Server". This sounds
understandable.
The second one is saying this in the description "Use this selection to
attach a database file to a local Microsoft SQL Server
instance(includ ing Microsoft SQl Express) using the .NET Framework Data
Provider for SQL Server"

So can somebody explain the difference between these two?

//Tony

Apr 2 '08 #2

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

Similar topics

0
6259
by: mdh | last post by:
I am trying to learn the basics of MVC applications using a Tomcat infrastructure. I'm starting by building a simple application with: * a login.jsp page for a basic login form with a action pointing to "loginValidate.jsp" * a loginValidate.jsp page that references logic to validate requests * a loginBean class used to pass info between the JSP and validation logic * a usersDAO class used to perform lookups in a USERS
1
11332
by: John Hall | last post by:
We need to read a SQL database containing a mix of English words and Chinese Characters. We think we need to use the N'xxxx' to read the Unicode. We have one place where the SELECT statement works fine. Here is that statement: dim objCmdCategories as new SQLDataAdapter ("select distinct N'product_category' from " & _ "tblproducts where product_status=1 order by product_category", objConn) However, we can't seem to get another SELECT...
2
9919
by: Chris Plowman | last post by:
Hi all, I was wondering if anyone can help me with a really annoying problem I have been having. I made a derived datagrid class that will select the row when a user clicks anywhere on a cell (multi-select without modifier keys). I got that working fine, but I also wanted to keep rows selected after a sort, which I do by storing the row's id in an arraylist. The idea was to do the sort and then go back and re-select the rows with that...
3
2516
by: Hartmut Schroth | last post by:
Hi, I need a solution for the following problem: In the item template of a datalist control I have already a button control with the commandname set to "select" to perform some specific database action. I additionally want to update an integer value in the underlying data source by simply clicking an a check box or an imagebutton WITHOUT USING THE EDIT/UPDATE COMMANDNAME property of the
7
2992
by: Matt Jensen | last post by:
Howdy Fairly simple question I think, I presume the answer is no it can't be reused for 2 *SELECT* statements, but just hoping for clarification. Just asking in the interests of trying to minimise code. i.e. if the SqlDataAdapter uses a connection to the one database for a select statement and I want to do a second select statement on exactly the same database, can I reuse the SqlDataAdapter? I ask because I want to put both 'select'...
12
2277
by: Doug Bell | last post by:
Hi, I am having problems trying to create a (temporary) DataTable from a selection from a DataGrid (dgOrders). dtOrdDetails is declared as a Public DataTable Sub is: Dim stFilter as String Dim OrdersRows() as DataRow
1
1954
by: chreo | last post by:
Hello. Does anybody had problem with VB application with MS SQL Database? I have DATAGRID which shows TABLE from DATABASE. Next I add new ROW to TABLE with SQLcommand (stored procedure) Command works everytime - I see in database that new rows are added.
3
1608
by: Richard Morton | last post by:
Hi, This is my first posting to this list, I guess a small intro should be first, been developing in PHP for sometime, mainly with Mysql and nearly always on Windows (oops, sorry). I have done some bizarre things with PHP, but now I am involved in re-writing an application (from ASP.NET). The database however I can't change so easily as there are other
0
1800
by: Moneypenny | last post by:
Hi there, I have a Gridview control which has a dropdownlist in every row. The dropdowns are populated dynamically from a database (so the content is different in each row. There is also a select button for each row so that the the user can choose a row and the values will be added to a shopping cart. My problem is that the page loads fine and everything is showing as it should be. However, when I select a row the dropdownlist for that row...
0
8357
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
8277
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8465
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7298
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
6158
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
5612
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4285
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2701
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
1588
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.