Click here to Skip to main content
15,907,687 members
Home / Discussions / Database
   

Database

 
GeneralFind out if a table name already exists Pin
veronique4-Nov-04 5:32
veronique4-Nov-04 5:32 
GeneralRe: Find out if a table name already exists Pin
Colin Angus Mackay4-Nov-04 6:59
Colin Angus Mackay4-Nov-04 6:59 
GeneralRe: Find out if a table name already exists Pin
veronique4-Nov-04 22:38
veronique4-Nov-04 22:38 
Questionhow to obtain in a fecht a dir result? Pin
Anonymous3-Nov-04 23:56
Anonymous3-Nov-04 23:56 
GeneralStored Procedure Pin
Its due when3-Nov-04 17:52
Its due when3-Nov-04 17:52 
GeneralRe: Stored Procedure Pin
Colin Angus Mackay4-Nov-04 0:42
Colin Angus Mackay4-Nov-04 0:42 
GeneralRe: Stored Procedure Pin
Grimolfr5-Nov-04 9:43
Grimolfr5-Nov-04 9:43 
GeneralRe: Stored Procedure Pin
Colin Angus Mackay5-Nov-04 10:44
Colin Angus Mackay5-Nov-04 10:44 
Grimolfr wrote:
I think it's safer to use the (documented) INFORMATION_SCHEMA views

Or the equally documented sysobjects. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref/ts_sys-o_4zll.asp[^]

And quite frankly, after using the INFORMATION_SCHEMA views earlier this year... Or should I say attempt to use them. I threw them out and refuse to use them until Microsoft come up with something that is actually useful. Have you actually looked at the source for the views - What a load of complete rubbish!

For example, this is part of the SELECT clause from the ROUTINES view:
SPECIFIC_CATALOG            = db_name(),
SPECIFIC_SCHEMA             = user_name(o.uid),
SPECIFIC_NAME               = o.name,
ROUTINE_CATALOG             = db_name(),
ROUTINE_SCHEMA              = user_name(o.uid),
ROUTINE_NAME                = o.name,

Why have SPECIFIC_CATALOG and ROUTINE_CATALOG? They are the same thing.
Why have SPECIFIC_SCHEMA and ROUTINE_SCHEMA? They are also the same thing.
Why have SPECIFIC_NAME and ROUTINE_NAME? It is just wasting bandwidth and processing time repeating the same data again and again.




Do you want to know more?


GeneralRe: Stored Procedure Pin
Grimolfr5-Nov-04 15:17
Grimolfr5-Nov-04 15:17 
GeneralRe: Stored Procedure Pin
Colin Angus Mackay5-Nov-04 20:16
Colin Angus Mackay5-Nov-04 20:16 
GeneralRe: Stored Procedure Pin
Its due when7-Nov-04 17:22
Its due when7-Nov-04 17:22 
GeneralTo Get the Id from the database which are not deleted Pin
Irsh3-Nov-04 2:14
Irsh3-Nov-04 2:14 
GeneralAdding or Substracting time spans from a DateTime SQL value Pin
Den2Fly2-Nov-04 23:32
Den2Fly2-Nov-04 23:32 
GeneralRe: Adding or Substracting time spans from a DateTime SQL value Pin
Colin Angus Mackay3-Nov-04 0:09
Colin Angus Mackay3-Nov-04 0:09 
GeneralRe: Adding or Substracting time spans from a DateTime SQL value Pin
Den2Fly3-Nov-04 12:15
Den2Fly3-Nov-04 12:15 
GeneralRecordSet vs DataSet Pin
Salil Khedkar2-Nov-04 22:13
Salil Khedkar2-Nov-04 22:13 
GeneralTrigger insert row Pin
rudemusik2-Nov-04 19:21
rudemusik2-Nov-04 19:21 
GeneralRe: Trigger insert row Pin
Alex Korchemniy3-Nov-04 13:54
Alex Korchemniy3-Nov-04 13:54 
Generalhosted Access database & VS.net Pin
hasanali002-Nov-04 1:24
hasanali002-Nov-04 1:24 
GeneralSql server 2000 reporting service cannot install Pin
Mekong River1-Nov-04 4:22
Mekong River1-Nov-04 4:22 
GeneralRe: Sql server 2000 reporting service cannot install Pin
Dave Kreskowiak1-Nov-04 13:43
mveDave Kreskowiak1-Nov-04 13:43 
GeneralRe: Sql server 2000 reporting service cannot install Pin
Mekong River1-Nov-04 15:58
Mekong River1-Nov-04 15:58 
GeneralDTS - copying table data Pin
shahar rr r31-Oct-04 4:43
shahar rr r31-Oct-04 4:43 
GeneralRe: DTS - copying table data Pin
Jon Hulatt1-Nov-04 0:26
Jon Hulatt1-Nov-04 0:26 
GeneralRe: DTS - copying table data Pin
shahar rr r2-Nov-04 1:33
shahar rr r2-Nov-04 1:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.