473,406 Members | 2,208 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,406 software developers and data experts.

database vanishes like a David Blaine prop

I've been working with SQL2008 AdventureWorks; specifically database AdventureWorks, table Person.Contact.

I experimented with using a DataGrid control's DataSource property to add a new project data source to the DataGrid, although my code was written to access the database without using a DataGrid. My code was unable to do so because, naturally enough, the database was already in use by the DataGrid.

However, when I removed the DataGrid, to my surprise the AdventureWorks database was just plain gone. That's right, not corrupted, but gone from the disk without a trace. The other databases (AdventureWorksDW, AdventureWorksDW2008, AdventureWorksLT, AdventureWorksLT2008, ReportServer$SQLEXPRESS, ReportServer$SQLEXPRESSTempDB) were still there, but not the database named simply "AdventureWorks".

So I reinstalled AdventureWorks. Now here's the part where you all conclude I've lost my mind: AdventureWorks installed without any problem - but no database named simply "AdventureWorks". No "Person.Contact" table, even in any of the other databases. No sign of them, no explanation.

But you can look up the AdventureWorks schema online and see that they DO exist. So I'm NOT insane after all - honest, fellas, I’m not dangerous, it’s all right to talk to me.

So wha’d’ya think is going on here?
Apr 6 '09 #1
6 1748
r035198x
13,262 8TB
How did you reinstall the database? Did you get any messages? How did you determine that the database is there but has no tables?

P.S This message was posted while running as fast as I can in the opposite direction to the general direction of the OP.
Apr 6 '09 #2
r035198x:

How did you reinstall the database?
I ran the AdventureWorks setup program “SQL2008.AdventureWorks_All_Databases.x86.msi” twice - the first time to uninstall AdventureWorks (which is the only thing the setup program will do when AdventureWorks is already installed), and the second time to reinstall AdventureWorks.

Did you get any messages?
No.

How did you determine that the database is there but has no tables?
SQL2008.AdventureWorks_All_Databases.x86.msi installs seven databases: AdventureWorks, AdventureWorksDW, AdventureWorksDW2008, AdventureWorksLT, AdventureWorksLT2008, ReportServer$SQLEXPRESS and ReportServer$SQLEXPRESSTempDB. The one database that I was using, "AdventureWorks", contains the table that I was using, "Person.Contact". Database "AdventureWorks” is no longer showing up in SQL Server 2008 Express, although the other six databases are.

Is it possible that database "AdventureWorks” IS there and SQL Server 2008 Express simply refuses to show it because it now "belongs to" another fictitious, non-logged-in user that was somehow conjured into being by DataGrid control's DataSource?

(I can't just look for the files in Windows Explorer. These databases are somehow hidden in other files that, although I know they reside in subfolders of C:\Program Files\Microsoft SQL Server\100\Tools\Samples, I've never been able to locate precisely.)

This message was posted while running as fast as I can in the opposite direction to the general direction of the OP.
What’s “the OP”?
Apr 6 '09 #3
r035198x
13,262 8TB
It seems now clear then that the database hadn't disappeared in the first place(the uninstall confirms that).
Can you connect to it from the command line?

OP = Original poster
Apr 6 '09 #4
r035198x:

It seems now clear then that the database hadn't disappeared in the first place(the uninstall confirms that).
No - as I said above:

SQL2008.AdventureWorks_All_Databases.x86.msi installs seven databases: AdventureWorks, AdventureWorksDW, AdventureWorksDW2008, AdventureWorksLT, AdventureWorksLT2008, ReportServer$SQLEXPRESS and ReportServer$SQLEXPRESSTempDB. The one database that I was using, "AdventureWorks", contains the table that I was using, "Person.Contact". Database "AdventureWorks” is no longer showing up in SQL Server 2008 Express, although the other six databases are.
The uninstall removes the other six databases.

Can you connect to it from the command line?
I'm a newbie - I don't know how to do that. Can you tell me?
Apr 6 '09 #5
r035198x:

This message was posted while running as fast as I can in the opposite direction to the general direction of the O(riginal) P(oster).
I'm sorry, I don't understand this sentence.
Apr 6 '09 #6
r035198x
13,262 8TB
Do you have Visual Studio and did you download the MSDN library when you downloaded it? If you did then there is an SQL server manual somewhere in it which explains how to connect to the database from the command line. See if you can find it.

Oh and as for that OP sentence, I was taking precautions because you did say
So I'm NOT insane after all - honest, fellas, I’m not dangerous, it’s all right to talk to me.
Apr 7 '09 #7

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

Similar topics

2
by: Phil Powell | last post by:
I have a variable with a value that I've verified countless times by using both echo and print_r; both indicate the variable exists and has a value. The moment I instantiate a class where this...
6
by: Zenobia | last post by:
Last Friday (or early Saturday) the database driver seemed to vanish from my web-site. On Monday, it reappeared. The host was told about the missing driver on Saturday but claims to have done...
2
by: Blaine76 | last post by:
Hi All, This may seem like a stupid question but is there a way to keep text formatting when you add it to a database? Such as Paragraphs and line breaks? Any help greatly appreciated. Blaine
7
by: PC Datasheet | last post by:
Looking for suggestions ---- A database was designed for a national automobile inspection program. In it's simplest form, the database has two tables: TblOwner OwnerID <Year/Make/Model owned...
0
by: Eric Eggermann | last post by:
I use a PropertyGrid in my UI. I had a property of type image, and the prop grid popped up an open file dialog where the user could select an image, then display a tiny thumbnail of it, along with...
3
by: David Cho | last post by:
I've noticed that my code in InitializeComponent where I am linking event handlers to events vanishes from time to time. One of the things that triggers the disappearance is when I do something...
11
by: jj | last post by:
Hi Ng When I use the AT.exe to schedule a job and I write: at.exe 22:54 /every:24 "c:\test.bat" this job works just perfect. In the bat file I have wrote: copy c:\TestDB.mdb c:\testfolder...
2
by: astolpho | last post by:
I am using a slightly outdated reference book on J2EE programming. It gives 2 methods of creating a database used in its casestudies. The first is an ANT script that gives the following output: ...
1
by: Uriah Piddle | last post by:
Hi Gang, I can't make my ValidationSummary render in red. I set the ForeColor prop to red inline and it renders black. If I set the Font-underline prop to 'True', it renders with a RED underline...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
0
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...
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,...
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,...

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.