473,420 Members | 3,950 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,420 software developers and data experts.

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

11
I have created a database (SCB) in sql server 2008 and I want to move this to SQL server 2008 express edition the problem is: when I attach the database (SCB) in the sql server 2008 express I got this message:

Attach database failed for Server 'Server_name'. (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 6, object ID 1, index ID 1. Run DBCC CHECKTABLE on sysindexes.
Could not open new database 'SCB'. CREATE DATABASE is aborted. (Microsoft SQL Server, Error: 602)


Pleaase can anyone help on this problem

Kind regards,
bougie
Oct 28 '10 #1
6 7969
Oralloy
988 Expert 512MB
Bougie,

I'm shooting in the dark, but it looks like you got your attach database name and/or credentials wrong.

Try starting with simple experiments, first. Make sure you can attach, then build from there.
Oct 28 '10 #2
bougie
11
Oralloy,
how can I set the database credentials?
and how can I be sure if I can attach or not ?
and I'm sure of the database name. and I atttached to you the error window
thank you very much for your efforts..

regards,

bougie
Attached Images
File Type: jpg Errror_image.jpg (38.2 KB, 696 views)
Oct 28 '10 #3
Oralloy
988 Expert 512MB
Bougie,

It looks like you have a permissions problem.

This Page is the quickie guide on attaching files, but I suspect you already know that.

Can you just copy the file across the network to your local system? Using the proper account, of course. If not, then you've got to fix your network credentials.

Also, make sure the share that you're using is capable of read/write; simply being able to read the file is probably not enough to run against it.
Oct 28 '10 #4
Oralloy
988 Expert 512MB
Also, this page is the "CREATE DATABASE" reference, but you probably new that.
Oct 28 '10 #5
bougie
11
thanks oralloy for your efforts I found out the solution for this problem,
thank you very much...

regards
Bougie
Dec 9 '10 #6
Oralloy
988 Expert 512MB
Bougie,

Glad to help.

Good luck with your project!

Oralloy
Dec 9 '10 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Nigel | last post by:
I used jwsdp-1_0 (which comes with Tomcat 1.4.2) and my application runs fine. I have upgraded to Tomcat 1.4.24 (as I do not need the entire jwsdp). I now get the following expception:...
2
by: Rob | last post by:
Hi, In the server explorer in Visual Studio.Net I'm able to design tables, create stored procedures, etc for the SQL 2000 database running locally on my computer. If I add a connection to a remove...
1
by: Dan Levy | last post by:
I have a query of the kind brains of this group. Is it possible to access a microsoft sqlserver database (for select, insert, update, delete, and for miscellaneous administrative actions such as...
3
by: shanthsp2002 | last post by:
How to attach database to sql express using c# code can any body plzz tell
3
by: Mukesh | last post by:
Hi all As per my earlier conversation with Ciaran (thx for reply) I have installed the MS APplication block on the server , when i ran Build Enterprise Library file and Install Services from...
0
by: Norman Chong | last post by:
Hi, I'm looking for a property withing Microsoft.SqlServer.Management.Smo.Database to get the value of *is_read_committed_snapshot_on* from a MSSQL database I could do it via SQL (SELECT...
1
by: naimishranderi | last post by:
Hello friends I am using ASP.NET 2.0 and SQL Server 2000 for DB synchronization(replication) project. When I am running this web application on local machine it running fine, but when I deploy...
0
by: seanbrasher | last post by:
I have a web application that uses the Microsoft.SqlServer.Management.Smo namespace objects to do some things with SQL Server. On my box I have the client for SQL 2005, but the test database that...
1
by: DR | last post by:
Unable to start TSQL Debugging. Could not attach to SQL Server Process on 'srvname'. The RPC server is unavailable. I get this error when I try to run a SQL Server Project with a CLR stored...
2
by: Wendi Turner | last post by:
ASP.NET 2.0 C# WebService Connect to Database: Sql Server 2005 --------------------------------------------------------------------------------------------------- I have successfully created a...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
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...
0
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...

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.