Can't Attach 2005 DB On Vista - Erland? Anyone? Help Me Please!

Mar 1, 2007

Dear Group

I've installed MSSQL 2005 STD on Vista and now can't attach my
databases.
I've installed SQL SP2 and the SQL Vista Beta Update.
The error I'm getting is:

Unable to open the physical file <Path to MDF>. Operating system error
5: '''5(Error not found)'''. (Microsoft SQL Server, Error: 5120)

Thanks for your help. All your hints are very much appreciated.

Thanks,

Martin N Feuersteiner
Invent2b Group

View 6 Replies


ADVERTISEMENT

I Can't Attach Database On My Vista 64 Bit Please Please Help Me !!!

May 20, 2007

Dear all, please help me , it's urgent !

I am using WINdows Vista ultimate 64bit here. And just install the MS SQL server 2005 express. Then I need to attach some database. Whenever I do so, it will appear the following message:


- Attach database failed for Server 'XXXSQLEXPRESS'. (Microsoft.SqlServer.Express.Smo)
- An exception occurred while executing a Transact-SQL statement or batch
- Unable to open the physical file "D:Program Files (x86)ShipManager 6.1ShipManager_Data.mdf". Operating system error 5: "5(error not found)". (.Net SqlClient Data Provider)

What I did is I right click on the databases, choose "Attach". Then as usual select the .mdf file. And then down there select both .mdf and .ldf file and click "OK". Then this will appear!

When I do the samething with the same copy of database on another XP computer it works perfectly with SQP 2005 express. Please help me I really need to get it done, THANK YOU !!!

Zephon,

View 5 Replies View Related

SQL Express On Vista Cannot Attach The Database Says It Is Already Attached

Mar 8, 2007

I am supposed to be documenting the SQL Express 2005 SP2 installation and connection to our application on Vista. I have installed and uninstalled the application several times in trying to create the connection and document the process. I thought I was done but now the database will not attach because it thinks the databasse is already attached. The database is not attached. I even uninstalled it again thinking something was left over.

Among the possibilities are that the database we are trying to attach is from SQL Server 2003 on a Server 2003. I tend not to think it is a server issue but have no reason to make that statement.

I tend to think it is a Vista issue because I have encountered and circumvented several. Our applications work fine on the full version of SQL. I can connect my Vista computer to the servers without issue. We have no Vista Servers other than the workstation I am trying to get SQL Express running on.

I am about out of ideas. Any suggestion will be tried at this point. Brian

View 1 Replies View Related

Asking Email Address Up David Portas And Erland Sommarskog

Jul 23, 2005

Dear Mr Portas and Mr Sommarskog,Cause I am a newbie in sql, can I ask for your email address?My email Address is Join Bytes!ThanxBest RegardsMichael--Message posted via http://www.sqlmonster.com

View 3 Replies View Related

Attach Aspnetdb.mdf Failed, But I Can't Find Attach Statement In The Web.config

Nov 21, 2007

An attempt to attach an auto-named database for file C:WebApp_Dataaspnetdb.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.  
My web.config file, the connection strings
<connectionStrings>
  <add name="POAdatabaseConnectionString1" connectionString="Data Source=sss;Persist Security Info=True;Initial Catalog=POAdatabase.mdf;Integrated Security=SSPI"   providerName="System.Data.SqlClient" />
 </connectionStrings>
I cann't really find the statement for attaching aspnetdb.mdf. I don't where to find it. Is there any other web.config file in the C drive? Thanks for help!
 

View 3 Replies View Related

How Can I Attach The ASPNETDB Mdf To SQL 2005?

Dec 29, 2006

I want to import a table and data in SQL 2005 to the table in the ASPNETDB mdf. Please help.

View 4 Replies View Related

Attach SQL DB To SQL Server 2005 Using VB.Net

Oct 12, 2007

Is there any way to attach a SQL DB to SQL Server 2005 using VB.Net?  If so can you also set security?

View 3 Replies View Related

Attach Database In Sql 2005

Mar 30, 2006

I detached a db to copy it and to my surprise i cant reattach it the same way i detached ... How do i do this?

View 1 Replies View Related

Cannot Attach Database In 2005

Aug 22, 2007

A DB was in suspect mode I detached & tried to re- attach the db. but it return below error

SQL Server detected a logical consistency-based I/O error: torn page

There are no good backups available for this can anybody help

View 2 Replies View Related

Attach Sdf File To SQL 2005

Dec 25, 2007

Is it possible to attach sdf file (SQL Server Compact Edition Database File) to sql server 2005 ent. edition?

Thanks in advance.

View 1 Replies View Related

SQL 2005 Database Will Not Attach In XP

Oct 18, 2006

We are testing our product installation and run into the following problem on Windows XP and Server 2003, but not 2000:

I am trying to attach a database using a command line program that we made, but get the following error:

Could not open new database 'Launcher5'. CREATE DATABASE is aborted.

File activation failure. The physical file name "C:MARCMARC5DataLauncher5_log.LDF" may be incorrect.

The log cannot be rebuilt when the primary file is read-only.

View 10 Replies View Related

Merge Replication - SQL Server 2005, Windows Vista And MSVisual Studio 2005

Jul 11, 2007

Hello everybody!

I hope that someone could help me.

I have a problem when i start sincronyzing with the emulator of MSVS2005 to SQL2005 in Windows Vista. I have the same program in the emulator, but sincronyzing with windows XP Pro and no problem...



I configure the connection to use the IUSR.



The source code that i use:



repl.InternetUrl = @"http://laptop/SQLMobileIIS/sqlcesa30.dll";

repl.Publisher = @"laptop";

repl.PublisherDatabase = @"database";

repl.PublisherSecurityMode = SecurityType.NTAuthentication;

repl.Publication = @"Pubdatabase";

repl.Subscriber = @"SQLMobile";

repl.SubscriberConnectionString = @"Data Source='" + nomeFicheiroBD + "';Password='3409'";



The error that returns is:



"Failure to connect to SQLServer with provided connection information. SQL Server does not exist, access is denied because the IIS user is not a valid user on the SQL Server, or the password is incorrect"



Does anybody knows what i can do?

HELP I NEED SOMEBODY TO HELP!

Thanks!

View 1 Replies View Related

Installing MS Visual Studio 2005 (PE). On Vista X64 (BE) Running MS SQL Server 2005 (DE) X64

Feb 10, 2008

Hi, I am running SQL Server 2005 x64 DE on Vista x64. I installed MS VS 2005 Pro. Edition. During the setup of VS, I did a custom install, un-checking the SQL Express addition box. After installation, I received errors that indicated the SQL Express did not install. Even though I do not have SQL Express installed on my machine, MS Update says that I need SQL Express SP2. My SQL DE is up to date with SP2 and MS Update indicates as "optional" that I need SQL SP2.

Is SQL Express a necessity for VS Pro? If not, why is MS Update indicating that I need SQL Express SP2? In addition, why is MS Update telling me I need SQL SP2 when it is already installed?

Note: I installed SQL SP2 manually, not through MS Update. This makes me believe that MS Update is not detecting it.

Thanks in advance to anyone who can help,

Abel

View 3 Replies View Related

Sql Server 2005 (business Intelligence Development Suite ) Problem Installing Sql 2005 On Vista (vs 2008)

May 7, 2008

I installed sql server 2005 sp2 including business intelligence development suite , however I got a message
some client components not compablitable .This morning I searched my programs and found that I have new
visual studio 2005 on my computer (before I just had vs 2008) as well as business intelligence
developer (which does not work) It seems I I would like to get rid of vs 2005 also
fix business intelligence studio . Previously I deleted vs 2005 express off my computer........(I have vista
and I would only like to keep tools meant for sql standard 2005 reporting services etc
here is a list of my sql sp2 install package
By the way I doubled clicked sql_tools.msi and did not run as administrator
Does that make a difference? I wonder if this is a problem with vs 2008 and sql 2005......

Time: 05/06/2008 20:49:23.437
KB Number: KB921896
Machine: BILLPREC690
OS Version: Professional (Build 6000)
Package Language: 1033 (ENU)
Package Platform: x86
Package SP Level: 2
Package Version: 3042
Command-line parameters specified:
Cluster Installation: No

**********************************************************************************
Prerequisites Check & Status
SQLSupport: Passed

**********************************************************************************
Products Detected Language Level Patch Level Platform Edition
Setup Support Files ENU 9.00.1399.06 x86
Database Services (MSSQLSERVER) ENU RTM 2005.090.1399.00 x86 STANDARD
Analysis Services (MSSQLSERVER) ENU RTM 2005.090.1399.00 x86 STANDARD
Reporting Services (MSSQLSERVER) ENU RTM 9.00.1399.00 x86 STANDARD
Notification Services ENU RTM 9.00.1399.00 x86 STANDARD
Integration Services ENU RTM 9.00.1399.00 x86 STANDARD
SQL Server Native Client ENU 9.00.3042.00 x86
Client Components ENU RTM 9.00.1399.06 x86 STANDARD
SQLXML4 ENU 9.00.1399.06 x86
Backward Compatibility ENU 8.05.1054 x86
Microsoft SQL Server VSS Writer ENU 9.00.1399.06 x86

**********************************************************************************
Products Disqualified & Reason
Product Reason

**********************************************************************************
Processes Locking Files
Process Name Feature Type User Name PID
SQLWriter Microsoft SQL Server VSS Writer Service 2700

**********************************************************************************
Product Installation Status
Product : Setup Support Files
Product Version (Previous): 1399
Product Version (Final) : 3042
Status : Success
Log File : C:Program FilesMicrosoft SQL Server90Setup BootstrapLOGHotfixRedist9_Hotfix_KB921896_SqlSupport.msi.log
Error Number : 0
Error Description :
----------------------------------------------------------------------------------
Product : Database Services (MSSQLSERVER)
Product Version (Previous): 1399
Product Version (Final) : 3042
Status : Reboot Required
Log File : C:Program FilesMicrosoft SQL Server90Setup BootstrapLOGHotfixSQL9_Hotfix_KB921896_sqlrun_sql.msp.log
Error Number : 3010
Error Description :
----------------------------------------------------------------------------------
Product : Analysis Services (MSSQLSERVER)
Product Version (Previous): 1399
Product Version (Final) : 3042
Status : Success
Log File : C:Program FilesMicrosoft SQL Server90Setup BootstrapLOGHotfixOLAP9_Hotfix_KB921896_sqlrun_as.msp.log
Error Number : 0
Error Description :
----------------------------------------------------------------------------------
Product : Reporting Services (MSSQLSERVER)
Product Version (Previous): 1399
Product Version (Final) : 3042
Status : Success
Log File : C:Program FilesMicrosoft SQL Server90Setup BootstrapLOGHotfixRS9_Hotfix_KB921896_sqlrun_rs.msp.log
Error Number : 0
Error Description :
----------------------------------------------------------------------------------
Product : Notification Services
Product Version (Previous): 1399
Product Version (Final) : 3042
Status : Success
Log File : C:Program FilesMicrosoft SQL Server90Setup BootstrapLOGHotfixNS9_Hotfix_KB921896_sqlrun_ns.msp.log
Error Number : 0
Error Description :
----------------------------------------------------------------------------------
Product : Integration Services
Product Version (Previous): 1399
Product Version (Final) : 3042
Status : Success
Log File : C:Program FilesMicrosoft SQL Server90Setup BootstrapLOGHotfixDTS9_Hotfix_KB921896_sqlrun_dts.msp.log
Error Number : 0
Error Description :
----------------------------------------------------------------------------------
Product : SQL Server Native Client
Product Version (Previous): 3042
Product Version (Final) : 3042
Status : Success
Log File : C:Program FilesMicrosoft SQL Server90Setup BootstrapLOGHotfixRedist9_Hotfix_KB921896_sqlncli.msi.log
Error Number : 0
Error Description :
----------------------------------------------------------------------------------
Product : Client Components
Product Version (Previous): 1399
Product Version (Final) : 3042
Status : Reboot Required
Log File : C:Program FilesMicrosoft SQL Server90Setup BootstrapLOGHotfixSQLTools9_Hotfix_KB921896_sqlrun_tools.msp.log
Error Number : 3010
Error Description :
----------------------------------------------------------------------------------
Product : SQLXML4
Product Version (Previous): 1399
Product Version (Final) : 3042
Status : Success
Log File : C:Program FilesMicrosoft SQL Server90Setup BootstrapLOGHotfixRedist9_Hotfix_KB921896_sqlxml4.msi.log
Error Number : 0
Error Description :
----------------------------------------------------------------------------------
Product : Backward Compatibility
Product Version (Previous): 1054
Product Version (Final) : 2004
Status : Success
Log File : C:Program FilesMicrosoft SQL Server90Setup BootstrapLOGHotfixRedist9_Hotfix_KB921896_SQLServer2005_BC.msi.log
Error Number : 0
Error Description :
----------------------------------------------------------------------------------
Product : Microsoft SQL Server VSS Writer
Product Version (Previous): 1399
Product Version (Final) : 3042
Status : Success
Log File : C:Program FilesMicrosoft SQL Server90Setup BootstrapLOGHotfixRedist9_Hotfix_KB921896_SqlWriter.msi.log
Error Number : 0
Error Description :
----------------------------------------------------------------------------------

**********************************************************************************
Summary
Success, Reboot Required
Exit Code Returned: 3010

View 2 Replies View Related

Attach Db To Sql 2005 Express Edition

Sep 13, 2007

My dog ate my sql2000 installation disk! After a recent xp installation I remembered that.
Now I'm in a hurry to get up and running with SQL again. I've installed SQL server 2005 express, but I can't attach any databases, or really do anything for that matter. I have a copy of SQL Server 2005 enterprise edition but that won't install on my development machine, Xp Sp2. Which way should I go, install SQL 2005 enterprise on a Win 2003 server or can I download something to administer the express version?
 As always thanks for any and all replies!
 /Eskil

View 1 Replies View Related

Attach/Detach On SqlExpress 2005

Sep 8, 2005

Alan writes "Is it possible to create scripts which can be started remotely
to attach and detach databases into SQLExpress 2005.
If so how."

View 1 Replies View Related

Attach .Bak File To SQL Server 2005

Nov 28, 2007

Hi

I am very inexperienced with the Administration side of SQL Server 2005.

I have been given a .bak file which I need to restore onto my SQL Server. The database .bak file was created on another PC and I cannot seem to restore/recover the .bak file onto my SQL Server.

Can anybody help me with this?

Thanks!!

View 4 Replies View Related

Want To Attach Adventureworks In SQL Server 2005

Jun 3, 2007

Hi,

Had a little research on the previous postings on this issue to attach Adventureworks, but could not fix my one! Need help. Here is my situation:



1. Tried to follow the article: http://msdn2.microsoft.com/en-us/library/ms310325.aspx, with no luck.

Get this error message

"Msg 1813, Level 16, State 2, Line 1

Could not open new database 'AdventureWorks'. CREATE DATABASE is aborted.

Msg 602, Level 21, State 50, Line 1

Could not find row in sysindexes for database ID 11, object ID 1, index ID 1. Run DBCC CHECKTABLE on sysindexes."



a. Ran the DBCC CheckTable on SysIndexes, but same result

2. Also tried to attach a new database from the Management Studio, but get the same error.

3. I have installed AdventureWorksDB.msi downloading from MS site and .mdf and .ldf files are in the right path as article on step 1 says.



Can anyone please suggest me what am I doing worng?



Looking forward for help!!



Thanks,



Roz

View 2 Replies View Related

Can Attach A 2005 Database To 2008

Aug 20, 2015

I have a bunch of database mdf's and ldf's that was running on 2005. Can I attach these to an instance running on 2008 without any problems?

View 3 Replies View Related

Vista SQL 2005 SP2 Client To Windows XP SQL 2005 (non-sp2) Workstation.

Apr 26, 2007

I'm trying to use SQL Management Studio to connect from a Vista SQL 2005 client w/ SP2 over to a Windows XP workstation running SQL server developer edition (non-sp2) using windows authentication.



I'm already preauthenticated by network shares to the xp workstation. This worked just fine in windows xp but stop working in vista.



After searching around, i found out that vista handles trusted authentication differently than windows xp due to changes in the SSPI. Logging in as sql authentication works fine. Logging in as windows authentication does not.



UPDATE: I found out that two workstations running vista and sql 2005 sp2 cannot connect to each other using windows trusted authentication!!!



What the heck?



UPDATE: I found out that my IIS 7.0 using ASP.NET and connecting to SQL 2005 (non sp2) on a Windows 2003 server (SP1) WILL connect to the database using trusted authentication... apparently IIS can access the credentials and pass them to the sql 2005 box just fine. My Sql 2K5 SP2 tools cannot. I'm forced to use SQL authentication to the box.



Same thing applies with a Windows XP SP2 box running SQL 2005 (non sp2).


Here is my sql server error log off of the windows xp workstation:

2007-04-26 15:41:32.34 Logon Error: 17806, Severity: 20, State: 2.
2007-04-26 15:41:32.34 Logon SSPI handshake failed with error code 0x8009030c while establishing a connection with integrated security; the connection has been closed. [CLIENT: 192.168.254.100]
2007-04-26 15:41:32.34 Logon Error: 18452, Severity: 14, State: 1.
2007-04-26 15:41:32.34 Logon Login failed for user ''. The user is not associated with a trusted SQL Server connection. [CLIENT: 192.168.254.100]




How can i Fix this issue?



[1] Client side:

What is the connection string in you app or DSN?
N/A
If client fails to connect, what is the client error messages?

Is the client remote or local to the SQL server machine?
Remote

Can you ping your server?
YES

Can you telnet to your SQL Server?
YES

What is your client database provider?
SQL Management Studio

Is your client computer in the same domain as the Server computer?
WorkGroup

What protocol the client enabled?
Shared Memory & TCPIP

Do you have aliases configured that match the server name portion of your connection string?
NO

Do you select force encryption on server and/or client?
NO

[2] Server side:



What is the MS SQL version?
SQL Server 2005

What is the SKU of MS SQL?
Developer

What is the SQL Server Protocol enabled?
Shared Memory & TCPIP

Does the server start successfully?
YES

If SQL Server is a named instance, is the SQL browser enabled?
N/A

What is the account that the SQL Server is running under?
Network Service

Do you make firewall exception for your SQL server TCP port if you want connect remotely through TCP provider?
YES

Do you make firewall exception for SQL Browser UDP port 1434?
N/A

[3] Platform:

What is the OS version?
Client - Windows Vista Final w/ SQL Server 2005 SP2 & Network Client SP2

Server - Windows XP Professional SP2 w/ SQL 2005 Server Developer Edition

Do you have third party antivirus, anti-spareware software installed?
None

[4] Misc:

If you have certificate configuration issue: Please use €ścertutil.exe €“v €“store my€? to dump certificate specific info and post it in your question.
N/A

Tips:

1. Find SQL Server Errorlog: Default to C:Program FilesMicrosoft SQL ServerMSSQL.#MSSQLLOG

2007-04-26 15:41:32.34 Logon Error: 17806, Severity: 20, State: 2.
2007-04-26 15:41:32.34 Logon SSPI handshake failed with error code 0x8009030c while establishing a connection with integrated security; the connection has been closed. [CLIENT: 192.168.254.100]
2007-04-26 15:41:32.34 Logon Error: 18452, Severity: 14, State: 1.
2007-04-26 15:41:32.34 Logon Login failed for user ''. The user is not associated with a trusted SQL Server connection. [CLIENT: 192.168.254.100]






[1] Client side:

What is the connection string in you app or DSN?
N/A
If client fails to connect, what is the client error messages?

Is the client remote or local to the SQL server machine?
Remote

Can you ping your server?
YES

Can you telnet to your SQL Server?
YES

What is your client database provider?
SQL Management Studio

Is your client computer in the same domain as the Server computer?
WorkGroup

What protocol the client enabled?
Shared Memory & TCPIP

Do you have aliases configured that match the server name portion of your connection string?
NO

Do you select force encryption on server and/or client?
NO

[2] Server side:



What is the MS SQL version?
SQL Server 2005

What is the SKU of MS SQL?
Developer

What is the SQL Server Protocol enabled?
Shared Memory & TCPIP

Does the server start successfully?
YES

If SQL Server is a named instance, is the SQL browser enabled?
N/A

What is the account that the SQL Server is running under?
Network Service

Do you make firewall exception for your SQL server TCP port if you want connect remotely through TCP provider?
YES

Do you make firewall exception for SQL Browser UDP port 1434?
N/A

[3] Platform:

What is the OS version?
Client - Windows Vista Final w/ SQL Server 2005 SP2 & Network Client SP2

Server - Windows XP Professional SP2 w/ SQL 2005 Server Developer Edition

Do you have third party antivirus, anti-spareware software installed?
None

[4] Misc:

If you have certificate configuration issue: Please use €ścertutil.exe €“v €“store my€? to dump certificate specific info and post it in your question.
N/A

Tips:

1. Find SQL Server Errorlog: Default to C:Program FilesMicrosoft SQL ServerMSSQL.#MSSQLLOG

2007-04-26 15:41:32.34 Logon Error: 17806, Severity: 20, State: 2.
2007-04-26 15:41:32.34 Logon SSPI handshake failed with error code 0x8009030c while establishing a connection with integrated security; the connection has been closed. [CLIENT: 192.168.254.100]
2007-04-26 15:41:32.34 Logon Error: 18452, Severity: 14, State: 1.
2007-04-26 15:41:32.34 Logon Login failed for user ''. The user is not associated with a trusted SQL Server connection. [CLIENT: 192.168.254.100]

View 48 Replies View Related

Detach And Attach Functions In SQL Server 2005

Apr 24, 2006

Hi,

View 5 Replies View Related

Can Not Attach Mdf 2005 File Into Sqlserver 2000

Jun 4, 2006

hello all.I have a database file in sqlserver 2005 mode, i set it's  compatiblity to sqlserver 2000 (80) but i cant attach it in sqlserver 2000.My host only support sqlserver 2000!I need any help to convert or attach it!Thank all!

View 2 Replies View Related

Can I Export/attach A MS SQL 2005 Database To MS SQL2000 ?

Feb 13, 2007

I know I can go from 2K to 2005, but can I go the other way ?

Thanks

View 1 Replies View Related

Can't Attach Database Both Sql 2000/2005 Express ?

Oct 17, 2007

Hi All

I try to attach MobileShop_Data.MDF database by using SQL server 2000 and SQL 2005 Express, but It's impossible . I don't know why .

Someone can help me bypass this problem ? this is my database .

http://www.4shared.com/file/26729050/17b56825/Database.html

Many thanks in advance .
...
regards,
Quachnguyen

View 6 Replies View Related

MS SQL Server 2005 -- Cant Not Attach To AdventureWorks Database

Jun 8, 2007

I have MS SQL Server 2005 installed and when trying to connect to AdventureWorks DB





Downloaded AdventureWorksDB.msi file and when trying to attach recieve this error when running script ?



Msg 1813, Level 16, State 2, Line 1

Could not open new database 'AdventureWorks'. CREATE DATABASE is aborted.

Msg 602, Level 21, State 50, Line 1

Could not find row in sysindexes for database ID 8, object ID 1, index ID 1. Run DBCC CHECKTABLE on sysindexes.





Then tried to attach the DB and get this




TITLE: Microsoft SQL Server Management Studio
------------------------------

Attach database failed for Server 'JKIMBLE1'. (Microsoft.SqlServer.Smo)



------------------------------
ADDITIONAL INFORMATION:

An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)

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

Could not find row in sysindexes for database ID 8, object ID 1, index ID 1. Run DBCC CHECKTABLE on sysindexes.
Could not open new database 'AdventureWorks'. CREATE DATABASE is aborted. (Microsoft SQL Server, Error: 602)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=602&LinkId=20476

------------------------------
BUTTONS:

OK
------------------------------


Is there a difference between MS SQL Server 2005 and SQL Server 2005 Express Edition

View 6 Replies View Related

Attach Database Failed For SQL Server 2005 Express

Apr 5, 2008

I have installed a sample from the web and put it in my localhost inetpub folder, then i open up my SQL Server 2005 Express to attach the database from the App_Data directory, it throws an error below:

errors occur in both window and sql authentication login.
Error:
Attach database failed for Server '...SQLEXPRESS'. (Microsoft.SqlServer.Express.Smo)
Additional Information An exception occcured while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.Express.ConnectionInfo)
Directory lookup for the file "C:Documents and SettingsmirtariqMy DocumentsWorksStarterKitVSI smallbusiness_csApp_DataSmallCompanyDB_log.LDF" failed with the operating system error 3(The system cannot find the path specified.).(Microsoft SQL Server, Error:5133)

View 4 Replies View Related

Attach Database Problem - SQL Server Express 2005.

Dec 17, 2007

I m facing a strange phenomenon.
Please refer to below points.


environment:
------------------
windows XP sp2
SQL Server 2005 express [log on as 'network service'(by default)]

programming language: VC++(MFC)

There is a sample database in .mdf format which to be attached to SQL Server.


Ist case:
------------
I add MASTERDSN (for master databse) to ODBC by calling API SQLConfigDataSource() and then attach the sample DB to SQL Server by calling stored procedure 'sp_attach_db' through VC++ code.
On verification from SQL Server management studio express, the DB attached is in read only mode.


II case:
----------
I add MASTERDSN using ODBC data source administrator manually.
Now I add MASTERDSN (again with same name) by calling API SQLConfigDataSource() and then attach the DB to SQL Server by calling stored procedure 'sp_attach_db' through VC++ code.
Now on verification, the DB attached is not in read-only mode.


The problem is that why there is difference in behavior in both cases?
I want to get the sample DB attached in read-write mode in Ist case.


Hopefully waiting for ur response.
Thanks & Regards

View 2 Replies View Related

Unable To Attach DataBase In SQL Server 2005 Standard

May 6, 2007

Now that everyone helped me install SQL Server, it's time to use it... then...



I'm trying to work my through the MS Press book ADO.Net Step by Step. After installing the practice files, there is a step to attach the sample database provided. Within the folder which contains the sample files, I'm told to execute an app which I believe was called "Config.exe". This app brings up a form with 3 text-boxes, to collect the Server Name, Database Name, as well as the Database MDF Filename. There are also 2 buttons, "Attach" and "Detach".



This book assumes, that SQL Server Express is installed. In the book, the author does mention that if this isn't the case, to adjust the Server Name as necessary.



(The following do not include the quotes, but you probably already knew that...)



In the form mentioned above, the default Server Name is "(local)SQLEXPRESS",

I changed this to "(local)MSSQLSERVER".



The next text-box for Database Name contains: "AdoStepbyStep"



The last text-box for Database MDF Filename contains: "c:ADO.NET 2.0 SBSSampleDBsAdoStepbyStep_Data.MDF"



The path/spelling of the text in the above is indeed correct. Clicking the "Attach" button, results in the following:



--- ERROR ---

Function: AttachDB

Description: [Microsoft][ODBC SQL Server Driver][DBMSLPCN]InvalidConnection.

[Microsoft][ODBC SQL Server Driver][DBMSLPCN]ConnectionOpen (ParseConnectParams()).



I've never used SQL Server, so please any advice needs to be at a relatively elementary level. I've primarily been a mainframe programmer, so this is new to me.



Thanxxxxxxxxxxxxx in advance for any replies!!!

View 16 Replies View Related

Can I Attach A Database Collation= En-us To A French 2005 Instance ?

Apr 24, 2008

Hello,

I want to attach a database collation en-us to an instance ( downloaded as french ).

I would want to know if i may have known problems ( i want download databases samples in english only )

Sql Server 2005 Express SP2 with advanced services

Many thanks beforehand

Have a nice day

View 3 Replies View Related

How To Attach/deattach A Express Database To A Fullblown SQL Server 2005

Feb 15, 2006

Hi. I would like to if its possible to take a Express ".mdf" file and attach it to a full blown SQL Server 2005?, to "attach" it to a real SQL Server 2005?. And how do i do this?. or do i have to do it since there is a "DataDirectory" directive that manage this for me in the connectionstring?, im a little newbie about this :)

View 1 Replies View Related

Backup/Restore Vs Attach/Detach 2000 Database To 2005

Jul 15, 2006

I'm trying to see the differences between Backup/Restore and Attach/Detach. I backup and detach a database from SQL Server 2000 SP3 and then attach and restore it to SQL Server 2005 SP1.

The differences I noticed are:

1. The restored database has a much larger initial size (database size is same) for data and log.
2. The attached database has a last backup date
3. If the backup is restored over a database, the restored database is showing owned by the database owner of the database restored over but syslogins and sysusers do not match.

I don't understand why #1 happens.

Are there any other differences between Backup/Restore and Attach/Detach?



Thanks,

Peter

View 2 Replies View Related

Failed To Attach AdventureWorks_Data.mdf Into SQL Server 2005 Express Database In Local

Mar 19, 2008

 After i reinstall SQL Server 2005 Express on my local machine, and then tried to attach AdventureWorks_Data.mdf into Database, it gives me the following error:
Mark up:

I tried to reinstall the Adventureworks.msi installer and reattach again in SQL Server 2005 Express, it gave me the same error.
I then deleted both SQL Server 2005 Express & Adventureworks, and then restart my pc and reinstall again, it still gave me the same error.
Error: 
Failed to retrieve data for this request. (Microsoft.SqlServer.Express.SmoEnum)
Additional Information:
 An Exception occurred while executing a Transact-SQL Statement or batch. (Microsoft.SqlServer.Express.ConnectionInfo)
 CREATE FILE encountered operating system error 5(Access is denied.) while attempting to open or create the physical file 'C:Program FilesMicrosoft SQL ServerMSSQL.1DataAdventureWorks_Data.mdf' (Microsoft SQL Server, Error:5123)

View 5 Replies View Related

What Are The Differences Between CD1 And CD2 Of The SQL Server 2005 Enterprise? And Can I Just Attach The Sql2000 MDF File Into Sql2005?

Feb 4, 2006

Hi
I have new bought the SQL server 2005 enterprise, but it have 2 CDs, so what are the differences between CD1 and CD2? and so which one should i install first? or is it necessary to install both two or just need to install one of them?
And about my original sql 2000 database, can i just attach it's MDF file into the sql 2005 engine, or which import wizard can load the sql 2000 MDF into sql 2005? or do i need to keep the sql 2000 engine before do this?
thx

View 1 Replies View Related







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