Problems Attching A MSDE DATABASE

Mar 28, 2006

TITLE: Locate Database Files - SHAHSQLEXPRESS
------------------------------

C:Documents and SettingsPranavMy DocumentsVisual Studio ProjectsSolution ProjectsPOSData
Cannot access the specified path or file on the server. Verify that you have the necessary security privileges and that the path or file exists.

If you know that the service account can access a specific file, type in the full path for the file in the File Name control in the Locate dialog box.

------------------------------

This is the error I see when I try to attach a file sitting in this folder. I have been able too attach other Databases at other locations. Basically, I cannot access files sitting under "C:Documents and SettingsPranav". "Pranav" is my user name and I am an administrator on my local computer. I am not sure what settings need to be changed. I made sure that my folder is not Private. I was able to attach files under this location on a different computer with MSDE.

Any help will be great.

--Thanks

View 4 Replies


ADVERTISEMENT

Attching A Databse To The SQL Server 2000

Jun 20, 2007

I am using " Microsoft.SqlServer.Management.Smo". I am trying to attach a database using the AttachDatabse method in it. but it is not working for me.
 I am pasting my code as follows...tell me the problem or the right way to do it....
SqlConnection Connection = new SqlConnection("Data Source=SHEBZ; User ID=sa; Password=sa");Microsoft.SqlServer.Management.Common.ServerConnection con = new Microsoft.SqlServer.Management.Common.ServerConnection(Connection);Server ser = new Server("SHEBZ");
ser.ConnectionContext.Connect();
System.Collections.Specialized.StringCollection File = new System.Collections.Specialized.StringCollection();File.Add(@"D:Project-PartsMasterPageOfficeUploadsDb3");
try
{ser.AttachDatabase("Db3", File);
}catch (Exception ex)
{Label1.Text = "ERROR: " + ex.Message.ToString();
}
 

View 2 Replies View Related

Migrating From Sql2000 MSDE Database To Sql2005 Express - Attach Database Errors

Apr 23, 2006

I have a medical records system, SoapWare v4.90, that uses MSDE (SQL2000) databases. Due to the 2gb limitation, I am trying to migrate over to SQL 2005 (Standard or Express) which I have heard works fine. The SoapWare has a datamanager that allows me to log in to the MSDE instance, detach the SoapWare databases from msde (as well as do backups, etc) which I can confirm are detached.

Then I log back into a SQL2005 database instance using the datamanager and try to attach the database. This is what their pictured instructions demonstrate. However, I get the following error:


Database 'sw_charts' cannot be upgraded because it is read-only or has read-only files. Make the database or files writeable, and rerun recovery.


Of course, some of the entries will be read only, since doctors have to sign off the charts and are not allowed to subsequently change them.  But I should still be able to switch over to sql 2005?!?!?!?


Or... is there a way to attach the databases to SQLExpress manually?

Help pls?

View 1 Replies View Related

Transferring Data From MSDE Database To SQL 2000 Database

Jul 23, 2005

Hi all,Here is my situation.I have an application that uses SQL 2000. The client has a programthat uses MSDE. The client MUST have the MSDE version of the Database.What I have done is to create a SQL 2000 Database that is exactly likethe MSDE version. What I wish to do, is at regularly scheduledintervals, update the SQL 2000 Data with the newest MSDE Data.On my clients server, they have both MSDE and SQL 2000 installedthe msde has a user name and password to access it, whereas the SQL2000 uses authenticated mode to access it.What I'm trying to do is to write a bunch of SQL Queries, that I canrun that will copy over the new Data, but I'm having problems accessingthe msde database in query analyzer from the SQL DatabaseCan anyone give me hints on the best way to try thisThanksScott

View 1 Replies View Related

Attach Database To SQL2005 From Old MSDE Database

Apr 22, 2006

I have a medical records system, SoapWare v4.90, that uses MSDE (SQL2000) databases. Due to the 2gb limitation, I am trying to migrate over to SQL 2005 (Standard or Express) which the company says works fine. The SoapWare has a datamanager that allows me to log in to the MSDE instance, detach the SoapWare databases from msde (as well as do backups, etc) which I can confirm are detached.

Then I log back into a SQL2005 database instance using the datamanager and try to attach the database. This is what their pictured instructions demonstrate. However, I get an error:


Database 'sw_charts' cannot be upgraded because it is read-only or has read-only files. Make the database or files writeable, and rerun recovery.

Or... is there a way to attach the databases to SQLExpress manually?

Help pls?

View 3 Replies View Related

How Do I Upload A MSDE Database

Sep 26, 2006

Downloaded and installed MSDE and just finished creating a
website using the Community Starter Kit.  I'm used to working with Access
Databases and this is my first experience with anything SQL.  Can someone
provide my with some guidance as to what I need to do to upload the MSDE
Database to a server.  Can I just upload the files like an Access Database
or is this more involved.  Thanks for you help.

View 5 Replies View Related

MSDE Database Connections

Nov 13, 2003

I'm using Visual Studio.Net enviroment, i have SQL desktop Engine installed and everything is working great. I have a problem that whenever i create a new database connections i can NOT delete it. I know that i have to select the node containing the connection and then press the DEL Key, but it seems that the delete option is not valid!

Any Suggestion?

View 3 Replies View Related

No Northwind Database In My MSDE...

Apr 6, 2004

OK

I've loaded MSDE and its running OK

I've run config.exe to install the sample .net databases,

......but I cannot find northwind or anyother db on the server!


I've never done any db work befor so may be I'm being a bit of a tit!!! sorry in advance if i am...

stuart

View 3 Replies View Related

New To .net MSDE (database) Question ??

Dec 24, 2004

Hi, I am new to .net, I installed .net sdk and framework.
now I downloaded MSDE and installed it, I got this directory : C:MSDERelA
but when I double click in the setup file nothing happened, please help me on what should I do .
thanks

View 1 Replies View Related

Connection To The Database On MSDE

Mar 10, 2005

Hi,

I installed MSDE and the sample databases with it. They work fine.

Well I am using the server explorer of visaula studio standard 2002. I can see all the sample databases there and connect to them as well.

1.
--------------------------------------------------------------------
Now i created a new database named "testDb" and in a similar fashion i am using windows login thingy.

When i write my connection string in the program now it doesnt work

string connectionStr =@"Server=IMRANNetSDK;" + "Integrated Security=SSPI;" + "Connection Timeout=7;" + "Database=testDB;";

If i replace my Database clause to Northwind it works absolutely fine.

The ERROR it gives is:

Cannot open database requested in login 'testDB'. Login fails. Login failed for user 'IMRANASPNET'.

Why is this happenning? :(.

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

2.
-------------------------
How can i configure the MSDE to use the SQL Authentication.
It doesnt allow me to do that?

Thanx Heaps,
Imran

View 2 Replies View Related

Using An MSDE Database In Both ASP And ASP.NET Question

May 13, 2005

I'm running Windows 2003 .NET server (1
year trial) and I have the latest version of MSDE installed. I have
WebMatriX II installed.
I want to create an MSDE database I can use with a DSN so can use in .ASP or APS.NET.
I've successfully created a test
database (in Webmatrix II) via Windows Authentication security and have
created a DSN via ODBC/Windows Authentication security but don't know
how to access in ASP or ASP.NET web page.
All the SQL databases I use in .ASP have a DSN, User, Password as connection parameters. I want to continue this process.
I ran the command list: setup
SAPWD=**secret** SecurityMode=SQL after setting up MSDE SP3. I log into
the server as "Administrator" with a password.
Question:
1. What am I supposed to use as a ID and
Pass if I want to setup a MSDE database in WebMatrix II using SQL
Server authentication? Everything I try fails. I was never asked to
provide a beginning ID and Pass for SQL(MSDE) Server.
2. What does the connection string look
like to access the database in ASP.NET for Windows Authentication
security? Like this: ConnectionString= "server='localhost';
trusted_connection=true; database='ichapter_test'".
3. What would it look like in .ASP?
Thanks in advance!
JurekWorks
 

View 1 Replies View Related

Access To MSDE Database

Jul 27, 2005

HiI am just starting my first .NET project using the web matrix and an MSDE database.  I am pretty much at the limit of my knowledge - all very interesting.  I have some data in an Access spreadsheet (6 columns and 365 rows) which in the past I have copied and pasted into an Access database table.  How do I get it into a MSDE database table?  This process does not need to be automated/programmed as I will only have to do it once a year.  Any ideas on the easiest way forward would be much appreciated.Thanks in advance.Mike

View 2 Replies View Related

MSDE Database Not Updating

Aug 18, 2005

I'm trying to build a record update form and I'm
going off the "Build Your Own ASP.NET Website" book. I'm not getting
any compilation errors; the database just doesn't update.

void Update(Object s, EventArgs e) {
    SqlConnection upConn = new SqlConnection(
        "Server=****\netsdk; database=CLASSIFIEDS; User ID=****; Password=****;");
    SqlCommand upCmd;
    upCmd = new SqlCommand("UPDATE CLASSIFIEDUSER SET
ITEMHEADLINE=@ITEMHEADLINE, ITEMDESCRIPTION=@ITEMDESCRIPTION,
CONTACTNAME=@CONTACTNAME, EMAIL=@EMAIL, HOMEPHONE=@HOMEPHONE,
WORKPHONE=@WORKPHONE, CELLPHONE=@CELLPHONE, BUILDING=@BUILDING,
ROOM=@ROOM, PRICE=@PRICE WHERE ID=@ID", upConn);
    upCmd.Parameters.Add("@ITEMHEADLINE", headline.Text);
    upCmd.Parameters.Add("@ITEMDESCRIPTION", description.Text);
    upCmd.Parameters.Add("@CONTACTNAME", contact.Text);
    upCmd.Parameters.Add("@EMAIL", email.Text);
    upCmd.Parameters.Add("@HOMEPHONE", home.Text);
    upCmd.Parameters.Add("@WORKPHONE", work.Text);
    upCmd.Parameters.Add("@CELLPHONE", cell.Text);
    upCmd.Parameters.Add("@BUILDING", building.Text);
    upCmd.Parameters.Add("@ROOM", room.Text);
    upCmd.Parameters.Add("@PRICE", price.Text);
    upCmd.Parameters.Add("@ID", Request.QueryString["id"]);
    upConn.Open();
    upCmd.ExecuteNonQuery();
    upConn.Close();
   
    Response.Redirect("preview.aspx?id=" + Request.QueryString["id"]);
}

The Response.Redirect works so I'm thinking there must be an SQL syntax error or something but I can't see it.

View 16 Replies View Related

How To Crearte Database In MSDE

Sep 25, 2005

I have installed the MSDE from Office 2002 CD and MSDE is running.  I can see the SQL Server Icon in tray with green arrow.  CAn ne body help me how to create database in the MSDE. I am new to this. Is there any query manager or entrprise tool by which I can create database and table in it.    Also I am not able ro install the Starter Kit .Please help me in this.

View 1 Replies View Related

MSDE Can't Access My Database

Jul 22, 2004

Hi all

I have MSDE installed on my machine to support off-line use of a web application.

The database (MDF) file in question is stored on an encrypted area of my hard drive, which must be unlocked each time the machine starts up by the user entering a password.

Unfortunately, by this time the SQL Server service has already started, and although it still lists the database along with master, etc, it cannot access it. I believe the error mentions that some files are unavailable.

Stopping and restarting SQL Server using Service Manager fixes this problem. However, this can only be done when logged in as Administrator. I need to find a solution for normal users without Admin privileges.

Is there any other way of making the now-unlocked MDF file available to SQL Server? I thought about using SQLDMO to Refresh databases, but no joy.

This is a real show stopper for my application, which I've spent three years developing! It goes without saying that I'm writing this message with a long face. If anybody has any suggestions I would be very happy to hear from you!

Best wishes
Rob

View 1 Replies View Related

MSDE Database Instances

Nov 1, 2004

I installed MSDE on a pc with no problems, but now I realise I want to create another instance and set DISABLENETWORKPROTOCOLS=1 so I can use Enterprise Manager over the network from another PC.

If I create another instance of MSDE on the PC, can I remove / uninstall the first instance?

Is it any big deal if I leave the first instance?

and last but not least...

If I create a new instance will it see the database I created on the first instance?

told you so...

Can anyone recomend some good literature to explain about instances please :D

View 1 Replies View Related

Backup MSDE Database

May 4, 2006

Hi,

we have about 12 databases in an MSDE server.

We can install the enterprise manager, but cant get the maintenance plans to work. (fields stay empty and setting dont get saved)
I've searched a bit, but couldn't fix it.

No problem, i created a job, with 12 T-SQL commands, and the backups are working perfect.

Now we wanne backup with a history (we take a backup every 4 hours of the day), because now they always get overwritten.

So im trying to change my transactSQL to create dynamic files.

The code i'm using right now :

BACKUP DATABASE PW0001A00 TO DISK = 'C:SQLBACKUPPW0001A00.BAK' WITH INIT, NOUNLOAD, NOSKIP, STATS=10, NOFORMAT


I've tried different things like

BACKUP DATABASE PW0001A00 TO DISK = 'C:SQLBACKUPPW0001A00' + DATEPART(month, GETDATE()) + '.BAK' WITH INIT, NOUNLOAD, NOSKIP, STATS=10, NOFORMAT


but nothing worked.

so basically I wanne be able to create dynamic filenames in the above command.

You got any ideas/solutions.

tnx.

View 2 Replies View Related

Msde - Connecting To The Database

Jan 3, 2004

Hi,

I have installed MSDE into my system, in which SQL Server is not installed. I have followed the installation instructions and installed MSDE.
How can i connect to the database? I have the .MDF file of the database (already created in sqlserver) in the Data Folder. How can i connect to the database from Visual Basic 6?

View 1 Replies View Related

MSDE Database With VB Application

Jan 5, 2004

I have a vb application that uses sql server database , I want to move from sql server to msde file , wanna be able to attach msde file with vb app ,and run setup program
It looks like there is not much good info how to start with it
can anyone guide me ?
Thanks

View 1 Replies View Related

Copying MSDE Database

Feb 20, 2004

I have a MSDE database on a laptop and need to copy it to another machine in order to use Access 2000 to inspect the tables and view the data using an Access project adp file.

Could someone please tell me how to do this and whether there are any relevant issues/problems.

thanks

View 1 Replies View Related

How To Copy A MSDE Database

Feb 20, 2004

I have a MSDE database on a laptop and need to copy it to another machine in order to use Access 2000 to inspect the tables and view the data using an Access project adp file.

Could someone please tell me how to do this and whether there are any relevant issues/problems.

thanks

View 1 Replies View Related

MSDE && Database Moving.

Jul 20, 2005

Hi,How to copy database diagram (all data) to other server using only MSDEserver and VS.Net Proffesional? I have no Enterprice manager. I have tomove database (create on my machine) to my customer server. Is somepossibilities?--*Pozdrawiam,*Klaudiusz Bryja

View 2 Replies View Related

Msde: How To Attach A Database

Feb 21, 2007

hi!

I'm trying to configure MSDE. I think it's ok, but now I don't know how to attach the database. It's only copy paste to the data directory??? If not how this is done? I don't see any configuration tool for it...

Thanks in advance!

Liliana

View 3 Replies View Related

Convert Sql Database To MSDE

Oct 17, 2007

Hi,
Please i would like to know if msde or SQL Express need a license to the customer. If no does anyone know how to convert sql database to msde or SQl express?

View 1 Replies View Related

How To Dump Database To MSDE

Dec 7, 2006

Hi

In my app. i'm using sql server 2000 now I want to move to MSDE2000. I have two Queres. my application environment is Vb.net

1.how to dump my sqlserver database which i was already using to theMSDE and

2.can i connect this MSDE to MSSqlServer2000

View 3 Replies View Related

MSDE Database Download Problem

Aug 7, 2006

I downloaded and used the ASP.NET Web matrix (2003) and worked on some exercised using my PC for both client and server without going into the internet.
Then I'm ready to work with a database.  I tried to download the MSDE database to my PC from a diskett without the internet.  The download seems okay, but no icon was created but there was no error messages.
When I try to create a database, there was a connectivity problem.  I then turned on the internet connection, still getting the same problem.
I try to uninstall the MSDN in order to re-install with the internet on, but there is no program to uninstall.  Installing also not successful.
How do I uninstall something apparently partially installed?
Please help.
 
 
 

View 2 Replies View Related

Create Or Modify MSDE Database

Dec 4, 2003

Hi,
On Administrator session, I have created an CUSTOMER MSDE database. That's OK.

On user session, I want to access on my database CUSTOMER but I have on error : "Unable to connect to the database". And, in French : "Echec de la connexion de l'utilisateur Machine_Name/User_Name".

What is the error ? I don't know what to do any more.
How to give right to the user ? Have you an idea ?

Thank's.

Patrice A. BONNEFOY.

View 2 Replies View Related

Copying MSDE Database To Disk - How??

Dec 7, 2003

I have my little MSDE on my computer. I can add and delete stuff from it through Web Matrix. My question is, where exactly is the database stored in Windows?? Also, say I wanted to copy it to a disk so I could show it to someone else, what file(s) would I need to copy?

The reason why I ask is because I have been doing a website as a project and we have to hand in all files on a disk. Getting all the .aspx & .ascx and the .config file is easy, but the database & stored procedures is proving tricky to find.

Thanks

View 2 Replies View Related

Moving Database To MSDE 2000

Dec 20, 2003

I have detached my database from the server and copied the mdf and ldf files to the new PC do I need to do anything but attach it to the MSDE? What about logins, roles, etc... does all this remain the same or do I need to delete the old and reenter them?

Please provide any help, thank you.

View 1 Replies View Related

How To Upload MSDE Database To Server??

Jun 6, 2004

Hello everyone,

I've got a simple yet concerning problem. How do I get the MSDE database I've created off my PC and onto the web server? I've thought of doing a "BACKUP DATABASE dbname TO DISK = 'blah,blah'", then upload it and hope I have permissions to execute a DATABASE RESTORE... Any other methods?

View 1 Replies View Related

Choosing Database Between MSDE And Access

Oct 13, 2004

hi,

I need to choose a database based on the following criteria (using .NET app):
1) a light but fully functional database, preferably with the support of store proc and constraints, less than 8000 transaction a day.
2) portable or the database can be export/import very easily
3) reliable and stable
4) least maintenance

I have two db in my mind, Access and MSDE?
Does anyone have some hand-ons experience on the above two? Or any other better suggestions?

Any advice is appreciated.

thanks,
bryan

View 1 Replies View Related

How Can I Attach Access Database To MSDE???

Mar 5, 2005

I have an mircosoft access database, but now i want to attach it to MSDE, how can i do impliment this????


i already try to use the following commands
exec sp_attach_db 'example','c:example.mdb'

but i got the following error message
The header of this file 'c:example.mdb' is not a valid database file header. The FILE SIZE property is incorrect.

View 6 Replies View Related

Unable To Connect To MSDE Database

Jun 5, 2005

Hello All,I am using Visual studio.net framework 1.0 on win XP pro with MSDE. I am not being able to coneect to database using below code. can anyone suggest or have any idea what is going on? I have used all kinds of password and id. It doesnt pull data from DB.  Really appreciate any help. Thank you in advance.


Sub Page_Load
If Not IsPostBack Then
Dim conNorthwind As SqlConnection
Dim cmdSelect As SqlCommand
Dim dtrCategories As SqlDataReader

conNorthwind = New SqlConnection( "Server=localhost;UID=sa;pwd=**secret**;Database=Northwind")
cmdSelect = New SqlCommand( "Select CategoryName From Categories", conNorthwind )
conNorthwind.Open()
dtrCategories = cmdSelect.ExecuteReader()

rptCategories.DataSource = dtrCategories
rptCategories.DataBind()

dtrCategories.Close()
conNorthwind.Close()
End If
End Sub

Sub Button_Click( s As Object, e As RepeaterCommandEventArgs )
Dim lbtnSelected As LinkButton

lbtnSelected = e.Item.Controls( 1 )
lblCategory.Text = "You selected " & lbtnSelected.Text
End Sub

View 8 Replies View Related







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