home *** CD-ROM | disk | FTP | other *** search
/ Internet Pratica / IPRAT_01.iso / SQL / advanced / aqt3.CAB / sybasee1103.cfg < prev    next >
Text File  |  2002-01-27  |  21KB  |  302 lines

  1. '---------------------------------------------------------------------------------------
  2. ' This config file is for versions of Sybase Enterprise prior to 11.0.5.
  3. ' 11.0.5 introduced the CASE statement which is used extensively in the system 
  4. ' queries coded in the sybasee.cfg config file. 
  5. ' If you are using a version prior to 11.0.5, AQT should detect this and automtically
  6. ' use this cfg file. You can check whether this has happened by looking at 
  7. ' Help->Database Details, which will tell you which cfg file you are using.
  8. '---------------------------------------------------------------------------------------
  9.  
  10. '---------------------------------------------------------------------------------------
  11. ' If you are having trouble with incorrect parameter types in Run Procedure
  12. ' you can try changing the line below from ''aqtprocparms to 'aqtprocparms
  13. ' This will tell AQT to use it's own queries for determining procedure parameters. 
  14. '
  15. ' The "correct" way of determining procedure parameters is to use the ODBC call
  16. ' SQLProcedureColumns, however for some versions of Sybase and/or ODBC driver this can 
  17. ' give incorrect results.
  18. '
  19. ' Using aqtprocparms will give more reliable results for procedure parameters, however
  20. ' AQT is unable to determine the parameter type (IN/OUT/INOUT etc) - it will be
  21. ' defaulted to IN. In the Run Procedure window you can change this by double-clicking
  22. ' the parameter type.
  23. '---------------------------------------------------------------------------------------
  24. ''aqtprocparms
  25.  
  26. menu1;&Show;
  27. &Tables;1;2;T;Y;
  28. &Views;3;3;V;Y;
  29. &System Tables;4;4;T;Y;
  30. T&riggers;5;5;G;Y;
  31. &Procedures;9;9;B;Y;
  32. &Rules/Domains;8;8;M;Y;
  33. &Defaults;10;11;D;Y;
  34. &Users and Groups;1;7;U;N;
  35. Logins;1;12;E;N;
  36.  
  37. menu2;1;Table &List;
  38.  
  39. menu2;2;Table &List;
  40. Name;11;
  41. Object Id;32;
  42. Table Sizing;57;
  43.  
  44. menu2;3;View &List;
  45. Name;12;
  46. Object Id;33;
  47.  
  48. menu2;4;Table &List;
  49. Name;37;
  50. Object Id;40;
  51. Table Sizing;64;
  52.  
  53. menu2;5;Trigger &List;
  54. Name;14;
  55. Object Id;36;
  56.  
  57. menu2;6;&Index list;
  58. Description;18;
  59.  
  60. menu2;7;&User List;
  61. User List;7;
  62.  
  63. menu2;8;&Rule List;
  64. Name;18;
  65. Object Id;44;
  66.  
  67. menu2;9;&Procedure List;
  68. Name;17;
  69. Object Id;45;
  70.  
  71. menu2;11;Default &List;
  72. Name;19;
  73. Object Id;67;
  74.  
  75. menu2;12;Logins;
  76. Logins;15;
  77.  
  78. menu3;1;Table/View &Info;
  79. &Columns;22;
  80. &Default Values;25;
  81. C&heck Constraints;52;
  82. -;1;
  83. &Full Detail;23;
  84. Table &Sizing Info;60;
  85. -;1;
  86. &Indexes;53;4;
  87. &Access List;21;3;
  88. -;1;
  89. &Show contents (first 30 rows);34;
  90. -;1;
  91. &View Definition;30;
  92. View Definition (&formatted);29;
  93. -;1;
  94. &Triggers on Table;31;5;
  95. &Objects Referenced by;50;2;
  96. Objects &Referencing;51;2;
  97. -;1;
  98. &Referenced Tables (Foreign Keys);24;7;
  99. &Dependent Tables;42;7;
  100.  
  101. menu3;2;Table &Info;
  102. &Columns;22;
  103. Column &Default Values;25;
  104. C&heck Constraints;52;
  105. -;1;
  106. &Full Detail;23;
  107. Table &Sizing Info;60;
  108. &Indexes;53;4;
  109. &Access List;21;3;
  110. -;1;
  111. &Table contents (first 30 rows);34;
  112. -;1;
  113. Objects &Referencing;51;2;
  114. Tri&ggers on Table;31;5;
  115. -;1;
  116. &Referenced Tables (Foreign Keys);24;7;
  117. &Dependent Tables;42;7;
  118.  
  119. menu3;3;View &Info;
  120. &Columns;22;
  121. -;1;
  122. &Full Detail;23;
  123. &Access List;21;3;
  124. -;1;
  125. &Show contents (first 30 rows);34;
  126. -;1;
  127. &Objects Referenced by;50;2;
  128. Objects &Referencing;51;2;
  129. -;1;
  130. &View Definition;30;
  131. View Definition (&formatted);29;
  132. View as &Query;71;
  133.  
  134. menu3;4;Table &Info;
  135. &Columns;22;
  136. Column &Default Values;25;
  137. C&heck Constraints;52;
  138. -;1;
  139. &Full Details;23;
  140. Table &Sizing Info;60;7;
  141. &Indexes;53;4;
  142. &Access List;21;3;
  143. -;1;
  144. &Table contents (first 30 rows);34;
  145. -;1;
  146. Objects &Referencing;51;2;
  147. Tri&ggers on Table;31;5;
  148. -;1;
  149. &Referenced Tables (Foreign Keys);24;7;
  150. &Dependent Tables;42;7;
  151.  
  152. menu3;5;Trigger &Info;
  153. &Base Table;61;7;
  154. &Trigger Text;26;
  155. &Full Detail;23;
  156. -;1;
  157. &Objects Referenced by;50;2;
  158.  
  159. menu3;6;&Index Info;
  160. &Index Details;39;
  161.  
  162. menu3;7;User &Info;
  163. User &Details;58;
  164. -;1;
  165. &Table authorities;49;7;
  166. &Table Access grid;56;7;
  167. &Procedure authorities;59;6;
  168. -;1;
  169. &Users in Group;54;3;
  170. &Groups for user;55;3;
  171. -;1;
  172. &Login for user;70;10;
  173.  
  174. menu3;8;Rule &Info;
  175. Rule &Text;26;
  176. &Full Detail;23;
  177. -;1;
  178. &Columns using;68;7;
  179.  
  180. menu3;9;&Procedure Info;
  181. Procedure &Text;28;
  182. &Parameters;20;
  183. -;1;
  184. &Full Detail;23;
  185. &Access List;21;3;
  186. -;1;
  187. &Objects Referenced by;50;2;
  188. Objects &Referencing;51;2;
  189. -;1;
  190. Procedure &Sections;43;8;
  191.  
  192. menu3;10;&Procedure Section;
  193. Procedure &Text;48;
  194. &Parameters;62;
  195.  
  196. menu3;11;Default &Info;
  197. Default &Text;26;
  198. &Full Details;23;
  199. -;1;
  200. &Columns using;69;7;
  201.  
  202. menu3;12;Logins;
  203. Details;46;
  204. User;47;3;
  205.  
  206. menu4;1;1;Z;
  207. menu4;2;2;T;3;U;
  208. menu4;2;2;T;3;S;
  209. menu4;2;3;V;3;V;
  210. menu4;2;5;G;3;TR;
  211. menu4;2;9;B;3;P;
  212. menu4;3;7*;U;
  213. menu4;4;6@;I;
  214. menu4;5;5;G;
  215. menu4;6;9;B;
  216. menu4;7;2;T;
  217. menu4;8;10@;B;
  218.  
  219. queries;
  220. 1;M;Tables within Database;Select distinct b.name,b.uid from dbo.sysobjects a, dbo.sysusers b where a.type = 'U' and a.uid=b.uid order by 1;Owner;1500;Id;1;
  221. 3;M;Views within Database;Select distinct b.name,b.uid from dbo.sysobjects a, dbo.sysusers b where a.type='V' and a.uid=b.uid order by 1;Owner;1500;Id;1;
  222. 4;M;System Tables within Database;Select distinct b.name,b.uid from dbo.sysobjects a, dbo.sysusers b where a.type = 'S' and a.uid=b.uid order by 1;Owner;1500;Id;1;
  223. 5;M;Triggers within Database;Select distinct b.name, b.uid  from dbo.sysobjects a, dbo.sysusers b where a.type='TR' and a.uid=b.uid order by 1;Owner;1500;Id;1;
  224. 6;M;Defaults within Database;Select distinct b.name,b.uid from dbo.sysobjects a, dbo.sysusers b where a.type = 'D' and a.uid=b.uid order by 1;;1500;;1;
  225. 7;U;Users within Database;Select name, uid from dbo.sysusers order by 1;User;1500;Id;1;
  226. 8;M;Rules within Database;Select distinct b.name, b.uid from dbo.sysobjects a, dbo.sysusers b where a.type = 'R' and a.uid=b.uid order by 1;Owner;1500;Id;1;
  227. 9;M;Procedures within Database;Select distinct b.name, b.uid from dbo.sysobjects a, dbo.sysusers b where a.type in  ('P','X') and a.uid=b.uid order by 1;Owner;1500;Id;1;
  228. 10;M;Defaults within Database;Select distinct b.name, b.uid from dbo.sysobjects a, dbo.sysusers b where a.type = 'D' and a.uid=b.uid order by 1;Owner;1500;Id;1;
  229. 11;M1;Tables within Owner;Select a.name, id from dbo.sysobjects a where a.type ='U' and a.uid=convert(smallint,?) order by 1;Table;2520;Id;1;
  230. 12;M1;Views within Owner;Select a.name, id from dbo.sysobjects a where a.type = 'V' and a.uid=convert(smallint,?) order by 1;Table;2500;Id;1;
  231. 14;M1;Triggers within Owner;Select name, id from dbo.sysobjects a where type='TR' and uid=convert(smallint,?) order by 1;Table;2500;Id;1;
  232. 15;M1;Logons for user;Select a.name,b.name  ,a.dbname,a.suid from master.dbo.syslogins a left outer join dbo.sysusers b on a.suid=b.suid;Login name;1000;User name in this db;1600;Default database ;1455;Id;1;
  233. 16;M;Users/Groups within Database;Select name from dbo.sysusers order by 1;User Name;1200;Group?;800;
  234. 17;M1;Procedures within Owner;Select name, id from dbo.sysobjects a where type in ('P','X') and uid=convert(smallint,?) order by 1;Procedure;2500;Id;1;
  235. 18;M1;Rules within Owner;Select name,id from dbo.sysobjects a where type = 'R' and uid=convert(smallint,?) order by 1;Rule;2500;Id;1;
  236. 19;M1;Defaults within Owner;Select name,id from dbo.sysobjects a where type = 'D' and uid=convert(smallint,?) order by 1;Default;2500;Id;1;
  237. 20;M1;Parameters for;Select c.name,(select name from dbo.systypes  where type=c.type and usertype=c.usertype) , c.length, c.scale,substring('NY',convert(smallint, convert(bit, c.status&8))+1,1), convert(char,c.number) from dbo.syscolumns c where c.id =convert(int,?) order by c.number, c.colid;Name;2000;Type;800;Length;600;Scale;600;Nulls;600;Proc Section;1000;
  238. '21;M1;Access list for;Select user_name(uid), action , substring('YESNO REV',protecttype*3 +1,3), uid from dbo.sysprotects where id=convert(int,?) ;User;1500;Privilege;1000;Grantable?;1000;Id;1;
  239. 21;M1;Access list for;Select user_name(uid), action, substring('YESNO REV',protecttype*3 +1,3), uid from dbo.sysprotects where id=convert(int,?) ;User;1500;Privilege;1000;Grantable?;1000;Id;1;
  240. 22;C1;Column list for;Select  c.name, t2.name, c.length, c.scale, substring('NY',convert(smallint, convert(bit, c.status&8))+1,1), t.name from dbo.syscolumns c, dbo.systypes t, dbo.systypes t2  where  c.usertype=t.usertype and c.id =convert(int,?) and t.type=t2.type and t2.usertype=(select min(usertype) from  dbo.systypes where type=t2.type and usertype>0) order by c.colid,t2.name;Name;2000;Type;1200;Length;600;Scale;600;Nulls;600;User Type;2500;
  241. 23;S1;Full detail of;Select * from dbo.sysobjects where id=convert(int,?);Column;1500;Value;3000;
  242. 24;M1;Referenced Tables for;Select u.name, o.name, object_name(r.constrid), col_name(tableid,fokey1)+' '+coalesce(col_name(tableid,fokey2),'')+' '+coalesce(col_name(tableid,fokey3),'')+' '+coalesce(col_name(tableid,fokey4),''), col_name(reftabid,refkey1)+' '+coalesce(col_name(reftabid,refkey2),'')+' '+coalesce(col_name(reftabid,refkey3),'')+' '+coalesce(col_name(reftabid,refkey4),''),o.id   from dbo.sysreferences r, dbo.sysobjects o, dbo.sysusers u where r.reftabid=o.id and o.uid=u.uid and r.tableid=convert(int,?) order by 1,2,3;Owner;1200;Referenced Table;1800;Constraint;1000;Cols (FK);1500;PK in Ref Tab;1500;Id;1;
  243. 25;M1;Column Default values for ;Select a.name,c.text from dbo.syscolumns a, dbo.syscomments c where a.cdefault=c.id and c.texttype=0 and c.colid=1 and a.id=convert(int,?) order by 1;Column;2000;Default Value;3000;Default Name;1500;Id;1;
  244. 26;X1;Text of;Select text from dbo.syscomments where  id = convert(int,?) and texttype=0 order by colid;Text;5000;
  245. 28;X1;Text of Procedure ;Select text from dbo.syscomments where  id = convert(int,?)  and texttype=0 order by number,colid;Procedure Text;5460;
  246. 29;V1;Text of View;Select text from dbo.syscomments where id =convert(int,?) and texttype=0 order by colid;View Text;2505;
  247. 30;W1;Text of View;Select text from dbo.syscomments where id =convert(int,?) and texttype=0 order by colid;View Text;5715;
  248. 31;M1;Triggers on Table;Select user_name(b.uid), b.name, (case when b.id=a.deltrig then 'Delete' when  b.id=a.updtrig then 'Update'  when b.id=a.instrig then 'Insert' end ), b.id  from dbo.sysobjects a,  dbo.sysobjects b  where (b.id = a.deltrig or b.id = a.updtrig or b.id=a.instrig)  and a.id=convert(int,?) order by 1,2,3;Owner;1500;Trigger Name;2500;Event;800;Id;1;
  249. 32;M1;Tables within Owner;Select a.name,id from dbo.sysobjects a where a.type ='U' and a.uid=convert(smallint,?) order by 1;Table;2000;Id;1000;
  250. 33;M1;Views within Owner;Select a.name,id from dbo.sysobjects a where a.type = 'V' and a.uid=convert(smallint,?) order by 1;View;2000;Id;1000;
  251. 34;D;Contents of;unused;Name;1500;
  252. 35;X;Definition of Constraint;Select text from dbo.syscomments where  id = (select id from dbo.sysobjects a, dbo.sysusers b where a.uid=b.uid and b.name=?  and a.name=?) and texttype=0 order by colid;Constraint Definition;6360;
  253. 36;M1;Triggers within Owner;Select name, id from dbo.sysobjects a where type='TR' and uid=convert(smallint,?) order by 1;Trigger;2000;Id;1000;
  254. 37;M1;System Tables within Owner;Select name,id from dbo.sysobjects c where type = 'S'  and uid =convert(smallint,?) order by 1;Table;2500;Id;1;
  255. 38;M;Triggers within Owner;Select name, id,id from dbo.sysobjects a where type='TR' and uid=convert(smallint,?) order by 1;Table;1500;Desc;2000;
  256. 39;S2;Full details of;Select * from dbo.sysindexes where id=convert(int,?) and indid=convert(int,?);Column;1500;Value;3000;
  257. 40;M1;System Tables within Owner;Select name, id from dbo.sysobjects where type = 'S'  and uid =convert(smallint,?) order by 1;Table;2000;Id;1000;
  258. 41;M1;Objects referencing;Select  user_name(o.uid), o.name, o.type, convert(char,depnumber), o.id   from dbo.sysdepends d, dbo.sysobjects o  where d.id=o.id and d.depid =convert(int,?) order by 1,2;Owner;1500;Name;2000;Type;600;Proc Number;1200;Id;1;
  259. 42;M1;Dependent Tables for;Select u.name, o.name, object_name(r.constrid),  col_name(reftabid,refkey1)+' '+coalesce(col_name(reftabid,refkey2),'')+' '+coalesce(col_name(reftabid,refkey3),'')+' '+coalesce(col_name(reftabid,refkey4),''),col_name(tableid,fokey1)+' '+coalesce(col_name(tableid,fokey2),'')+' '+coalesce(col_name(tableid,fokey3),'')+' '+coalesce(col_name(tableid,fokey4),''),o.id   from dbo.sysreferences r, dbo.sysobjects o, dbo.sysusers u where r.tableid=o.id and o.uid=u.uid and r.reftabid=convert(int,?) order by 1,2,3;Owner;1200;Dependent Table;1800;Constraint;1000;Cols (PK);1500;FK in Dep Tab;1500;Id;1;
  260. 43;M1;Sections in Procedure;Select distinct number, id , number  from dbo.syscomments where  id = convert(int,?) order by number;Procedure Section;1500;Id;1;Number;1;
  261. 44;M1;Rules within Owner;Select name, id from dbo.sysobjects a where type = 'R' and uid=convert(smallint,?) order by 1;Rule;2000;Id;1000;
  262. 45;M1;Procedures within Owner;Select name, id from dbo.sysobjects a where type in ('P','X') and uid=convert(smallint,?) order by 1;Procedure;2000;Id;1000;
  263. 46;S1;Full detail of;Select * from master.dbo.syslogins where suid=convert(smallint,?);Column;1500;Value;3000;
  264. 47;M1;Login user;Select b.name, a.dbname, b.uid from master.dbo.syslogins a, dbo.sysusers b where a.suid*=b.suid and a.suid=convert(smallint,?);User name;1500;Default Database;1500;id;1;
  265. 48;X2;Text of Section;Select text from dbo.syscomments where  id = convert(int,?) and number=convert(int,?) and texttype=0 order by colid;Section Text;6135;
  266. 49;B1;Table authorities for;Select user_name(o.uid),o.name, action , substring('YESNO REV',protecttype*3 +1,3), user_name(p.grantor), p.id from dbo.sysprotects p, dbo.sysobjects o where p.uid=convert(smallint,?) and p.id=o.id and o.type <> 'P' order by 1,2,3;Owner;1500;Name;2000;Privilege;1000;Grantable?;900;Granted by;900;Id;1;
  267. 50;M1;Objects referenced by;Select distinct user_name(o.uid), o.name, o.type, o.id   from dbo.sysdepends d, dbo.sysobjects o  where d.depid=o.id and d.id =convert(int,?) order by 1,2;Owner;1500;Name;2000;Type;600;Id ;1;
  268. 51;M1;Objects referencing;Select distinct user_name(o.uid), o.name, o.type, o.id   from dbo.sysdepends d, dbo.sysobjects o  where d.id=o.id and d.depid =convert(int,?) order by 1,2;Owner;1500;Name;2000;Type;600;Id;1;
  269. 52;M1;Check Constraints on;Select col_name(c.tableid,c.colid), d.text, object_name(c.constrid) from dbo.sysconstraints c, dbo.syscomments d where d.id=c.tableid and d.texttype=0 and d.colid=1 and c.tableid=convert(int,?) order by 1;Column;1500;Text;2000;Constraint;1500;Domain;800;Length;800;Desc;1500;
  270. 53;M1;Indexes on;Select  i.name, i.indid,  substring(' Y',convert(smallint, convert(bit, i.status&2048))+1,1), substring(' Y',convert(smallint, convert(bit, i.status&16))+1,1),  substring(' Y',convert(smallint, convert(bit, i.status&2))+1,1),  index_col(user_name(o.uid)+'.'+o.name,indid,1), index_col(user_name(o.uid)+'.'+o.name,indid,2), index_col(user_name(o.uid)+'.'+o.name,indid,3),  index_col(user_name(o.uid)+'.'+o.name,indid,4),index_col(user_name(o.uid)+'.'+o.name,indid,5),i.id,indid   from dbo.sysindexes i,dbo.sysobjects o WHERE o.id=i.id and o.id =convert(int,?) and indid between 1 and 254 order by 2;Name;1800;Id;400;PK?;400;Clust?;600;Uniq?;600;Column 1;1500;Column 2;1500;Column 3;1500;Column 4;1500;Column 5;1500;Id;1;Indid;1;
  271. 54;M1;Users in Group;Select name,uid from dbo.sysusers where gid=convert(int,?) order by 1;User;1500;Id;1;
  272. 55;M1;Groups for user;Select b.name, b.uid from dbo.sysusers a, dbo.sysusers b where a.uid=convert(smallint,?) and a.gid=b.uid order by 1;Group;1500;Id;1;
  273. 56;A1;Table access grid for;Select distinct user_name(o.uid),o.name, action , substring('YESNO REV',protecttype*3 +1,3), p.id from dbo.sysprotects p, dbo.sysobjects o where p.uid=convert(smallint,?) and p.id=o.id and o.type <> 'P' order by 1,2;Owner;1500;Name;1800;Select;600;Update;700;Insert;600;Delete;600;References;1000;Execute;1000;Id;1;
  274. 57;M1;Tables within Owner;Select o.name, rowcnt(doampg), data_pgs(i.id,doampg), o.id from dbo.sysobjects o, dbo.sysindexes i where i.id=o.id and indid<2 and o.type ='U' and o.uid=convert(smallint,?) order by 1;Table;2000;Rows;1000;Pages;800;Id;1;
  275. 58;S1;User Details;select  name as "User Name", uid as "User Id", gid as "Group Id", suid as "Server User Id", suser_name(suid) as "Server User Name" From dbo.sysusers where uid=convert(smallint,?);Column;2000;Value;2000;
  276. 59;M1;Table authorities for;Select user_name(o.uid),o.name, 'EXECUTE', substring('YESNO REV',protecttype*3 +1,3), user_name(p.grantor), p.id from dbo.sysprotects p, dbo.sysobjects o where p.uid=convert(smallint,?) and p.id=o.id and p.action=224 and o.type='P' order by 1,2,3;Owner;1500;Name;1800;Privilege;1000;Grantable?;900;Granted by;900;Id;1;
  277. 60;S1;Table sizing info for;select rowcnt(doampg) as "Rows", data_pgs(id,doampg) as "Pages", segment as "Segment", maxrowsperpage as "Max rows/page", minlen as "Min row len", maxlen as "Max row len" From dbo.sysindexes Where indid < 2 and id=convert(int,?);Column;1500;Value;2000;
  278. 61;M1;Base Table for;Select user_name(b.uid), b.name, (case when b.id=a.deltrig then 'Delete' when  b.id=a.updtrig then 'Update'  when b.id=a.instrig then 'Insert' end ), b.id  from dbo.sysobjects a,  dbo.sysobjects b  where (b.id = a.deltrig or b.id = a.updtrig or b.id=a.instrig)  and a.id=convert(int,?);Owner;1500;Table Name;2000;Event;800;Id;1;
  279. 62;M2;Parameters for section;Select c.name,(select name from dbo.systypes  where type=c.type and usertype=c.usertype) , c.length, c.scale, substring('NY',convert(smallint, convert(bit, c.status&8))+1,1) from dbo.syscolumns c where c.id =convert(int,?) and c.number=convert(int,?) order by c.colid;Name;2000;Type;800;Length;600;Scale;600;Nulls;600;
  280. 63;E;Column list for;Select  c.name, t2.name, c.length, c.scale, substring('NY',convert(smallint, convert(bit, c.status&8))+1,1), t.name,c.id from dbo.syscolumns c, dbo.systypes t, dbo.systypes t2, dbo.sysobjects o  where  o.id=c.id and c.usertype=t.usertype and o.uid=user_id(?) and o.name =? and t.type=t2.type and t2.usertype=(select min(usertype) from  dbo.systypes where type=t2.type and usertype>0) order by c.colid,t2.name;Name;2000;Type;800;Length;600;Scale;600;Nulls;600;User Type;1200;Id;1;
  281. 64;M1;Tables within Owner;Select o.name, rowcnt(doampg), data_pgs(i.id,doampg), o.id from dbo.sysobjects o, dbo.sysindexes i where i.id=o.id and indid<2 and o.type ='S' and o.uid=convert(smallint,?) order by 1;Table;2000;Rows;1000;Pages;800;Id;1;
  282. 66;M1;Basic column list for;Select  c.name,t.name, c.length, c.scale, substring('NY',convert(smallint, convert(bit, c.status&8))+1,1),  ''  from dbo.syscolumns c, dbo.systypes t  where  c.usertype=t.usertype and c.id =convert(int,?) order by c.number, c.colid;Name;2000;Type;800;Length;600;Scale;600;Nulls;600;Id;1;
  283. 67;M1;Defaults within Owner;Select name, id from dbo.sysobjects a where type = 'D' and uid=convert(smallint,?) order by 1;Default;2000;Id;1000;
  284. 68;M1;Columns using Rule;Select user_name(b.uid),b.name,a.name,a.id from dbo.syscolumns a, dbo.sysobjects b WHERE a.domain=convert(int,?) and a.id=b.id order by 1,2,3;Owner;1500;Table Name;2000;Column;1500;Id;1;
  285. 69;M1;Columns using Default;Select user_name(b.uid),b.name,a.name,a.id from dbo.syscolumns a, dbo.sysobjects b WHERE a.cdefault=convert(int,?) and a.id=b.id order by 1,2,3 ;Owner;1500;Table Name;1800;Column;1500;Id;1;
  286. 70;M1;Login for user;select  a.name, dbname From master.dbo.syslogins a, dbo.sysusers b Where a.suid = b.suid and b.uid=convert(smallint,?);Login Name;1500;Default Database;2000;
  287. 71;Q1;View as Query;Select text from dbo.syscomments where id =convert(int,?) and texttype=0 order by colid;View Text;5715;
  288. 72;P1;Parameters for;SELECT c.name,'in',(select name from dbo.systypes  where c.type=c.type and usertype=c.usertype), c.length, c.scale, 'Y', convert(char,c.number) FROM dbo.sysobjects sys, dbo.syscolumns c WHERE sys.id=c.id  AND sys.uid = user_id(?) AND sys.name = ? ORDER BY c.number, c.colid;Name;2000;ptype;800;Type;800;Length;600;Scale;600;Nulls;600;Proc Section;1000;
  289.  
  290.  
  291. func;DATETIME;convert(char,:);char;dateadd(year,1,:);;datediff(month,:,getdate());INT;datename(weekday,:);CHAR;datepart(day,:);INT;
  292. func;CHAR;substring(:,1,20);;right(:,5);;ltrim(:);;rtrim(:);;lower(:);;upper(:);;reverse(:);;convert(int,:);INT;len(:);INT;charindex(:,'x',1);;stuff(:,5,1,'.');;
  293. func;INT;str(:);CHAR;abs(:);;sign(:);;
  294. func;DECIMAL;str(:,5,2);CHAR;abs(:);;sign(:);;round(:,2);;abs(:);;sign(:);;ceiling(:);;floor(:);;
  295. func;FLOAT;str(:,5,2);CHAR;abs(:);;sign(:);;round(:,2);;abs(:);;sign(:);;ceiling(:);;floor(:);;
  296.  
  297. const;DATETIME;getdate();convert(datetime,'2001-01-23');
  298. const;CHAR;char(10);replicate('*',5);user;
  299. const;INT;0;
  300. const;DECIMAL;0;
  301. const;FLOAT;0;
  302. const;ALL*;getdate();user;host_name();char(10);replicate('*',5);