MS SQL Server

MS SQL Server

I have a situation in which I have to copy the schema of a table to another table in Oracle. I do not want to copy the data of that table. How can I copy the structure of a table without copying the data?

  • 892 views
  • 2 answers
  • 0 votes

I want to create database relationships like one to one, one to many and many to many relationship.

I am using SQL Server 2008 R2. Can anyone please tell me that how can I implement one-to-one, one-to-many and many-to-many relationships while designing tables?

 

  • 883 views
  • 2 answers
  • 0 votes

There are few database files in my Data Folder of SQL Server directory. I want to delete those files, but when I try to delete them, system says that the files are being used. But those files are not associated with any database and are no longer showing in my Databases.

How can I delete those files because they are just occupying space on hard disk?

 

  • 1006 views
  • 2 answers
  • 0 votes

How can I make sure that a table called Table2 with a field called Field1 will only have the values as in Field1 that are also in another table called Table1 with a field called Field1? How can I force Table2 to contain the values as in Table1?

  • 810 views
  • 2 answers
  • 0 votes

I am facing a problematic scenario with my database table. I have a database table which is parent and it has got some garbage values. Now, I want to drop this table. Is there any way that I can drop this table and recreate it without affecting its child tables?

  • 2176 views
  • 2 answers
  • 0 votes

I have attached the database in SQL Server 2005 using .mdf file. But as soon as it was attached, database went to suspected mode. I tried a set of statements to recover it to normal state but after running those queries, its status changed to emergency mode.

Can you please tell me that how can I recover my database from emergency mode to normal?

 

  • 1163 views
  • 2 answers
  • 0 votes

I have windows application having button on it. Behind that button a SQL query is written. Now when you press the button that query executes. Is there any way to see the query written behind the button, if source code is not available?

  • 1297 views
  • 2 answers
  • 0 votes

You are given the following data.

Patient No, Patient First Name, Patient Last Name, Patient Address, Gender, Tel No, DOB, Marital Status, Date Reg., Next of Kin Name, Relationship, Next of Kin Address, Next of Kin Tel No, Local's Doctor's Name, Clinic No, Doctor's Address, Doctor's Tel No.

Normalize the given data into 1st then 2nd and 3rd normal form. Give justification of conversion into 1st then 2nd and 3rd normal form and the anomalies because of which you transformed it into another normal form.

 

  • 869 views
  • 1 answers
  • 0 votes

Hi,

I am a new user of SQL server 2000 Home Edition. Please any one tell me procedure how can I install it in my computer?

Thanks.

  • 1230 views
  • 2 answers
  • 0 votes

I have this code to remove the FOREIGN KEY.

ALTER TABLE ORDERS DROP FOREIGN KEY CUSTOMERID;

When I try to run the code an error message appears:

ERROR 1025 (HY000): Error on rename of './TESTDB/ORDERS' to './TESTDB/#sql2-3b5b-8'

(err no: 152)

What does this message mean. Is my syntax wrong? By the way, I only want to remove the FOREIGN KEY on the CUSTOMERID but don't want any changes for the rest of the database.

  • 2595 views
  • 1 answers
  • 0 votes

Latest Articles

Top 7 Tech Features That Make Online Games Addictive (In A Good Way)

Online games have evolved far beyond simple entertainment. Today’s most engaging platforms keep players coming back through carefully designed features that enhance immersion, reward progress, and create a sense of community. These tech-driven elements...

Tiny Systems That Make Apps Stick

When people say “make it more engaging,” they often mean “add more stuff.” I think the opposite is true. The products that hook us do it with a handful of tiny systems arranged with...

Free cloud mining is coming! RICH Miner launches mobile mining, everyone can earn cryptocurrencies

RICH Miner officially launches a new mobile cloud mining application, subverting the traditional mining model! No need to buy mining machines, no technical experience required, just a mobile phone, global users can start the...

Latest Blogs

Top 10 New Laptop Entrants That Shook The Public

The finest laptops are powerful enough to do your daily tasks, comfortable enough to use all day, and power-efficient enough to ensure you don't run out of battery power unexpectedly. Of course, all these...

10 Facts About The Dark Web

Before getting into knowing the facts, let’s have a brief about the Dark Web. The dark web is the data of the World Wide Web that is accessible only through special software, combinations, or...

Top 10 Latest Steam Cleaner Machines

While looking for a chemical-free way to clear and purify both durable and low grounds in your home, a steam cleaner is an excellent solution. With a spurt of superheated steam, this cleaning equipment...

Latest Tips

Top 10 Internet Monitoring Software

Internet monitoring software keeps a log of all internet activities. You can install this type of software on your computer remotely or by the administrator. An operating console controls this software. This type of...

Top 10 Best Partition Manager Software

A Hard Disk Drive is usually partitioned into various smaller drives for optimization. A partition manager helps make this process easier and more efficient. Here, let’s discuss the top 10 best partition manager software. 1....

Top 10 Best Online Music Production Software

Music production is the initial stage of any song. Music production can be done either in studios or at home using an online music production software. Here, let’s discuss the top 10 best online...