3
Answers

how to clear database SQL server 2005

Loeurt

Loeurt

15y
5.3k
1
I'm a new learner..Please our member tell me how to write script to Clear data in a specific column ?
Example In table TblStudent(ID, Name, Sex,Address)...
I want to Clean all record in column address..Please help me..
( I Use Sqlserver 2005 databae and C# 2005 application)
Answers (3)
0
tejal bhesaniya
NA 53 13.2k 12y
SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[YourTable]') if it exist then it will display the result,,,with table name ,,,tpe and everything
0
Naresh Avari
NA 811 1.6m 12y
Select your database and open new query window and

EXEC sp_tables @table_type = "'table'"


0
Jignesh Trivedi
NA 61k 14.2m 12y
hi,

there are two tables sys.tables and sys.objects, in which data base maintain table information
please try.

select * from sys.tables where name = 'Table1'

select * from sys.objects where type = 'U' and type_desc = 'USER_TABLE'


hope this will help you.