Exforsys

Online Training

Help to Resolve the Problem

This is a discussion on Help to Resolve the Problem within the SQL Server forums, part of the Database category; I am facing a problem with system objects. My requirement is that I do not want the system objects to ...


Go Back   Exforsys > Database > SQL Server

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-22-2007, 07:08 AM
Senior Member
 
Join Date: Apr 2006
Posts: 162
sammy is on a distinguished road
Help to Resolve the Problem

I am facing a problem with system objects. My requirement is that I do not want the system objects to be displayed when I make a query on sysobjects table. Is there any way for achieving this? Kindly suggest me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-24-2007, 12:05 PM
Junior Member
 
Join Date: Jun 2007
Posts: 2
manujaidka is on a distinguished road
Please try this query

select * from sysobjects where status not like '-%'
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-28-2007, 03:20 PM
Senior Member
 
Join Date: Apr 2006
Posts: 153
cyrus is on a distinguished road
There is surely various ways of avoiding system objects from being displayed when you make a query on sysobjects table. One of the ways of achieving the above is as below:
Select * from sysobjects where xtype<>'s'
The above would avoid the system objects from being displayed.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 10-16-2007, 06:16 AM
DataBase Lover
 
Join Date: Oct 2007
Posts: 3
a.karrabi is on a distinguished road
there is a field that show you object type "TYPE" .
type of object that you create it if 'u'.
select * from sys.objects where type = 'u'
__________________
Today is Future of yesterday.WAKEUP!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Artificial Intelligence FAQ:1/6 General Questions & Answers [Monthly posting] Ric Crabbe and Amit Dubey Tech FAQ 0 06-02-2004 01:12 AM
comp.lang.c Answers to Frequently Asked Questions (FAQ List) Steve Summit Tech FAQ 0 06-01-2004 07:00 AM
Artificial Intelligence FAQ:1/6 General Questions & Answers [Monthly posting] Ric Crabbe and Amit Dubey Tech FAQ 0 05-05-2004 04:13 PM
PSION Series 3/3a palmtop FAQ part 3/6 Daniel `HB9VBC' Pfund Tech FAQ 0 04-17-2004 08:27 AM
Solving Lazy Initialization and double checked locking problem Vinay Aggarwal Software Patterns 19 02-18-2004 05:34 PM


All times are GMT -4. The time now is 03:48 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.