Just An FYI Access 2000 Upsizer Does Not Upsize Data To Express 05

Mar 20, 2006

Found out the hard way.

Data does not get upsized from Access 2000 to Sql express 05.



Just an FYI for anyone out there who might need to upsize Access 2000 Dbs.

View 1 Replies


ADVERTISEMENT

Upsize Access 2000

Mar 28, 2006

Hi,

Is it possible to upsize Access 2000 to Sql Server 2005?

Thanks

View 5 Replies View Related

HELP!!! How To Upsize From Access 2002 To SQL Express

Nov 29, 2005

Problem:Upsize a backend MSAccess 2002 Database to SQL Express 2005Explored:Tried using the upsizing wizard from Office XP(2002), Two tables always get skipped.***! The two tables skipped data only, the tablename and data structure were created.Tried to install UPSize Pro, installation failed.I decide to try it in VWD 2005, here is my code so far but it keeps erroring out.
Dim cn As System.Data.OleDb.OleDbConnectionDim cmd As System.Data.OleDb.OleDbDataAdapterDim ds As New System.Data.DataSet()cn = New System.Data.OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source='C:Documents and SettingsBillMy DocumentsVisual Studio 2005WebSitesWebSite1App_DataData for Database.mdb';Persist Security Info=True")cmd = New System.Data.OleDb.OleDbDataAdapter("select * from Service_Orders", cn)cn.Open()cmd.Fill(ds)cn.Close()


Dim connDest As New Data.SqlClient.SqlConnection("Data Source=WLOCKLAPTOPSQLEXPRESS;Initial Catalog='Data for DatabaseSQLND1';Integrated Security=True")connDest.Open()Dim oBCP As New Data.SqlClient.SqlBulkCopy(connDest)oBCP.DestinationTableName = "Service_Orders"oBCP.WriteToServer(ds)oBCP.Close()connDest.Close()
It erors on Line oBCP.WriteToServer(ds)with......System.InvalidCastException was unhandled by user code  Message="Unable to cast object of type 'System.Data.DataSet' to type 'System.Data.IDataReader'."  Source="App_Web_hb6xyamq"  StackTrace:       at ASP.xfer_data_aspx.Button1_Click(Object sender, EventArgs e) in C:Documents and SettingsBillMy DocumentsVisual Studio 2005WebSitesWebSite1xfer data.aspx:line 30       at System.Web.UI.WebControls.Button.OnClick(EventArgs e)       at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)       at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)       at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)       at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)I'm open for ANY suggestions, I do not have access to DTS, its not in the Express addition. Thanks in advance.Bill

View 2 Replies View Related

Can I Upsize From Access If I'm Not Running SQL Server

Jan 11, 2002

Hi,

I doing Coldfusion web development using MS Access, but the final product needs to use SQL Server. Is there a way for me to upsize from MS Access to SQL Server without having to purchase/install SQL Server?

Thanks.

View 3 Replies View Related

Upsize From Mdb To SQL Express 2005

Nov 22, 2007

Hi,i'm working on a project for convert from a mdb AccessXP(2002)application backend to SQL Server Express 2005.In the past i convertend a similar backend to SQL Server 2000.My problem is: I have many fields on mdb backend with spaces in fieldname (i know bad thing)With SQL Server 2000 I had no problem because it recognize the fieldcorrectly with syntax [field name]but now with SQL Server Express 2005 i'm experiencing problems....infact it wants to write the field in this way 'field name'.Now...what do u suggest me?Go back to SQL Server 2000 or change all the field names? this isbecause with the character ' apex i have many problem in SQL syntax.Thank u in advanceByeRob

View 5 Replies View Related

Migration Of VB Net 2005 (Pro) App Using Access 2000 DB (DAO && ADO) To SQL Express

Nov 3, 2006

I've downloaded the migration tool to convert an Access 2000 DB to a SQL DB. The VB code utilizes DAO (3.6) for hourly automatic compaction and the creation of an encrypted security database. ADO is used for the data maintenance functions. I expect the current connection methodology of ODBC using Jet 4.0 will need to be modified (many articles here address this). All the SQL code is inline and also must be modified. The Coldfusion code utilizes Micrsoft Access with Unicode via an ODBC connection with only SQL Select statements. At another job, I migrated an Informix 7 database to MS SQL 7 and for the most part the SQL code remained the same except for the wildcard spec from * to %.

I'm looking for insights and/or shortcuts on this effort, primarily in the SQL command mods area. I'm perusing the threads here as we speak, but hoped someone knew of a specific thread I could go to....laziness is alive and well for us chronologically gifted people, i.e. over 55.

Any help or links are greatly appreciated!

View 1 Replies View Related

Link To SQL Server Express From Access 2000

May 22, 2006

i'm trying to set a data source in Access 2000 to link to SQL Server express..I have mixed mode set..what user/password do I put in? I tried sa, but get error server does not exist, or access denied..
thanks!

View 1 Replies View Related

Converting Data From Access 2000 To SQL Server 2000

Oct 18, 2004

Hi,
I worked on a project in ASP.NET using SQL server 2000 as the back end. Its a conversion application that I rewrote in ASP.NET using C#. I need to import the old data in Access db into SQL server 2000 and I have very little knowledge about doing it. The data in not a direct one -one transformation. There are considerable changes to the Database design and data types. Any help and suggestions wud be really helpful. Also, any article links wud be great.

Thanks

View 1 Replies View Related

Upsizing Access 2000 DB To SQL Server 2005 Express Edition

Jul 26, 2006

Hi

I have an Access 2000 Database which I am upsizing to SQL Server 2005 Express Edition. The Database has 29 tables and 60 stored queries. Each time I upsize to SQL Server the tables come in fine but non of the queries are imported.

All of the queries are very simple Select, Insert, Update and Delete Queries with nothing special in them.

I have tried using the upsizing wizard in Access 2003 and also the SQL Server 2005 Migration Assistant for Access.

Is there anything special I need to do in the migration assistant to ensure that the queries are imported as well.

Cheers

Redav

View 4 Replies View Related

Migrating MS Access Data To SQL Express Data

Feb 17, 2007

Hi all,
We have access database with lots of data in it. I want to move all the dat to the new database which has completely differenet database structure (e.g different tables, different rows).
What I was thinking is that there are 2 ways. one is manually, which will take long tome probably, and the other is to rum queries that will move the data from access to the new sql express. The question is how to that. I know that I used onw CSV files exported for ms access, but now the queries will be much more complex and I will use more then one table for te query.
How can I query from 2 different databases, which from one I read data(access), and from the other I write data (express)?
Thanks alot.

View 5 Replies View Related

Sql, Sql Express, Access Or Mysql For Data

Mar 30, 2008

If this has been discussed before i apologise as i am fairly new to the asp forum and was not sure where to search for threads.
I am upgrading to a new web plan that supports asp and i noticed that godaddy supports all of the above databases.  I was curious if there are any advantages to using one db over the others as far as web is concerned? 
What i am looking to do is handle guestbook,  logins for registered users which would control access to certain downloads and possibly pages as well.  And it was also advised that i look into using a database to store and display dynamic information in my master page to only show the updated information instead of a complete new page each time.  This would save on having to manage so many pages.
 So i would really appreciate any advice on the databases as i will be making my decision to go with a specific web host based on this.  I would also appreciate any advice on a good web host for asp and database support.
Thank you Jeff

View 2 Replies View Related

Copy Data From Access To SQL Express In Code?

Jun 1, 2006

I have tried the upsize wizard from access 2000 and access 2003 and get records transfer in 90% of the tables I have data stored an 89 meg MS access database (2003) on an XP machine.  I can use, compact and copy etc in MS Access without problem. 

With the upsize, I get No errors, just does not reliably move ALL data.  I have run it multiple times and occasionally get some data in these tables, but never all data in a few tables and inconsistent.

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

So I have written code to copy the data from the access database and move it field by field into an Upsized database that was structure only, no data.

I have ONLY one Identity field (autonumber in MS access) that is the Key Relationship number to all other tables. 

1 questions and one "bug" report need solutions to both.

Question:  How can I copy the value from the MS access autonumber field to the identity field.  (Some of the autonumber rows have been deleted so not always sequentiall)  (I can do this moving data in code between to MS access databases that have autonumber fields)

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

I tied an elaborate write around to addNEW and then read the data in  the newly created row.  Reading the Identity field, I look up that number in the MS access database.  Then I copy the ACCESS data to the Newly created table row in SQL Exress and update. 

It works fine for about 30 record updates, then the Identify field stops giving me the correct sequence for the Identity field value.  Makes it impossible to make sure all of my Access rows get copied.    Tried transactions but not supported with the ADODB configuration, but doubt that would help.

Example data returned in the SQL Express recordset, when I read the Identify field back I get

1,2,3 etc  31, 33, 32 (out of sequence) then it (my code) can't figure out the out of sequence and end up with the next identity value at 41.

The only info I found was that it could be a cursorlocation problem, what do you recommend?

?Is there a way in code to change the identity field to string, then copy the data and change back to identity field again?

View 4 Replies View Related

Importing Data From Access 2002 In SQL Express

Jan 18, 2007

Hi All,

At the moment i have a piece of software that uses Access to store the data into a number of tables.

I am developing a new piece of software that has been built around SQL express and need to upgrade users that are using access. I have managed to write the installation to install etc and also the start of a script to insert all of the tables. I cant work out how to get the data into SQL express using a script.

Basically the access db (CentralDb) will be stored a a given location C:Program FilesCentralDB.mdb

The tables within the SQL version are indentical to access but i need a way of pulling out the information stored and putting it into SQL, and as there is no DTS i am becoming stuck on how to automate the process.

Any ideas?

Thanks in advance

Martin

View 1 Replies View Related

Data Access From Sqlserver 2000

Sep 7, 2007

Hello
      i have one prob . i m using   sql server 2000 . and i have write a store procedure to fetch data from multiple table using cursor  .  this query exculate in sql server .  but i can't fetch this data from  in our page . how to fetch data from using multiple table  .plz help
     thnx

View 8 Replies View Related

How To Upload Data Frm Access To MS SQL Server Express Edition

Jun 30, 2007

 Dear SirI am using SQL Server express edition for my database.i have downloaded sql server mangement studio also .i have my data in access(.mdb) i want to import those data to my sqlserver express .One option i am using using odbc datasource but it doesnot take care for my constraints applied i.e primarykey,indexing no duplicate etc, .Any way if can do it again also in sql server express but the problem is when i try to do it with 2 lacs of data it shows error "time expires "  ..Can any body tell how to upload data to an existing table of sql server .since i could not find DTS in express edition.Thanks and regardsmukesh 

View 2 Replies View Related

Chosing The Best Data Access Component For SQL Server Express

Mar 23, 2007

Hi all,

I have to chose the best Data Access Component with SQL Server Express edition.

The application that I am going to develope is a simple one but the speed should be as much as possible.

Any help would be highly appreciated.

Thanks & regards

Arun Gupta

View 1 Replies View Related

Help - Convert/import Access Data Into Sql 2005 Express... W/dts Wizard....?

May 11, 2008

 i have a website project making an online catalog, maybe 20 categories, a few hundred items.  the small business starter kit looked perfect to jump start this.  the client has provided an access database with the two table for categories and products.  i've got the dts wizard installed and have been trying to import the access data into the sbsk database but i'm stuck.  i'm almost positive that ONE time when i was banging around with the dts wizard, the Edit Mapping screen would let me drop down a list of fields in the destination table so I could actually tell it which field data from the source i wanted to go into which field of the destination.  Of course it didn't succeed that time and now i can't seem to figure a way to get back to having the option to choose the destination fields, all it gives me in the drop down is "<ignore>" or the field name of the source table, which of course doesn't match any of the ones that are in the sbsk.
i've been back through it for a couple days, trying different ways, migrating the data first to sql, letting it try a transfer to a new table then trying to import that, moving both out to excel, aligning the data manually and trying to import that, etc.  i'm bout out of ideas and would sure like to get back to just trying to work out the data type alignment issues with whatever it was i did when i could choose the destination table's fields.
i'd be most appreciative if anyone has a clue what i'm talking about and can put me back on track.
matthew

View 12 Replies View Related

Export Data From SQL Server 2005 Express To Access Database?

Aug 30, 2007

I have to export data from SQL Server 2005 express to Access database. I have done many import/export using DTS package via SQL 2000. I don't have BI installed in my SQL SERVER 2005 Express. I understand that I have to use SSIS for sql server 2005. Any help is greatly appreciated.

View 1 Replies View Related

Data Access In Local Network Ms Sqlserver 2000

Aug 24, 2005

Hi, i need some help, i have a problem trying to access data in my local network.

I have a PC with ms windows server 2003 and ms sql server 2000, and i want that the others PC in the network can access the data. I installed the client sql server in the others PC, but i can't make it work. What i have to do?

Thanks

View 5 Replies View Related

SQL EXPRESS Reporting Server (Access Denied - Windows 2000 Server Domain Controller)

Apr 4, 2007

Subject problem has me quite vexed.



I am receiving the following error when attempting to access reporting services... to sum things up real nice and tidy-



I get three login prompts - then the access denied response. It is almost as if it is unable to authenticate the user... anyway... here's the actual error response, I'd really appreciate any input/insight/resolution.




Server Error in '/Reports' Application.


Access to the path 'C:Program FilesMicrosoft SQL ServerMSSQL.2Reporting ServicesReportManagerin' is denied.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.UnauthorizedAccessException: Access to the path 'C:Program FilesMicrosoft SQL ServerMSSQL.2Reporting ServicesReportManagerin' is denied.

ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.

To grant ASP.NET access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.

Source Error:





An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:





[UnauthorizedAccessException: Access to the path 'C:Program FilesMicrosoft SQL ServerMSSQL.2Reporting ServicesReportManagerin' is denied.]
System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +2014163
System.IO.Directory.InternalGetFileDirectoryNames(String path, String userPathOriginal, String searchPattern, Boolean includeFiles, Boolean includeDirs, SearchOption searchOption) +1817
System.IO.Directory.GetDirectories(String path, String searchPattern, SearchOption searchOption) +36
Microsoft.ReportingServices.Diagnostics.Localization.GetInstalledCultures() +112
Microsoft.ReportingServices.Diagnostics.Localization..cctor() +66

[TypeInitializationException: The type initializer for 'Microsoft.ReportingServices.Diagnostics.Localization' threw an exception.]
Microsoft.ReportingServices.Diagnostics.Localization.SetCultureFromPriorityList(String[] localeList) +0
Microsoft.ReportingServices.UI.GlobalApp.Application_BeginRequest(Object sender, EventArgs e) +157
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64





Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210

View 1 Replies View Related

SQL Server Express, ODBC, Microsoft Access Sees Data Read-Only

Feb 13, 2006

Hi there,

I have successfully installed SQL Server Express.

I have copied NorthWind to SQL Server.

I have created an ODBC to the SQL NorthWind.

But my problem is, I open the data but I cannot edit or insert records

to the Customer table.

I have gone into SQL Management Studio and modified Permissions

on NorthWind and the Customer table with Alter, Insert, Update.

But no luck.

Has anyone experienced this?

Email me at justintoronto@hotmail.com if you have a solution.

I will try to check back here also.

Thanks,

Justin

View 1 Replies View Related

Access Denied To Data Source Reporting Services 2000

Dec 19, 2006

I have data on server A and the report server on server B.

I have created reports that I can run through report manager (on server B).

I have depolyed the reports but when I try to run the reports on client computers I get the following error:



An error has occurred during report processing. (rsProcessingAborted) Get Online Help

Cannot create a connection to data source 'ABCD'. (rsErrorOpeningConnection) Get Online Help

SQL Server does not exist or access denied.

I have tried setting different credentials ... windows security, specified username and password to credentials not required ...

All give above error.

TIA



View 4 Replies View Related

EXTRACTING DATA FROM FOXPRO/ACCESS 2000 INT SQL SERVER 2005

Mar 5, 2007

Dear Sir/Madam,

I have some data which is stores in Foxpro dbf files & Access 200 MDB file. Can i extract import these files into SQL Server 2005



View 3 Replies View Related

SQL 2000 Beginner. Error Importing Data From Microsoft Access

Apr 11, 2006

Hi!

when i try to import data from Microsot Access to Microsoft OLDB DB Provider in the "DTS Import/Export wizard", an error occurs: Error Description: [DBNETLIB][ConectionOpen (Connect()).] SQL Server doesnt exist or the access was denied. I'm using windows autentication and the data base of destination is <default>.

Could you help me out?

Tank you

View 4 Replies View Related

MSacceess Upsize Question On Connections And Theory

Mar 6, 2007

Hi all,

I have a general theory question for best practices about upsizing an msaccess 2003 split database design to use SQL server instead of the .mdb for data storage.

My data has grown close to msaccess limit, and ive started experiencing lost connections and corruptions frequently. So the next step is to upsize to SQL.

So far DTS seems to do a better job with bringing in the tables and data (then the upsizewizard).

Does any one have a suggestion on how to deal with the front end connecting the sql backend ?

i understand an ADP project file uses OLE connection, is that a better solution then linked tables directly into SQL threw ODBC ?

Reason i ask is the linked tables seem to not break as many things inside the code.

thanks for any suggestions,

jon

View 4 Replies View Related

Copy Data From 2000 To 2005 Using Express Edition

Oct 5, 2006

Hi all

I am using Windows XP Prof, SP2 and having Sql Server 2000, SP4 and SQL Server 2005 Express Edition with Advanced Services SP1, and SQL Server 2005 Express Edition Toolkit SP1 installed. The toolkit is the one which created me the DTS folder in the root with this applicattion:

C:Program FilesMicrosoft SQL Server90DTSBinnDTSWizard.exe

I start now this Wizard and choose from Sql server - which is my 2000 version and to my sql express version, id/pw or windows authentication. I receive then the message:

Cannot continue for the following reason:

1) You have chosen a server that does not contain any packages.

2) The server you have chosen is neither a sql server 2000 nor sql server 7

The SSIS Migration Wizard can only load packages from those servers.

Nice. I am having Sql server 2000 and want to go to 2005.

What I am doing from ? Do I need to create some packages on Sql server 2000 to be able to proceed this task ?

Regards

Chrs

View 5 Replies View Related

Data Migration From SQL 2000 To SQL Sever 2005 Express

Oct 24, 2007

We have a SQL Server 2000 and want to migrate to SQL Server 2005 Express.

It's possible?
SQL Server 2005 Express have support to do this?

View 6 Replies View Related

Access SQL Server 2005 EXPRESS From SQL Server 2000?

Feb 18, 2008

I have just acquired my first root server (Microsoft Windows Server 2003) to run a lightly used ASP application. I installed SQL Server Express 2005 on the server and the application works just fine. The problem is that I cannot access the SQL database on the server from my local computer that is running SQL Server 2000 Developer.

Please note the following:
1) I can access the server database (2005 Express) from a computer that is running SQL 2005 developer.
2) I can access other servers that are running non-EXPRESS versions of SQL 2005 from my computer (which is running SQL 2000)

Thus my question is:
Is there some kind of limitation or required setting in SQL Server Express to allow remote connections from SQL 2000?

Remember - I CAN access the database remotely using SQL 2005, just not SQL 2000.

I am using SQL Query Analyzer to try to access the database from my local computer using the same connection parameters that work on my SQL 2005 computer in Management Studio.

Thanks for any help!


View 7 Replies View Related

SQL Server 2000 As Data Source For SSRS 2005 Express

Feb 20, 2008

Hi,

We are in the process of upgrading a SQL Server 2000 database to 2005. For the mean time, we're trying it out on SQL Server Express 2005. My question is, can reports in SSRS 2005 pull data from SQL Server 2000 in case both are installed side by side in the same machine and the 2000 version is the default instance while the 2005 express edition is the named instance?

Thanks a lot!

View 5 Replies View Related

Driver Not Capable (-26) When Exporting The Data From Odbc Access Using Sql Server Managare 2000

May 9, 2008



Hi,

I am getting the error message as "DIAG [00000] [ODBC Access Driver 52.1.150.0] -26 Driver not capable (-26)" at the time of retrieving the catalog infromation by SqlTables methode. it is shown "?" as catalogname but this not supported by odbc access driver. can you please help out how can i resolve using C++ code in SqlTables methode.

Error message:

dtswiz 1390-e20 EXIT SQLTablesW with return code -1 (SQL_ERROR)
HSTMT 003C3108
WCHAR * 0x00D27EB8 [ -3] "? 0"
SWORD -3
WCHAR * 0x00000000 [ -3] <empty string>
SWORD -3
WCHAR * 0x00000000 [ -3] <empty string>
SWORD -3
WCHAR * 0x00164804 [ -3] "TABLE 0"
SWORD -3
DIAG [00000] [ODBC Access Driver 52.1.150.0] -26 Driver not capable (-26)



Best Regards,
Murthy

View 1 Replies View Related

Data Access :: MS Access ADODB Connection To Stored Procedure - Cannot Retrieve Data

Sep 22, 2015

I'm trying to re-write my database to de-couple the interface (MS Access) from the SQL Backend.  As a result, I'm going to write a number of Stored Procedures to replace the MS Access code.  My first attempt worked on a small sample, however, trying to move this on to a real table hasn't worked (I've amended the SP and code to try and get it to work on 2 fields, rather than the full 20 plus).It works in SQL Management console (supply a Client ID, it returns all the client details), but does not return anything (recordset closed) when trying to access via VBA code.The Stored procedure is:-

USE [VMSProd]
GO
/****** Object: StoredProcedure [Clients].[vms_Get_Specified_Client] Script Date: 22/09/2015 16:29:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON

[code]....

View 4 Replies View Related

Import Data From MS Access Databases To SQL Server 2000 Using The DTS Import/Export

Oct 16, 2006

I am attempting to import data from Microsoft Access databases to SQL Server 2000 using the DTS Import/Export Wizard. I have a few errors.

Error at Destination for Row number 1. Errors encountered so far in this task: 1.
Insert error column 152 ('ViewMentalTime', DBTYPE_DBTIMESTAMP), status 6: Data overflow.
Insert error column 150 ('VRptTime', DBTYPE_DBTIMESTAMP), status 6: Data overflow.
Insert error column 147 ('ViewAppTime', DBTYPE_DBTIMESTAMP), status 6: Data overflow.
Insert error column 144 ('VPreTime', DBTYPE_DBTIMESTAMP), status 6: Data overflow.
Insert error column 15 ('Time', DBTYPE_DBTIMESTAMP), status 6: Data overflow.
Invalid character value for cast specification.
Invalid character value for cast specification.
Invalid character value for cast specification.
Invalid character value for cast specification.
Invalid character value for cast specification.

Could you please look into this and guide me
Thanks in advance
venkatesh
imtesh@gmail.com

View 4 Replies View Related

Using VB2005 Express To Access A SS2005 Express Edition DB: O/S Error 32

Feb 4, 2006

Looking for help in diagnosing this error:


Unable to open the physical file "C:Program FilesMicrosoft SQL ServerMSSQL.1MSSQLDatacartracker.mdf". Operating system error 32: "32(error not found)".
An attempt to attach an auto-named database for file C:Program FilesMicrosoft SQL ServerMSSQL.1MSSQLDatacartracker.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.

I am using Visual Basic 2005 Express Edition along with SQL Server 2005 Express Edition.

Now here's what I did:

Rather than use the Database Explorer within VB2005 EE to create my database, I thought I would try creating my database externally using the downloadable "SQL Server Management Studio Express" tool. (I figured that if I had a stable data model for my database, I could side-step the copying/overwriting issues that come with creating a database as part of a VB solution.)

So having gotten my database setup and populated with some sample data, I am now trying to connect to it from Visual Basic. In VB (in the context of working on a VB Solution), I do the following:

Select Add New Data Source... from the Data menu to bring up the Data Source Configuration Wizard.
Choose "Database" for the data source type and click Next.
Click "New Connection..." to bring up the Add Connection dialogue.

For data source I choose "Microsoft SQL Server Database File", with ".NET Framework Data Provider..." as the data provider.
Navigate to my existing database file (in "C:Program FilesMicrosoft SQL ServerMSSQL.1MSSQLData" folder).
Use Windows Authentication.

When I click "Test Connection" or just click "OK", i get the Microsoft Visual Basic 2005 Express Edition error shown at the top of this message.

Is this occuring because I'm trying to access my database as an .MDF file rather than through Named Pipes / Shared Memory / TCP/IP? If this is the case, is there any way that I can tell VB2005 EE to use Named Pipes / Shared Memory / TCP/IP? Is this a fundamental limitation of VB2005 EE?

Thanks in advance to the guru who is able to explain this to me...

View 8 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved