home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a025 / 8.ddi / HELPSQL.SQ@ / HELPSQL.bin
Encoding:
Text File  |  1992-09-15  |  119.4 KB  |  1,774 lines

  1. /******************************************************************/
  2. /*  Microsoft - sp_helpsql    1988, 1989, 1992             */
  3. /******************************************************************/
  4. use master
  5. go
  6.  
  7. dump transaction master with truncate_only
  8. go
  9.  
  10. if (exists (select * from sysobjects where name = 'sp_helpsql'))
  11.     drop proc sp_helpsql
  12. go
  13.  
  14. if (exists (select * from sysobjects where name = 'helpsql'))
  15.     drop table helpsql
  16. go
  17.  
  18. dump transaction master with truncate_only
  19. go
  20.  
  21. create table helpsql (command varchar(30), ordering tinyint, helptext varchar(72))
  22. go
  23.  
  24. create index helpsql_index on helpsql(command)
  25. go
  26.  
  27. create proc sp_helpsql
  28. @in_command varchar(30)=null
  29. as
  30.  
  31. declare @num_commands tinyint
  32. declare @original_command varchar(30)
  33.  
  34.  
  35. /******************************************************************/
  36. /*  Microsoft - sp_helpsql    1988, 1989, 1992                */
  37. /******************************************************************/
  38. /*  sp_helpsql gives help on SQL commands supported by SQL Server */
  39. /*     4 situations must be covered:                             */
  40. /*          1. no additional parameters                           */
  41. /*             return: help on how to use help                    */
  42. /*          2. partial parameter input by the user                */
  43. /*             return: all commands that begin with the string    */
  44. /*                     input by the user.  the user can resubmit  */
  45. /*                     the request for help with more information */
  46. /*          3. a unique parameter passed from the user            */
  47. /*             return: brief definition and syntax on command     */
  48. /*          4. a parameter which does not match any help keys     */
  49. /*             return:  No help available for command: parameter  */
  50. /******************************************************************/
  51. /* gwc dec, 1988                                                  */
  52.  
  53. /* first deal with no parameter passed, which means to simply give */
  54. /* usage syntax and help                                           */
  55. if @in_command = NULL
  56.     begin
  57.         print ' '
  58.         print 'sp_helpsql supplies help on Transact-SQL statements, system procedures, and'
  59.         print '    special topics: '
  60.         print ' '
  61.         print "Syntax:  sp_helpsql ['topic']"
  62.         print ' '
  63.         print 'Help is available on all Transact-SQL statements, all system'
  64.         print '    procedures and catalog stored procedures, and the following topics: '
  65.         print '         aggregate functions   datatype              expression'
  66.         print '         functions             like and wildcards    mathematical functions'
  67.         print '         string functions      system functions      text functions'
  68.         print ' '
  69.         /* all done, so leave now */
  70.         return
  71.     end
  72. else
  73.     begin
  74.         select @original_command = @in_command
  75.         select @in_command = lower(@in_command)
  76.         /* see if we got a unique hit on command */
  77.         select @num_commands=count(distinct command) from master..helpsql where
  78.                 command like @in_command
  79.         if @num_commands = 1
  80.             begin
  81.                 select helptext from master..helpsql where command like
  82.                         @in_command order by ordering
  83.                 return
  84.             end
  85.  
  86.         /* what was input did not get a direct hit, so now look for a part */
  87.         /* of a command as input */
  88.         select @in_command = @in_command + '%'
  89.         select @num_commands=count(distinct command) from master..helpsql where
  90.                 command like @in_command
  91.  
  92.         /* if num_command > 1 then more than 1 command has been found*/
  93.         if @num_commands > 1
  94.             begin
  95.                 print ' '
  96.                 print 'You have entered a non-unique topic.  More information can be obtained'
  97.                 print 'for the following topics:'
  98.                 print ' '
  99.                 select distinct command from master..helpsql where
  100.                         command like @in_command
  101.                 return
  102.             end
  103.         else
  104.         /* if num_command = 1 then give help for that 1 command */
  105.         if @num_commands = 1
  106.             begin
  107.                 select helptext from master..helpsql where command like
  108.                         @in_command order by ordering
  109.                 return
  110.             end
  111.         else
  112.         /* if we got here we have no help on the command requested by the */
  113.         /* user                                                           */
  114.             begin
  115.                 declare @nohelp varchar(72)
  116.                 select @nohelp = 'No help available for ' + @original_command
  117.                 print @nohelp
  118.                 return
  119.             end
  120.     end
  121. go
  122. dump transaction master with truncate_only
  123. go
  124. insert into helpsql values("alter database",1,"ALTER DATABASE")
  125. insert into helpsql values("alter database",2,"Increases space allocated to a database.")
  126. insert into helpsql values("alter database",3,"")
  127. insert into helpsql values("alter database",4,"   ALTER DATABASE <database_name>")
  128. insert into helpsql values("alter database",5,"     [ON DEFAULT | <database_device> [= <size_in_megabytes>]")
  129. insert into helpsql values("alter database",6,"       [, <database_device> [= <size_in_megabytes>]]...]")
  130. insert into helpsql values("alter database",7,"")
  131. insert into helpsql values("alter table",1,"ALTER TABLE")
  132. insert into helpsql values("alter table",2,"Adds columns to an existing table.")
  133. insert into helpsql values("alter table",3,"")
  134. insert into helpsql values("alter table",4,"  ALTER TABLE [[<database.>]<owner.>]<table_name>")
  135. insert into helpsql values("alter table",5,"  ADD <column_name> <datatype> NULL [, <column_name> <datatype> NULL...]")
  136. insert into helpsql values("alter table",6,"")
  137. insert into helpsql values("begin...end",1,"BEGIN...END")
  138. insert into helpsql values("begin...end",2,"Enclose a series of SQL statements so that control-of-flow language,")
  139. insert into helpsql values("begin...end",3,"such as IF...ELSE, affects the performance of the whole group.")
  140. insert into helpsql values("begin...end",4,"")
  141. insert into helpsql values("begin...end",5,"   BEGIN")
  142. insert into helpsql values("begin...end",6,"     <statement_block>")
  143. insert into helpsql values("begin...end",7,"   END")
  144. insert into helpsql values("begin...end",8,"")
  145. insert into helpsql values("begin transaction",1,"BEGIN TRANSACTION")
  146. insert into helpsql values("begin transaction",2,"Marks the starting point of a user-specified transaction.")
  147. insert into helpsql values("begin transaction",3,"")
  148. insert into helpsql values("begin transaction",4,"   BEGIN TRANsaction [<transaction_name>]")
  149. insert into helpsql values("begin transaction",5,"")
  150. insert into helpsql values("break",1,"BREAK")
  151. insert into helpsql values("break",2,"Controls operation of statements in a WHILE loop.")
  152. insert into helpsql values("break",3,"")
  153. insert into helpsql values("break",4,"   WHILE")
  154. insert into helpsql values("break",5,"     <boolean_expression>")
  155. insert into helpsql values("break",6,"     <sql_statement>")
  156. insert into helpsql values("break",7,"   BREAK")
  157. insert into helpsql values("break",8,"     <sql_statement>")
  158. insert into helpsql values("break",9,"   CONTINUE")
  159. insert into helpsql values("break",10,"")
  160. insert into helpsql values("checkpoint",1,"CHECKPOINT")
  161. insert into helpsql values("checkpoint",2,"Forces all dirty pages in the current database to be written to the")
  162. insert into helpsql values("checkpoint",3,"disk.")
  163. insert into helpsql values("checkpoint",4,"")
  164. insert into helpsql values("checkpoint",5,"   CHECKPOINT")
  165. insert into helpsql values("checkpoint",6,"")
  166. insert into helpsql values("commit transaction",1,"COMMIT TRANSACTION")
  167. insert into helpsql values("commit transaction",2,"Marks the end of a user-defined transaction.")
  168. go
  169. dump transaction master with truncate_only
  170. go
  171. insert into helpsql values("commit transaction",3,"")
  172. insert into helpsql values("commit transaction",4,"   COMMIT TRANsaction [<transaction_name>]")
  173. insert into helpsql values("commit transaction",5,"")
  174. insert into helpsql values("compute",1,"COMPUTE Clause")
  175. insert into helpsql values("compute",2,"Generates summary values in a SELECT statement with row aggregate")
  176. insert into helpsql values("compute",3,"functions.")
  177. insert into helpsql values("compute",4,"")
  178. insert into helpsql values("compute",5,"See SELECT for syntax.")
  179. insert into helpsql values("compute",6,"")
  180. insert into helpsql values("continue",1,"CONTINUE")
  181. insert into helpsql values("continue",2,"Causes the WHILE loop to restart.")
  182. insert into helpsql values("continue",3,"")
  183. insert into helpsql values("continue",4,"   WHILE")
  184. insert into helpsql values("continue",5,"     <boolean_expression>")
  185. insert into helpsql values("continue",6,"     <statement>")
  186. insert into helpsql values("continue",7,"   BREAK")
  187. insert into helpsql values("continue",8,"     <statement>")
  188. insert into helpsql values("continue",9,"   CONTINUE")
  189. insert into helpsql values("continue",10,"")
  190. insert into helpsql values("convert",1,"CONVERT (Conversion function)")
  191. insert into helpsql values("convert",2,"Converts expressions of one datatype to another datatype. Also obtains a")
  192. insert into helpsql values("convert",3,"variety of special date formats.")
  193. insert into helpsql values("convert",4,"")
  194. insert into helpsql values("convert",5,"CONVERT(<datatype> [(<length>)], <expression> [, <style>])")
  195. insert into helpsql values("convert",6,"")
  196. insert into helpsql values("create database",1,"CREATE DATABASE")
  197. insert into helpsql values("create database",2," Creates a database.")
  198. insert into helpsql values("create database",3,"")
  199. insert into helpsql values("create database",4,"    CREATE DATABASE <database_name>")
  200. insert into helpsql values("create database",5,"      [ON DEFAULT | <database_device> [= <size_in_megabytes>]")
  201. insert into helpsql values("create database",6,"        [, <database_device> [= <size_in_megabytes>]]...]")
  202. insert into helpsql values("create database",7,"        [LOG ON <database_device> [= <size_in_megabytes>]")
  203. insert into helpsql values("create database",8,"        [, <database_device> [= <size_in_megabytes>]]...]")
  204. insert into helpsql values("create database",9,"")
  205. insert into helpsql values("create default",1,"CREATE DEFAULT")
  206. insert into helpsql values("create default",2,"Specifies a value to be inserted in a column if no value is")
  207. insert into helpsql values("create default",3,"supplied at insert time.")
  208. insert into helpsql values("create default",4,"")
  209. insert into helpsql values("create default",5,"   CREATE DEFAULT [<owner.>]<default_name>")
  210. insert into helpsql values("create default",6,"     AS <constant_expression>")
  211. insert into helpsql values("create default",7,"")
  212. insert into helpsql values("create index",1,"CREATE INDEX")
  213. insert into helpsql values("create index",2,"Creates an index.")
  214. insert into helpsql values("create index",3,"")
  215. insert into helpsql values("create index",4,"   CREATE [UNIQUE] [CLUSTERED | NONCLUSTERED] INDEX <index_name>")
  216. insert into helpsql values("create index",5,"     ON [[<database.>]<owner.>]<table_name.> (<column_name>")
  217. go
  218. dump transaction master with truncate_only
  219. go
  220. insert into helpsql values("create index",6,"       [, <column_name>]...)")
  221. insert into helpsql values("create index",7,"       [WITH {FILLFACTOR = <x> , IGNORE_DUP_KEY, SORTED_DATA,")
  222. insert into helpsql values("create index",8,"         [IGNORE_DUP_ROW | ALLOW_DUP_ROW]}]")
  223. insert into helpsql values("create index",9,"     [ON <segment_name>]")
  224. insert into helpsql values("create index",10,"")
  225. insert into helpsql values("create procedure",1,"CREATE PROCEDURE")
  226. insert into helpsql values("create procedure",2,"Creates a stored procedure that can take one or more user-supplied")
  227. insert into helpsql values("create procedure",3,"parameters.")
  228. insert into helpsql values("create procedure",4,"")
  229. insert into helpsql values("create procedure",5,"   CREATE PROCedure [<owner.>]<procedure_name>[<;number>]")
  230. insert into helpsql values("create procedure",6,"       [[(]<@parameter_name> <datatype> [= <default>] [OUTput]")
  231. insert into helpsql values("create procedure",7,"       [, <@parameter_name> <datatype> [= <default>] [OUTput]]...[)]]")
  232. insert into helpsql values("create procedure",8,"     [WITH RECOMPILE]")
  233. insert into helpsql values("create procedure",9,"     AS <sql_statements>")
  234. insert into helpsql values("create procedure",10,"")
  235. insert into helpsql values("create rule",1,"CREATE RULE")
  236. insert into helpsql values("create rule",2,"Specifies the acceptable values for a particular column or")
  237. insert into helpsql values("create rule",3,"for any column of a specified user datatype.")
  238. insert into helpsql values("create rule",4,"")
  239. insert into helpsql values("create rule",5,"   CREATE RULE [<owner.>]<rule_name>")
  240. insert into helpsql values("create rule",6,"     AS <condition_expression>")
  241. insert into helpsql values("create rule",7,"")
  242. insert into helpsql values("create table",1,"CREATE TABLE")
  243. insert into helpsql values("create table",2,"Creates a table.")
  244. insert into helpsql values("create table",3,"")
  245. insert into helpsql values("create table",4,"   CREATE TABLE [[<database.>]<owner.>]<table_name>")
  246. insert into helpsql values("create table",5,"     (<column_name> <datatype> [NOT NULL | NULL]")
  247. insert into helpsql values("create table",6,"       [, <column_name> <datatype> [NOT NULL | NULL]]...)")
  248. insert into helpsql values("create table",7,"       [ON <segment_name>]")
  249. insert into helpsql values("create table",8,"")
  250. insert into helpsql values("create trigger",1,"CREATE TRIGGER")
  251. insert into helpsql values("create trigger",2,"Creates a trigger, which is a special kind of stored procedure often")
  252. insert into helpsql values("create trigger",3,"used for enforcing integrity constraints.")
  253. insert into helpsql values("create trigger",4,"")
  254. insert into helpsql values("create trigger",5,"   CREATE TRIGGER [<owner.>]<trigger_name>")
  255. insert into helpsql values("create trigger",6,"     ON [<owner.>]<table_name>")
  256. insert into helpsql values("create trigger",7,"     {FOR {INSERT, UPDATE, DELETE}]")
  257. insert into helpsql values("create trigger",8,"     AS <sql_statements> |")
  258. insert into helpsql values("create trigger",9,"     FOR {INSERT, UPDATE}")
  259. insert into helpsql values("create trigger",10,"     AS")
  260. insert into helpsql values("create trigger",11,"     IF UPDATE (<column_name>)")
  261. insert into helpsql values("create trigger",12,"     [{AND | OR} UPDATE (<column_name>)...] sql_statements}")
  262. insert into helpsql values("create trigger",13,"")
  263. insert into helpsql values("create view",1,"CREATE VIEW")
  264. insert into helpsql values("create view",2,"Creates a view.")
  265. go
  266. dump transaction master with truncate_only
  267. go
  268. insert into helpsql values("create view",3,"")
  269. insert into helpsql values("create view",4,"   CREATE VIEW [<owner.>]<view_name>")
  270. insert into helpsql values("create view",5,"     [(<column_name> [, <column_name>]...)]")
  271. insert into helpsql values("create view",6,"     AS <select_statement>")
  272. insert into helpsql values("create view",7,"")
  273. insert into helpsql values("dbcc",1,"DBCC")
  274. insert into helpsql values("dbcc",2,"Checks the logical and physical consistency of a database.")
  275. insert into helpsql values("dbcc",3,"")
  276. insert into helpsql values("dbcc",4,"   DBCC")
  277. insert into helpsql values("dbcc",5,"      {CHECKTABLE (<table_name>) | CHECKDB [(<database_name>)] |")
  278. insert into helpsql values("dbcc",6,"        CHECKALLOC [(<database_name>)] |")
  279. insert into helpsql values("dbcc",7,"        CHECKCATALOG [(<database_name>)] |")
  280. insert into helpsql values("dbcc",8,"        DBREPAIR (<database_name>, DROPDB) | ")
  281. insert into helpsql values("dbcc",9,"        MEMUSAGE | ALLOW11LOAD}")
  282. insert into helpsql values("dbcc",10,"")
  283. insert into helpsql values("declare",1,"DECLARE")
  284. insert into helpsql values("declare",2,"Declares the name and type of local variables for a batch or")
  285. insert into helpsql values("declare",3,"stored procedure.")
  286. insert into helpsql values("declare",4,"")
  287. insert into helpsql values("declare",5,"  DECLARE <@variable_name> <datatype> [, <@variable_name> <datatype>...]")
  288. insert into helpsql values("declare",6,"")
  289. insert into helpsql values("delete",1,"DELETE")
  290. insert into helpsql values("delete",2,"Removes rows from a table.")
  291. insert into helpsql values("delete",3,"")
  292. insert into helpsql values("delete",4,"   DELETE [[<database.>]<owner.>]{<table_name> | <view_name>}")
  293. insert into helpsql values("delete",5,"   [FROM [[<database.>]<owner.>]{<table_name> | <view_name>}")
  294. insert into helpsql values("delete",6,"   [, [[<database.>]<owner.>]{<table_name> | <view_name>}]...]")
  295. insert into helpsql values("delete",7,"       [WHERE <search_conditions>]")
  296. insert into helpsql values("delete",8,"")
  297. insert into helpsql values("delete",9,"   DELETE [FROM] [[<database.>]<owner.>]{<table_name> | <view_name>}")
  298. insert into helpsql values("delete",10,"       [WHERE <search_conditions>]")
  299. insert into helpsql values("delete",11,"")
  300. insert into helpsql values("disk init",1,"DISK INIT")
  301. insert into helpsql values("disk init",2,"Reserves and formats physical storage for a database device.")
  302. insert into helpsql values("disk init",3,"")
  303. insert into helpsql values("disk init",4,"   DISK INIT")
  304. insert into helpsql values("disk init",5,"      NAME = <'logical_name'> ,")
  305. insert into helpsql values("disk init",6,"      PHYSNAME = <'physical_name'> ,")
  306. insert into helpsql values("disk init",7,"      VDEVNO = <virtual_device_number> ,")
  307. insert into helpsql values("disk init",8,"      SIZE = <number_of_2K_blocks>")
  308. insert into helpsql values("disk init",9,"      [, VSTART = <virtual_address> ,")
  309. insert into helpsql values("disk init",10,"      CNTRLTYPE = <controller_number>]")
  310. insert into helpsql values("disk init",11,"")
  311. insert into helpsql values("disk mirror",1,"DISK MIRROR")
  312. insert into helpsql values("disk mirror",2,"Creates a software mirror of a user database device, the Master database")
  313. go
  314. dump transaction master with truncate_only
  315. go
  316. insert into helpsql values("disk mirror",3,"device, or a database device for user-database transaction logs.")
  317. insert into helpsql values("disk mirror",4,"")
  318. insert into helpsql values("disk mirror",5,"   DISK MIRROR")
  319. insert into helpsql values("disk mirror",6,"   NAME = <'logical_name'>,")
  320. insert into helpsql values("disk mirror",7,"   MIRROR = <physical_name'> [, WRITES = {SERIAL | NOSERIAL}]")
  321. insert into helpsql values("disk mirror",8,"")
  322. insert into helpsql values("disk refit",1,"DISK REFIT")
  323. insert into helpsql values("disk refit",2,"Restores a damaged Master database.  Used after DISK REINIT.")
  324. insert into helpsql values("disk refit",3,"")
  325. insert into helpsql values("disk refit",4,"   DISK REFIT")
  326. insert into helpsql values("disk refit",5,"")
  327. insert into helpsql values("disk reinit",1,"DISK REINIT")
  328. insert into helpsql values("disk reinit",2,"Part of the procedure that restores a damaged Master database.")
  329. insert into helpsql values("disk reinit",3,"")
  330. insert into helpsql values("disk reinit",4,"   DISK REINIT")
  331. insert into helpsql values("disk reinit",5,"      NAME = <'logical_name'> ,")
  332. insert into helpsql values("disk reinit",6,"      PHYSNAME = <'physical_name'> ,")
  333. insert into helpsql values("disk reinit",7,"      VDEVNO = <virtual_device_number> ,")
  334. insert into helpsql values("disk reinit",8,"      SIZE = <number_of_2K_blocks>")
  335. insert into helpsql values("disk reinit",9,"      [, VSTART = <virtual_address> ,")
  336. insert into helpsql values("disk reinit",10,"      CNTRLTYPE = <controller_number>]")
  337. insert into helpsql values("disk reinit",11,"")
  338. insert into helpsql values("disk remirror",1,"DISK REMIRROR")
  339. insert into helpsql values("disk remirror",2,"Resumes software mirroring for a database device.")
  340. insert into helpsql values("disk remirror",3,"")
  341. insert into helpsql values("disk remirror",4,"   DISK REMIRROR")
  342. insert into helpsql values("disk remirror",5,"   NAME = <'logical_name'>")
  343. insert into helpsql values("disk remirror",6,"")
  344. insert into helpsql values("disk unmirror",1,"DISK UNMIRROR")
  345. insert into helpsql values("disk unmirror",2,"Suspends software mirroring for a database device.")
  346. insert into helpsql values("disk unmirror",3,"")
  347. insert into helpsql values("disk unmirror",4,"   DISK UNMIRROR")
  348. insert into helpsql values("disk unmirror",5,"   NAME = <'logical_name'> [, SIDE = {PRIMARY | SECONDARY}]")
  349. insert into helpsql values("disk unmirror",6,"   [, MODE = {RETAIN | REMOVE}]")
  350. insert into helpsql values("disk unmirror",7,"")
  351. insert into helpsql values("drop database",1,"DROP DATABASE")
  352. insert into helpsql values("drop database",2,"Removes a database from SQL Server.")
  353. insert into helpsql values("drop database",3,"")
  354. insert into helpsql values("drop database",4,"   DROP DATABASE <database_name> [, <database_name>...]")
  355. insert into helpsql values("drop database",5,"")
  356. insert into helpsql values("drop default",1,"DROP DEFAULT")
  357. insert into helpsql values("drop default",2,"Removes a user-specified default from a database.")
  358. insert into helpsql values("drop default",3,"")
  359. insert into helpsql values("drop default",4,"   DROP DEFAULT [<owner.>]<default_name> [, [<owner.>]<default_name>...]")
  360. go
  361. dump transaction master with truncate_only
  362. go
  363. insert into helpsql values("drop default",5,"")
  364. insert into helpsql values("drop index",1,"DROP INDEX")
  365. insert into helpsql values("drop index",2,"Removes an index from a database.")
  366. insert into helpsql values("drop index",3,"")
  367. insert into helpsql values("drop index",4,"   DROP INDEX <table_name.><index_name> [, <table_name.><index_name>...]")
  368. insert into helpsql values("drop index",5,"")
  369. insert into helpsql values("drop procedure",1,"DROP PROCEDURE")
  370. insert into helpsql values("drop procedure",2,"Removes a user-created stored procedure from the current database.")
  371. insert into helpsql values("drop procedure",3,"")
  372. insert into helpsql values("drop procedure",4,"   DROP PROCedure [<owner>.]<procedure_name>")
  373. insert into helpsql values("drop procedure",5,"     [, [<owner>.]<procedure_name>...]")
  374. insert into helpsql values("drop procedure",6,"")
  375. insert into helpsql values("drop rule",1,"DROP RULE")
  376. insert into helpsql values("drop rule",2,"Removes a user-specified rule from a database.")
  377. insert into helpsql values("drop rule",3,"")
  378. insert into helpsql values("drop rule",4,"   DROP RULE [<owner.>]<rule_name> [, [<owner.>]<rule_name>...]")
  379. insert into helpsql values("drop rule",5,"")
  380. insert into helpsql values("drop table",1,"DROP TABLE")
  381. insert into helpsql values("drop table",2,"Removes a table definition and all data, indexes, triggers, and")
  382. insert into helpsql values("drop table",3,"permission specifications for a table from the database.")
  383. insert into helpsql values("drop table",4,"")
  384. insert into helpsql values("drop table",5,"   DROP TABLE [[<database.>]<owner.>]<table_name>")
  385. insert into helpsql values("drop table",6,"     [, [[<database.>]<owner.>]<table_name>...]")
  386. insert into helpsql values("drop table",7,"")
  387. insert into helpsql values("drop trigger",1,"DROP TRIGGER")
  388. insert into helpsql values("drop trigger",2,"Removes a trigger from a database.")
  389. insert into helpsql values("drop trigger",3,"")
  390. insert into helpsql values("drop trigger",4,"   DROP TRIGGER [<owner.>]<trigger_name> [, [<owner.>]<trigger_name>...]")
  391. insert into helpsql values("drop trigger",5,"")
  392. insert into helpsql values("drop view",1,"DROP VIEW")
  393. insert into helpsql values("drop view",2,"Removes a view from a database.")
  394. insert into helpsql values("drop view",3,"")
  395. insert into helpsql values("drop view",4,"   DROP VIEW [<owner.>]<view_name> [, [<owner.>]<view_name>...]")
  396. insert into helpsql values("drop view",5,"")
  397. insert into helpsql values("dump database",1,"DUMP DATABASE")
  398. insert into helpsql values("dump database",2,"Makes a backup copy of a database and its transaction log.")
  399. insert into helpsql values("dump database",3,"")
  400. insert into helpsql values("dump database",4,"   DUMP DATABASE <database_name>")
  401. insert into helpsql values("dump database",5,"     TO <dump_device>")
  402. insert into helpsql values("dump database",6,"")
  403. insert into helpsql values("dump transaction",1,"DUMP TRANSACTION")
  404. insert into helpsql values("dump transaction",2,"Makes a backup copy of the transaction log.")
  405. insert into helpsql values("dump transaction",3,"")
  406. insert into helpsql values("dump transaction",4,"   DUMP TRANsaction <database_name>")
  407. go
  408. dump transaction master with truncate_only
  409. go
  410. insert into helpsql values("dump transaction",5,"     [TO <dump_device>]")
  411. insert into helpsql values("dump transaction",6,"     [WITH TRUNCATE_ONLY | WITH NO_LOG | WITH NO_TRUNCATE]")
  412. insert into helpsql values("dump transaction",7,"")
  413. insert into helpsql values("execute",1,"EXECUTE")
  414. insert into helpsql values("execute",2,"Runs a system procedure or a user-defined stored procedure.")
  415. insert into helpsql values("execute",3,"")
  416. insert into helpsql values("execute",4,"   [EXECute] [@return_status =]")
  417. insert into helpsql values("execute",5,"     [[[server.]<database.>]<owner.>]<procedure_name>[<;number>]")
  418. insert into helpsql values("execute",6,"     [[<@parameter_name> =] {<value> | @variable [OUTput]}")
  419. insert into helpsql values("execute",7,"     [, [<@parameter_name> =] {<value> | @variable [OUTput]}]...]")
  420. insert into helpsql values("execute",8,"     [WITH RECOMPILE]")
  421. insert into helpsql values("execute",9,"")
  422. insert into helpsql values("goto",1,"GOTO")
  423. insert into helpsql values("goto",2,"Causes an unconditional branching to a user-defined label.")
  424. insert into helpsql values("goto",3,"")
  425. insert into helpsql values("goto",4,"   <label:>")
  426. insert into helpsql values("goto",5,"   GOTO <label>")
  427. insert into helpsql values("goto",6,"")
  428. insert into helpsql values("grant",1,"GRANT")
  429. insert into helpsql values("grant",2,"Assigns object and statement permissions to users.")
  430. insert into helpsql values("grant",3,"")
  431. insert into helpsql values("grant",4,"   Object permissions:")
  432. insert into helpsql values("grant",5,"")
  433. insert into helpsql values("grant",6,"   GRANT {ALL | <permission_list>}")
  434. insert into helpsql values("grant",7,"    ON {<table_name> [(<column_list>)] | <view_name> [(<column_list>)] |")
  435. insert into helpsql values("grant",8,"       <stored_procedure_name>}")
  436. insert into helpsql values("grant",9,"    TO {PUBLIC | <name_list>}")
  437. insert into helpsql values("grant",10,"")
  438. insert into helpsql values("grant",11,"   Statement permissions:")
  439. insert into helpsql values("grant",12,"")
  440. insert into helpsql values("grant",13,"   GRANT {ALL | <statement_list>}")
  441. insert into helpsql values("grant",14,"     TO {PUBLIC | <name_list>}")
  442. insert into helpsql values("grant",15,"")
  443. insert into helpsql values("group by",1,"GROUP BY")
  444. insert into helpsql values("group by",2,"Divides a table into groups.")
  445. insert into helpsql values("group by",3,"")
  446. insert into helpsql values("group by",4,"   See SELECT for syntax.")
  447. insert into helpsql values("group by",5,"")
  448. insert into helpsql values("having",1,"HAVING")
  449. insert into helpsql values("having",2,"Divides a table into groups.")
  450. insert into helpsql values("having",3,"")
  451. insert into helpsql values("having",4,"   See SELECT for syntax.")
  452. insert into helpsql values("having",5,"")
  453. insert into helpsql values("if...else",1,"IF...ELSE")
  454. go
  455. dump transaction master with truncate_only
  456. go
  457. insert into helpsql values("if...else",2,"Impose conditions on the execution of a SQL statement.")
  458. insert into helpsql values("if...else",3,"")
  459. insert into helpsql values("if...else",4,"   IF")
  460. insert into helpsql values("if...else",5,"     <boolean_expression>")
  461. insert into helpsql values("if...else",6,"     <sql_statement>")
  462. insert into helpsql values("if...else",7,"     [ELSE")
  463. insert into helpsql values("if...else",8,"     [<boolean_expression>]")
  464. insert into helpsql values("if...else",9,"     <sql_statement>]")
  465. insert into helpsql values("if...else",10,"")
  466. insert into helpsql values("insert",1,"INSERT")
  467. insert into helpsql values("insert",2,"Adds a new row to a table or view.")
  468. insert into helpsql values("insert",3,"")
  469. insert into helpsql values("insert",4,"   INSERT [INTO]")
  470. insert into helpsql values("insert",5,"   [[<database.>]<owner.>]{<table_name> | <view_name>}")
  471. insert into helpsql values("insert",6,"       [(<column_list>)]")
  472. insert into helpsql values("insert",7,"     {VALUES (<constant_expression> [, <constant_expression>]...) |")
  473. insert into helpsql values("insert",8,"       <select_statement>}")
  474. insert into helpsql values("insert",9,"")
  475. insert into helpsql values("kill",1,"KILL")
  476. insert into helpsql values("kill",2,"Terminates a process.")
  477. insert into helpsql values("kill",3,"")
  478. insert into helpsql values("kill",4,"   KILL <spid>")
  479. insert into helpsql values("kill",5,"")
  480. insert into helpsql values("load database",1,"LOAD DATABASE")
  481. insert into helpsql values("load database",2,"Loads a backup copy of a user database and its transaction log.")
  482. insert into helpsql values("load database",3,"")
  483. insert into helpsql values("load database",4,"   LOAD DATABASE <database_name>")
  484. insert into helpsql values("load database",5,"     FROM <dump_device>")
  485. insert into helpsql values("load database",6,"")
  486. insert into helpsql values("load transaction",1,"LOAD TRANSACTION")
  487. insert into helpsql values("load transaction",2,"Loads a backup copy of the transaction log.")
  488. insert into helpsql values("load transaction",3,"")
  489. insert into helpsql values("load transaction",4,"   LOAD TRANsaction <database_name>")
  490. insert into helpsql values("load transaction",5,"     FROM <dump_device>")
  491. insert into helpsql values("load transaction",6,"")
  492. insert into helpsql values("order by",1,"ORDER BY")
  493. insert into helpsql values("order by",2,"Returns query results in the specified column(s) in sorted order.")
  494. insert into helpsql values("order by",3,"")
  495. insert into helpsql values("order by",4,"   See SELECT for syntax.")
  496. insert into helpsql values("order by",5,"")
  497. insert into helpsql values("prepare transaction",1,"PREPARE TRANSACTION")
  498. insert into helpsql values("prepare transaction",2,"Sees if a server is prepared to commit a transaction.")
  499. insert into helpsql values("prepare transaction",3,"")
  500. insert into helpsql values("prepare transaction",4,"   PREPARE TRANsaction")
  501. go
  502. dump transaction master with truncate_only
  503. go
  504. insert into helpsql values("prepare transaction",5,"")
  505. insert into helpsql values("print",1,"PRINT")
  506. insert into helpsql values("print",2,"Returns a user-defined message.")
  507. insert into helpsql values("print",3,"")
  508. insert into helpsql values("print",4,"   PRINT <'any_ASCII_text'> | <@local_variable> |")
  509. insert into helpsql values("print",5,"       <@@global_variable>")
  510. insert into helpsql values("print",6,"")
  511. insert into helpsql values("raiserror",1,"RAISERROR")
  512. insert into helpsql values("raiserror",2,"Returns a user-defined error message and sets a")
  513. insert into helpsql values("raiserror",3,"system flag to record that an error has occurred.")
  514. insert into helpsql values("raiserror",4,"")
  515. insert into helpsql values("raiserror",5,"   RAISERROR <integer_expression> {<'text of message'> |")
  516. insert into helpsql values("raiserror",6,"     <@local_variable>}")
  517. insert into helpsql values("raiserror",7,"")
  518. insert into helpsql values("readtext",1,"READTEXT")
  519. insert into helpsql values("readtext",2,"Reads Text and Image values, starting from a specified offset and")
  520. insert into helpsql values("readtext",3,"reading a specified number of bytes.")
  521. insert into helpsql values("readtext",4,"")
  522. insert into helpsql values("readtext",5,"   READTEXT [[<database.>]<owner.>]<table_name.><column_name>")
  523. insert into helpsql values("readtext",6,"     <text_pointer> <offset> <size>")
  524. insert into helpsql values("readtext",7,"     [HOLDLOCK]")
  525. insert into helpsql values("readtext",8,"")
  526. insert into helpsql values("reconfigure",1,"RECONFIGURE")
  527. insert into helpsql values("reconfigure",2,"Part of the procedure that sets configuration options, which control")
  528. insert into helpsql values("reconfigure",3,"various aspects of SQL Server's memory allocation and performance.")
  529. insert into helpsql values("reconfigure",4,"")
  530. insert into helpsql values("reconfigure",5,"   RECONFIGURE [WITH OVERRIDE]")
  531. insert into helpsql values("reconfigure",6,"")
  532. insert into helpsql values("return",1,"RETURN")
  533. insert into helpsql values("return",2,"Exits unconditionally from a query or procedure.")
  534. insert into helpsql values("return",3,"")
  535. insert into helpsql values("return",4,"   RETURN [integer_expression]")
  536. insert into helpsql values("return",5,"")
  537. insert into helpsql values("revoke",1,"REVOKE")
  538. insert into helpsql values("revoke",2,"Revokes object and statement permissions from a user.")
  539. insert into helpsql values("revoke",3,"")
  540. insert into helpsql values("revoke",4,"   Object permissions:")
  541. insert into helpsql values("revoke",5,"")
  542. insert into helpsql values("revoke",6,"   REVOKE {ALL | <permission_list>}")
  543. insert into helpsql values("revoke",7,"     ON {<table_name> [(<column_list>)] | <view_name>")
  544. insert into helpsql values("revoke",8,"       [(<column_list>)] | <stored_procedure_name>}")
  545. insert into helpsql values("revoke",9,"     FROM {PUBLIC | <name_list>}")
  546. insert into helpsql values("revoke",10,"")
  547. insert into helpsql values("revoke",11,"   Statement permissions:")
  548. go
  549. dump transaction master with truncate_only
  550. go
  551. insert into helpsql values("revoke",12,"")
  552. insert into helpsql values("revoke",13,"   REVOKE {ALL | <statement_list>}")
  553. insert into helpsql values("revoke",14,"     FROM {PUBLIC | <name_list>}")
  554. insert into helpsql values("revoke",15,"")
  555. insert into helpsql values("rollback transaction",1,"ROLLBACK TRANSACTION")
  556. insert into helpsql values("rollback transaction",2,"Rolls back a user-specified transaction to the last savepoint inside a")
  557. insert into helpsql values("rollback transaction",3,"transaction or to the beginning of a transaction.")
  558. insert into helpsql values("rollback transaction",4,"")
  559. insert into helpsql values("rollback transaction",5,"   ROLLBACK TRANsaction [<transaction_name> | <savepoint_name>]")
  560. insert into helpsql values("rollback transaction",6,"")
  561. insert into helpsql values("save transaction",1,"SAVE TRANSACTION")
  562. insert into helpsql values("save transaction",2,"Sets a savepoint within a transaction.")
  563. insert into helpsql values("save transaction",3,"")
  564. insert into helpsql values("save transaction",4,"   SAVE TRANsaction <savepoint_name>")
  565. insert into helpsql values("save transaction",5,"")
  566. insert into helpsql values("select",1,"SELECT")
  567. insert into helpsql values("select",2,"Retrieves rows from database tables.")
  568. insert into helpsql values("select",3,"")
  569. insert into helpsql values("select",4,"   SELECT [ALL | DISTINCT] <select_list>")
  570. insert into helpsql values("select",5,"    [INTO [[<database.>]<owner.>]<table_name>]")
  571. insert into helpsql values("select",6,"    [FROM [[<database.>]<owner.>]{<table_name> | <view_name>} [HOLDLOCK]")
  572. insert into helpsql values("select",7,"       [,[[<database.>]<owner.>]{<table_name> | <view_name>}")
  573. insert into helpsql values("select",8,"       [HOLDLOCK]]...]")
  574. insert into helpsql values("select",9,"    [WHERE <search_conditions>]")
  575. insert into helpsql values("select",10,"    [GROUP BY [ALL]")
  576. insert into helpsql values("select",11,"       <aggregate_free_expression>")
  577. insert into helpsql values("select",12,"       [, <aggregate_free_expression>]...]")
  578. insert into helpsql values("select",13,"    [HAVING <search_conditions>]")
  579. insert into helpsql values("select",14,"    [ORDER BY {[[[<database.>]<owner.>]{<table_name.> | <view_name.>}]")
  580. insert into helpsql values("select",15,"       <column_name> | <select_list_number> | <expression> [ASC | DESC]")
  581. insert into helpsql values("select",16,"       [,[[[<database.>]<owner.>]{<table_name.> | <view_name.>}]")
  582. insert into helpsql values("select",17,"       <column_name> | <select_list_number> | <expression>}")
  583. insert into helpsql values("select",18,"       [ASC | DESC]]...]")
  584. insert into helpsql values("select",19,"    [COMPUTE <row_aggregate>(<column_name>)")
  585. insert into helpsql values("select",20,"       [, <row_aggregate>(<column_name>)...]]")
  586. insert into helpsql values("select",21,"     [BY <column_name> [, <column_name>]...]")
  587. insert into helpsql values("select",22,"    [FOR BROWSE]")
  588. insert into helpsql values("select",23,"")
  589. insert into helpsql values("set",1,"SET")
  590. insert into helpsql values("set",2,"Sets SQL Server query-processing options for the duration of the")
  591. insert into helpsql values("set",3,"user's work session, or inside a trigger or stored procedure.")
  592. insert into helpsql values("set",4,"")
  593. insert into helpsql values("set",5,"   SET")
  594. insert into helpsql values("set",6,"      {{ARITHABORT | ARITHIGNORE |")
  595. insert into helpsql values("set",7,"       NOCOUNT | NOEXEC |")
  596. insert into helpsql values("set",8,"       OFFSETS {<keyword_list>} | PARSEONLY | PROCID |")
  597. go
  598. dump transaction master with truncate_only
  599. go
  600. insert into helpsql values("set",9,"       SHOWPLAN | FORCEPLAN | STATISTICS IO | STATISTICS TIME}")
  601. insert into helpsql values("set",10,"          {ON | OFF} |")
  602. insert into helpsql values("set",11,"          DATEFIRST <number> | DATEFORMAT <format> |")
  603. insert into helpsql values("set",12,"          LANGUAGE <language> | ROWCOUNT <number> |")
  604. insert into helpsql values("set",13,"          TEXTSIZE <number>}")
  605. insert into helpsql values("set",14,"")
  606. insert into helpsql values("setuser",1,"SETUSER")
  607. insert into helpsql values("setuser",2,"Impersonates another user.")
  608. insert into helpsql values("setuser",3,"")
  609. insert into helpsql values("setuser",4,"   SETUSER [<'username'>]")
  610. insert into helpsql values("setuser",5,"")
  611. insert into helpsql values("shutdown",1,"SHUTDOWN")
  612. insert into helpsql values("shutdown",2,"Brings the system to a halt.")
  613. insert into helpsql values("shutdown",3,"")
  614. insert into helpsql values("shutdown",4,"   SHUTDOWN [WITH NOWAIT]")
  615. insert into helpsql values("shutdown",5,"")
  616. insert into helpsql values("truncate table",1,"TRUNCATE TABLE")
  617. insert into helpsql values("truncate table",2,"Removes all rows in a table as quickly as possible.")
  618. insert into helpsql values("truncate table",3,"")
  619. insert into helpsql values("truncate table",4,"   TRUNCATE TABLE [[<database.>]<owner.>]<table_name>")
  620. insert into helpsql values("truncate table",5,"")
  621. insert into helpsql values("union",1,"UNION Operator")
  622. insert into helpsql values("union",2,"Combines the results of two or more queries into a single results set")
  623. insert into helpsql values("union",3,"consisting of all the rows belonging to A or B or both.")
  624. insert into helpsql values("union",4,"")
  625. insert into helpsql values("union",5,"   SELECT <select_list> [INTO <clause>]")
  626. insert into helpsql values("union",6,"   [FROM <clause>] [WHERE <clause>]")
  627. insert into helpsql values("union",7,"   [GROUP BY <clause>] [HAVING <clause>]...]")
  628. insert into helpsql values("union",8,"")
  629. insert into helpsql values("union",9,"   [UNION [ALL]")
  630. insert into helpsql values("union",10,"   SELECT <select_list>")
  631. insert into helpsql values("union",11,"   [FROM <clause>] [WHERE <clause>]")
  632. insert into helpsql values("union",12,"   [GROUP BY <clause>] [HAVING <clause>]...]")
  633. insert into helpsql values("union",13,"   [ORDER BY <clause>]")
  634. insert into helpsql values("union",14,"   [COMPUTE <clause>]")
  635. insert into helpsql values("union",15,"")
  636. insert into helpsql values("update",1,"UPDATE")
  637. insert into helpsql values("update",2,"Changes data in existing rows,")
  638. insert into helpsql values("update",3,"either by adding new data or modifying existing data.")
  639. insert into helpsql values("update",4,"")
  640. insert into helpsql values("update",5,"   UPDATE [[<database.>]<owner.>]{<table_name> | <view_name>}")
  641. insert into helpsql values("update",6,"     SET [[[<database.>]<owner.>]{<table_name.> | <view_name.>}]")
  642. insert into helpsql values("update",7,"       <column_name1> = {<expression1> | NULL} | (select_statement)}")
  643. insert into helpsql values("update",8,"       [, <column_name2> = {<expression2> | NULL |")
  644. insert into helpsql values("update",9,"       (select_statement)}...]")
  645. go
  646. dump transaction master with truncate_only
  647. go
  648. insert into helpsql values("update",10,"     [FROM [[<database.>]<owner.>]{<table_name> | <view_name>}")
  649. insert into helpsql values("update",11,"       [, [[<database.>]<owner.>]{<table_name> | <view_name>}]...]")
  650. insert into helpsql values("update",12,"     [WHERE <search_conditions>]")
  651. insert into helpsql values("update",13,"")
  652. insert into helpsql values("update statistics",1,"UPDATE STATISTICS")
  653. insert into helpsql values("update statistics",2,"Updates information about the distribution of key values in specified")
  654. insert into helpsql values("update statistics",3,"indexes.")
  655. insert into helpsql values("update statistics",4,"")
  656. insert into helpsql values("update statistics",5,"   UPDATE STATISTICS [[<database.>]<owner.>]<table_name> [<index_name>]")
  657. insert into helpsql values("update statistics",6,"")
  658. insert into helpsql values("use",1,"USE")
  659. insert into helpsql values("use",2,"Sets the current database.")
  660. insert into helpsql values("use",3,"")
  661. insert into helpsql values("use",4,"   USE <database_name>")
  662. insert into helpsql values("use",5,"")
  663. insert into helpsql values("waitfor",1,"WAITFOR")
  664. insert into helpsql values("waitfor",2,"Specifies a time, a time interval, or an event for ")
  665. insert into helpsql values("waitfor",3,"executing a statement block, stored procedure, or transaction.")
  666. insert into helpsql values("waitfor",4,"")
  667. insert into helpsql values("waitfor",5,"   WAITFOR {DELAY <'time'> | TIME <'time'> | ERROREXIT | PROCESSEXIT |")
  668. insert into helpsql values("waitfor",6,"     MIRROREXIT}")
  669. insert into helpsql values("waitfor",7,"")
  670. insert into helpsql values("where",1,"WHERE Clause")
  671. insert into helpsql values("where",2,"Specifies the connection between tables named in a FROM clause, and")
  672. insert into helpsql values("where",3,"restricts the rows to be included in the results.")
  673. insert into helpsql values("where",4,"")
  674. insert into helpsql values("where",5," WHERE [NOT] <expression> <comparison_operator> <expression>")
  675. insert into helpsql values("where",6," WHERE [NOT] <column_name> [NOT] LIKE <'match_string'>")
  676. insert into helpsql values("where",7," WHERE [NOT] <column_name> IS [NOT] NULL")
  677. insert into helpsql values("where",8," WHERE [NOT] <expression> [NOT] BETWEEN <expression> AND <expression>")
  678. insert into helpsql values("where",9," WHERE [NOT] <expression> [NOT] IN ({<value_list> | <subquery>})")
  679. insert into helpsql values("where",10," WHERE [NOT] EXISTS (<subquery>)")
  680. insert into helpsql values("where",11," WHERE [NOT] <expression> <comparison_operator> {ANY | ALL} (<subquery>)")
  681. insert into helpsql values("where",12," WHERE [NOT] <column_name> <join_operator> <column_name>")
  682. insert into helpsql values("where",13," WHERE [NOT] <boolean_expression>")
  683. insert into helpsql values("where",14," WHERE [NOT] <expression> {AND | OR} [NOT] <expression>")
  684. insert into helpsql values("where",15,"")
  685. insert into helpsql values("while",1,"WHILE")
  686. insert into helpsql values("while",2,"Sets a condition for the repeated execution of a statement or")
  687. insert into helpsql values("while",3,"statement block.")
  688. insert into helpsql values("while",4,"")
  689. insert into helpsql values("while",5,"   WHILE")
  690. insert into helpsql values("while",6,"     <boolean_expression>")
  691. insert into helpsql values("while",7,"     <sql_statement>")
  692. go
  693. dump transaction master with truncate_only
  694. go
  695. insert into helpsql values("while",8,"")
  696. insert into helpsql values("writetext",1,"WRITETEXT")
  697. insert into helpsql values("writetext",2,"Permits nonlogged, interactive updating of an existing text field.")
  698. insert into helpsql values("writetext",3,"")
  699. insert into helpsql values("writetext",4," WRITETEXT [[<database.>]<owner.>]<table_name.><column_name> <text_ptr>")
  700. insert into helpsql values("writetext",5,"     [WITH LOG] <data>")
  701. insert into helpsql values("writetext",6,"")
  702. insert into helpsql values("datatype",1,"Datatype")
  703. insert into helpsql values("datatype",2,"Datatype                   Definition")
  704. insert into helpsql values("datatype",3,"")
  705. insert into helpsql values("datatype",4,"Binary(n)                 Fixed-length binary data. Maximum")
  706. insert into helpsql values("datatype",5,"                          length=255 bytes.")
  707. insert into helpsql values("datatype",6,"Bit                       A column that holds either 0 or 1.")
  708. insert into helpsql values("datatype",7,"Char(n)                   Character data. Maximum length=255")
  709. insert into helpsql values("datatype",8,"                          bytes.")
  710. insert into helpsql values("datatype",9,"Datetime                  Dates and times with accuracy to milliseconds.")
  711. insert into helpsql values("datatype",10,"Float                     Floating-point numbers.")
  712. insert into helpsql values("datatype",11,"Image                     Large amounts of binary data (up to")
  713. insert into helpsql values("datatype",12,"                          2,147,483,647 characters.)")
  714. insert into helpsql values("datatype",13,"Int                       Integers between 2,147,483,647 and")
  715. insert into helpsql values("datatype",14,"                          -2,147,483,648.")
  716. insert into helpsql values("datatype",15,"Money                     Dollar and cent values.")
  717. insert into helpsql values("datatype",16,"Real                      Floating point numbers with 7-digit precision.")
  718. insert into helpsql values("datatype",17,"Smalldatetime             Dates and times with accuracy to the minute.")
  719. insert into helpsql values("datatype",18,"Smallint                  Integers between 32,767 and -32,768.")
  720. insert into helpsql values("datatype",19,"Smallmoney                Monetary values between 214,748.3647 and")
  721. insert into helpsql values("datatype",20,"                          -214,748.3648.")
  722. insert into helpsql values("datatype",21,"Text                      Large amounts of character data (up to")
  723. insert into helpsql values("datatype",22,"                          2,147,483,647 characters.)")
  724. insert into helpsql values("datatype",23,"Timestamp                 Automatically updated when you")
  725. insert into helpsql values("datatype",24,"                          insert or update a row that has a timestamp")
  726. insert into helpsql values("datatype",25,"                          column, or use BROWSE mode in a")
  727. insert into helpsql values("datatype",26,"                          DB-LIBRARY application.")
  728. insert into helpsql values("datatype",27,"Tinyint                   Whole integers between 0 and 255.")
  729. insert into helpsql values("datatype",28,"Varbinary(n)              Variable-length binary data. Max")
  730. insert into helpsql values("datatype",29,"                          length=255 bytes.")
  731. insert into helpsql values("datatype",30,"Varchar(n)                Variable-length character data. Max")
  732. insert into helpsql values("datatype",31,"                          length=255 bytes.")
  733. insert into helpsql values("datatype",32,"")
  734. insert into helpsql values("expression syntax",1,"Expression Syntax")
  735. insert into helpsql values("expression syntax",2,"{<constant> | <column_name> | <function> | (<subquery>)}")
  736. insert into helpsql values("expression syntax",3,"    [{<arithmetic_operator> | <bitwise_operator> | <string_operator>}")
  737. insert into helpsql values("expression syntax",4,"    {<constant> | <column_name> | <function> | (<subquery>)}...]")
  738. insert into helpsql values("expression syntax",5,"")
  739. go
  740. dump transaction master with truncate_only
  741. go
  742. insert into helpsql values("expression syntax",6,"Boolean expression")
  743. insert into helpsql values("expression syntax",7,"Returns true or false.")
  744. insert into helpsql values("expression syntax",8,"")
  745. insert into helpsql values("expression syntax",9,"Boolean Expression Syntax")
  746. insert into helpsql values("expression syntax",10,"<expression> <comparison_operator> [ANY | ALL] <expression>")
  747. insert into helpsql values("expression syntax",11,"  <expression> [NOT] IN <expression>")
  748. insert into helpsql values("expression syntax",12,"  [NOT] EXISTS <expression>")
  749. insert into helpsql values("expression syntax",13,"  <expression> [NOT] BETWEEN <expression> AND <expression>")
  750. insert into helpsql values("expression syntax",14,"  <expression> [NOT] LIKE <expression>")
  751. insert into helpsql values("expression syntax",15,"  NOT <expression> LIKE <expression>")
  752. insert into helpsql values("expression syntax",16,"  <expression> IS [NOT] NULL")
  753. insert into helpsql values("expression syntax",17,"  NOT <boolean_expression>")
  754. insert into helpsql values("expression syntax",18,"  <boolean_expression> {AND | OR} <boolean_expression>")
  755. insert into helpsql values("expression syntax",19,"  [NOT] <boolean_function>")
  756. insert into helpsql values("expression syntax",20,"")
  757. insert into helpsql values("expression syntax",21,"arithmetic_operator             bitwise_operator")
  758. insert into helpsql values("expression syntax",22,"")
  759. insert into helpsql values("expression syntax",23,"Symbol  Meaning                 Symbol  Meaning")
  760. insert into helpsql values("expression syntax",24,"")
  761. insert into helpsql values("expression syntax",25," +      addition                &      bitwise AND (two")
  762. insert into helpsql values("expression syntax",26," -      subtraction                    operands)")
  763. insert into helpsql values("expression syntax",27," *      multiplication          |      bitwise OR (two operands)")
  764. insert into helpsql values("expression syntax",28," /      division                ^      bitwise exclusive OR (two")
  765. insert into helpsql values("expression syntax",29," %      modulo                         operands)")
  766. insert into helpsql values("expression syntax",30,"                                ~      bitwise NOT (one operand)")
  767. insert into helpsql values("expression syntax",31,"")
  768. insert into helpsql values("expression syntax",32,"string_operator")
  769. insert into helpsql values("expression syntax",33,"")
  770. insert into helpsql values("expression syntax",34," +      concatenation")
  771. insert into helpsql values("expression syntax",35,"")
  772. insert into helpsql values("expression syntax",36,"comparison_operator")
  773. insert into helpsql values("expression syntax",37,"")
  774. insert into helpsql values("expression syntax",38,"Symbol   Meaning")
  775. insert into helpsql values("expression syntax",39,"")
  776. insert into helpsql values("expression syntax",40," =       equal to")
  777. insert into helpsql values("expression syntax",41," >       greater than")
  778. insert into helpsql values("expression syntax",42," <       less than")
  779. insert into helpsql values("expression syntax",43," >=      greater than or equal to")
  780. insert into helpsql values("expression syntax",44," <=      less than or equal to")
  781. insert into helpsql values("expression syntax",45," <>      not equal to")
  782. insert into helpsql values("expression syntax",46," !=      not equal to")
  783. insert into helpsql values("expression syntax",47," !>      not greater than")
  784. insert into helpsql values("expression syntax",48," !<      not less than")
  785. insert into helpsql values("expression syntax",49,"")
  786. go
  787. dump transaction master with truncate_only
  788. go
  789. insert into helpsql values("like and wildcards",1,"LIKE and WILDCARDS")
  790. insert into helpsql values("like and wildcards",2,"LIKE is available for char, varchar, and datetime columns.  It can be")
  791. insert into helpsql values("like and wildcards",3,"used with these wildcards:")
  792. insert into helpsql values("like and wildcards",4,"")
  793. insert into helpsql values("like and wildcards",5,"Wildcard       Meaning")
  794. insert into helpsql values("like and wildcards",6,"")
  795. insert into helpsql values("like and wildcards",7," %             any string of 0 or more characters")
  796. insert into helpsql values("like and wildcards",8," _             any single character")
  797. insert into helpsql values("like and wildcards",9," [ ]           any single character within the specified range")
  798. insert into helpsql values("like and wildcards",10,"               ([a-f]) or set ([abcdef])")
  799. insert into helpsql values("like and wildcards",11," [^]           any single character not within the specified")
  800. insert into helpsql values("like and wildcards",12,"               range ([^a-f]) or set ([^abcdef])")
  801. insert into helpsql values("like and wildcards",13,"")
  802. insert into helpsql values("like and wildcards",14,"Enclose the wildcard and the string in single quotation marks.")
  803. insert into helpsql values("like and wildcards",15,"")
  804. insert into helpsql values("functions",1,"FUNCTIONS")
  805. insert into helpsql values("functions",2,"Return special information from the database.  Functions are")
  806. insert into helpsql values("functions",3,"used in SELECT statements and are divided into aggregate functions,")
  807. insert into helpsql values("functions",4,"date functions, mathematical functions, string functions, system")
  808. insert into helpsql values("functions",5,"functions, text/image functions, and type-converion functions.  Each")
  809. insert into helpsql values("functions",6,"of these groups is described separately within the online help.")
  810. insert into helpsql values("functions",7,"")
  811. insert into helpsql values("functions",8,"Help is available for the following function groups:")
  812. insert into helpsql values("functions",9,"")
  813. insert into helpsql values("functions",10,"AGGREGATE    DATE    MATH    STRING    SYSTEM    TEXT    CONVERSION")
  814. insert into helpsql values("aggregate functions",1,"AGGREGATE FUNCTIONS")
  815. insert into helpsql values("aggregate functions",2,"Return summary values.  They can be used in the select")
  816. insert into helpsql values("aggregate functions",3,"list or the HAVING clause of a SELECT statement or subquery,")
  817. insert into helpsql values("aggregate functions",4,"and often appear in a statement that includes a GROUP BY")
  818. insert into helpsql values("aggregate functions",5,"clause.  (A similar type of aggregate function, called a")
  819. insert into helpsql values("aggregate functions",6,"row aggregate function, is used in the COMPUTE clause.)")
  820. insert into helpsql values("aggregate functions",7,"")
  821. insert into helpsql values("aggregate functions",8,"Help is available for the following aggregate functions:")
  822. insert into helpsql values("aggregate functions",9,"")
  823. insert into helpsql values("aggregate functions",10,"SUM     AVG     COUNT     COUNT(*)     MAX     MIN")
  824. insert into helpsql values("sum function",1,"SUM")
  825. insert into helpsql values("sum function",2,"Returns the total of the [DISTINCT] non-null values in the")
  826. insert into helpsql values("sum function",3,"numeric expression.")
  827. insert into helpsql values("sum function",4,"")
  828. insert into helpsql values("sum function",5,"    SUM([DISTINCT] <expression>)")
  829. insert into helpsql values("avg function",1,"AVG")
  830. insert into helpsql values("avg function",2,"Returns the average of the [DISTINCT] non-null values in the ")
  831. insert into helpsql values("avg function",3,"numeric expression.")
  832. insert into helpsql values("avg function",4,"")
  833. go
  834. dump transaction master with truncate_only
  835. go
  836. insert into helpsql values("avg function",5,"    AVG([DISTINCT] <expression>)")
  837. insert into helpsql values("count function",1,"COUNT")
  838. insert into helpsql values("count function",2,"Returns the number of [DISTINCT] non-null values in")
  839. insert into helpsql values("count function",3,"the expression.")
  840. insert into helpsql values("count function",4,"")
  841. insert into helpsql values("count function",5,"    COUNT([DISTINCT]<expression> )")
  842. insert into helpsql values("count(*) function",1,"COUNT(*)")
  843. insert into helpsql values("count(*) function",2,"Returns the number of selected rows.")
  844. insert into helpsql values("count(*) function",3,"")
  845. insert into helpsql values("count(*) function",4,"COUNT(*)")
  846. insert into helpsql values("max function",1,"MAX")
  847. insert into helpsql values("max function",2,"Returns the highest value in the expression.")
  848. insert into helpsql values("max function",3,"")
  849. insert into helpsql values("max function",4,"    MAX(<expression>)")
  850. insert into helpsql values("min function",1,"MIN")
  851. insert into helpsql values("min function",2,"Returns the lowest value in the expression.")
  852. insert into helpsql values("min function",3,"")
  853. insert into helpsql values("min function",4,"    MIN(<expression>)")
  854. insert into helpsql values("conversion function",1,"CONVERSION FUNCTION")
  855. insert into helpsql values("conversion function",2,"Converts expressions of one datatype to another.  Also")
  856. insert into helpsql values("conversion function",3,"obtains a variety of special date formats.")
  857. insert into helpsql values("conversion function",4,"")
  858. insert into helpsql values("conversion function",5,"CONVERT(<datatype> [(<length>)], <expression> [, <style>])")
  859. insert into helpsql values("date functions",1,"DATE FUNCTIONS")
  860. insert into helpsql values("date functions",2,"Manipulate datetime values.")
  861. insert into helpsql values("date functions",3,"")
  862. insert into helpsql values("date functions",4,"Dates are made up of the following parts:")
  863. insert into helpsql values("date functions",5,"")
  864. insert into helpsql values("date functions",6,"Date Part     Abbreviation      Values")
  865. insert into helpsql values("date functions",7,"")
  866. insert into helpsql values("date functions",8,"year          yy                1753 - 9999")
  867. insert into helpsql values("date functions",9,"quarter       qq                1 - 4")
  868. insert into helpsql values("date functions",10,"month         mm                1 - 12")
  869. insert into helpsql values("date functions",11,"day of year   dy                1 - 366")
  870. insert into helpsql values("date functions",12,"day           dd                1 - 31")
  871. insert into helpsql values("date functions",13,"weekday       dw                1 - 7")
  872. insert into helpsql values("date functions",14,"week          wk                1 - 53")
  873. insert into helpsql values("date functions",15,"hour          hh                0 - 23")
  874. insert into helpsql values("date functions",16,"minute        mi                0 - 59")
  875. insert into helpsql values("date functions",17,"second        ss                0 - 59")
  876. insert into helpsql values("date functions",18,"millisecond   ms                0 - 999")
  877. insert into helpsql values("date functions",19,"")
  878. insert into helpsql values("date functions",20,"Help is available on the following date functions:")
  879. insert into helpsql values("date functions",21,"")
  880. go
  881. dump transaction master with truncate_only
  882. go
  883. insert into helpsql values("date functions",22,"GETDATE     DATENAME     DATEPART      DATEDIFF     DATEADD")
  884. insert into helpsql values("getdate function",1,"GETDATE")
  885. insert into helpsql values("getdate function",2,"Returns the current date and time in SQL Server's")
  886. insert into helpsql values("getdate function",3,"standard internal format for datetime values.  GETDATE")
  887. insert into helpsql values("getdate function",4,"takes the NULL parameter ( ).")
  888. insert into helpsql values("getdate function",5,"")
  889. insert into helpsql values("getdate function",6,"    GETDATE( )")
  890. insert into helpsql values("datename function",1,"DATENAME")
  891. insert into helpsql values("datename function",2,"Returns the specified datepart (the first parameter) of")
  892. insert into helpsql values("datename function",3,"the specified date (the second parameter) as a character string.")
  893. insert into helpsql values("datename function",4,"")
  894. insert into helpsql values("datename function",5,"    DATENAME(<datepart>, <date>)")
  895. insert into helpsql values("datepart function",1,"DATEPART")
  896. insert into helpsql values("datepart function",2,"Returns the specified datepart (the first parameter) of")
  897. insert into helpsql values("datepart function",3,"the specified date (the second parameter) as an integer.")
  898. insert into helpsql values("datepart function",4,"")
  899. insert into helpsql values("datepart function",5,"    DATEPART(<datepart>, <date>)")
  900. insert into helpsql values("datediff function",1,"DATEDIFF")
  901. insert into helpsql values("datediff function",2,"Returns the calculated number of dateparts between two")
  902. insert into helpsql values("datediff function",3,"specified dates.  It takes three parameters.  The")
  903. insert into helpsql values("datediff function",4,"first part is a datepart.  The second and third are dates.")
  904. insert into helpsql values("datediff function",5,"The result is a signed integer value equal to <date2> minus")
  905. insert into helpsql values("datediff function",6,"<date1> in dateparts.")
  906. insert into helpsql values("datediff function",7,"")
  907. insert into helpsql values("datediff function",8,"    DATEDIFF(<datepart>, <date1>, <date2>)")
  908. insert into helpsql values("datediff function",9,"")
  909. insert into helpsql values("dateadd function",1,"DATEADD")
  910. insert into helpsql values("dateadd function",2,"Returns a date produced by adding an interval to a date you specify.  It")
  911. insert into helpsql values("dateadd function",3,"takes three parameters: <datepart>, <number>, and <date>.  The result")
  912. insert into helpsql values("dateadd function",4,"is a datetime value equal to the date plus the number of dateparts.")
  913. insert into helpsql values("dateadd function",5,"")
  914. insert into helpsql values("dateadd function",6,"   DATEADD (<datepart>, <number>, <date>)")
  915. insert into helpsql values("dateadd function",7,"")
  916. insert into helpsql values("mathematical functions",1,"MATHEMATICAL FUNCTIONS")
  917. insert into helpsql values("mathematical functions",2,"Return values commonly needed for operations on mathematical data.")
  918. insert into helpsql values("mathematical functions",3,"Mathematical function names are not keywords.")
  919. insert into helpsql values("mathematical functions",4,"")
  920. insert into helpsql values("mathematical functions",5,"Help is available for the following mathematical functions:")
  921. insert into helpsql values("mathematical functions",6,"")
  922. insert into helpsql values("mathematical functions",7,"ABS         ACOS         ASIN         ATAN         ATN2")
  923. insert into helpsql values("mathematical functions",8,"CEILING     COS          COT          DEGREES      EXP")
  924. insert into helpsql values("mathematical functions",9,"FLOOR       LOG          LOG10        PI           POWER")
  925. insert into helpsql values("mathematical functions",10,"RADIANS     RAND         ROUND        SIGN         SIN")
  926. insert into helpsql values("mathematical functions",11,"SQRT        TAN")
  927. insert into helpsql values("mathematical functions",12,"")
  928. insert into helpsql values("abs function",1,"ABS")
  929. go
  930. dump transaction master with truncate_only
  931. go
  932. insert into helpsql values("abs function",2,"Returns the absolute value of an expression.")
  933. insert into helpsql values("abs function",3,"The expression can be of integer, float, or money type.")
  934. insert into helpsql values("abs function",4,"Results are of the same type as the numeric expression.")
  935. insert into helpsql values("abs function",5,"")
  936. insert into helpsql values("abs function",6,"    ABS(<numeric_expr>)")
  937. insert into helpsql values("abs function",7,"")
  938. insert into helpsql values("acos function",1,"ACOS")
  939. insert into helpsql values("acos function",2,"Returns an angle (in radians) whose cosine is")
  940. insert into helpsql values("acos function",3,"the specified floating-point value.")
  941. insert into helpsql values("acos function",4,"")
  942. insert into helpsql values("acos function",5,"    ACOS(<float_expr>)")
  943. insert into helpsql values("acos function",6,"")
  944. insert into helpsql values("asin function",1,"ASIN")
  945. insert into helpsql values("asin function",2,"Returns an angle (in radians) whose sine is")
  946. insert into helpsql values("asin function",3,"the specified floating-point value.")
  947. insert into helpsql values("asin function",4,"")
  948. insert into helpsql values("asin function",5,"    ASIN(<float_expr>)")
  949. insert into helpsql values("asin function",6,"")
  950. insert into helpsql values("atan function",1,"ATAN")
  951. insert into helpsql values("atan function",2,"Returns an angle (in radians) whose tangent is")
  952. insert into helpsql values("atan function",3,"the specified floating-point value.")
  953. insert into helpsql values("atan function",4,"")
  954. insert into helpsql values("atan function",5,"    ATAN(<float_expr>)")
  955. insert into helpsql values("atan function",6,"")
  956. insert into helpsql values("atn2 function",1,"ATN2")
  957. insert into helpsql values("atn2 function",2,"Returns an angle (in radians) whose tangent is")
  958. insert into helpsql values("atn2 function",3,"the specified (<float_expr1>|<float_expr2>).")
  959. insert into helpsql values("atn2 function",4,"")
  960. insert into helpsql values("atn2 function",5,"    ATN2(<float_expr1>, <float_expr2>)")
  961. insert into helpsql values("atn2 function",6,"")
  962. insert into helpsql values("ceiling function",1,"CEILING")
  963. insert into helpsql values("ceiling function",2,"Returns the smallest integer greater than or equal")
  964. insert into helpsql values("ceiling function",3,"to the specified value.  The expression can be of")
  965. insert into helpsql values("ceiling function",4,"Integer, Float, or Money type.  Results are of the")
  966. insert into helpsql values("ceiling function",5,"same type as the numeric expression.")
  967. insert into helpsql values("ceiling function",6,"")
  968. insert into helpsql values("ceiling function",7,"    CEILING(<numeric_expr>)")
  969. insert into helpsql values("ceiling function",8,"")
  970. insert into helpsql values("cos function",1,"COS")
  971. insert into helpsql values("cos function",2,"Returns the trigonometric cosine of the specified")
  972. insert into helpsql values("cos function",3,"angle (in radians).")
  973. insert into helpsql values("cos function",4,"")
  974. insert into helpsql values("cos function",5,"    COS(<float_expr>)")
  975. insert into helpsql values("cos function",6,"")
  976. go
  977. dump transaction master with truncate_only
  978. go
  979. insert into helpsql values("cot function",1,"COT")
  980. insert into helpsql values("cot function",2,"Returns the trigonometric cotangent of the specified")
  981. insert into helpsql values("cot function",3,"angle (in radians).")
  982. insert into helpsql values("cot function",4,"")
  983. insert into helpsql values("cot function",5,"    COT(<float_expr>)")
  984. insert into helpsql values("cot function",6,"")
  985. insert into helpsql values("degrees function",1,"DEGREES")
  986. insert into helpsql values("degrees function",2,"Converts radians to degrees.")
  987. insert into helpsql values("degrees function",4,"")
  988. insert into helpsql values("degrees function",5,"    DEGREES(<numeric_expr>)")
  989. insert into helpsql values("degrees function",6,"")
  990. insert into helpsql values("exp function",1,"EXP")
  991. insert into helpsql values("exp function",2,"Returns the exponential value of the specified")
  992. insert into helpsql values("exp function",3,"value.")
  993. insert into helpsql values("exp function",4,"")
  994. insert into helpsql values("exp function",5,"    EXP(<float_expr>)")
  995. insert into helpsql values("exp function",6,"")
  996. insert into helpsql values("floor function",1,"FLOOR")
  997. insert into helpsql values("floor function",2,"Returns the largest integer less than or equal")
  998. insert into helpsql values("floor function",3,"to the specified value.  The expression can be of")
  999. insert into helpsql values("floor function",4,"Integer, Float, or Money type.  Results are of the")
  1000. insert into helpsql values("floor function",5,"same type as the numeric expression.")
  1001. insert into helpsql values("floor function",6,"")
  1002. insert into helpsql values("floor function",7,"    FLOOR(<numeric_expr>)")
  1003. insert into helpsql values("floor function",8,"")
  1004. insert into helpsql values("log function",1,"LOG")
  1005. insert into helpsql values("log function",2,"Returns the natural logarithm of the specified value.")
  1006. insert into helpsql values("log function",3,"")
  1007. insert into helpsql values("log function",4,"    LOG(<float_expr>)")
  1008. insert into helpsql values("log function",5,"")
  1009. insert into helpsql values("log10 function",1,"LOG10")
  1010. insert into helpsql values("log10 function",2,"Returns the base 10 logarithm of the specified value.")
  1011. insert into helpsql values("log10 function",3,"")
  1012. insert into helpsql values("log10 function",4,"    LOG10(<float_expr>)")
  1013. insert into helpsql values("log10 function",5,"")
  1014. insert into helpsql values("pi function",1,"PI")
  1015. insert into helpsql values("pi function",2,"Returns the constant value of 3.1415926535897936.")
  1016. insert into helpsql values("pi function",3,"")
  1017. insert into helpsql values("pi function",4,"    PI()")
  1018. insert into helpsql values("power function",1,"POWER")
  1019. insert into helpsql values("power function",2,"Returns the value of <numeric_expr> to the power")
  1020. insert into helpsql values("power function",3,"of <y>. The expression and y can be of Integer,")
  1021. insert into helpsql values("power function",4,"Float, or Money type.  Results are of the same")
  1022. insert into helpsql values("power function",5,"type as the numeric expression.")
  1023. go
  1024. dump transaction master with truncate_only
  1025. go
  1026. insert into helpsql values("power function",6,"")
  1027. insert into helpsql values("power function",7,"    POWER(<numeric_expr>, <y>)")
  1028. insert into helpsql values("radians function",1,"RADIANS")
  1029. insert into helpsql values("radians function",2,"Converts degrees to radians.  The expression can be")
  1030. insert into helpsql values("radians function",3,"of Integer, Float, or Money type.  Results are of the")
  1031. insert into helpsql values("radians function",4,"same type as the numeric expression")
  1032. insert into helpsql values("radians function",5,"")
  1033. insert into helpsql values("radians function",6,"    RADIANS(<numeric_expr>)")
  1034. insert into helpsql values("rand function",1,"RAND")
  1035. insert into helpsql values("rand function",2,"Returns a random floating-point number between 0 and 1, using")
  1036. insert into helpsql values("rand function",3,"<integer_expr> as the optional seed.")
  1037. insert into helpsql values("rand function",4,"")
  1038. insert into helpsql values("rand function",5,"    RAND([integer_expr])")
  1039. insert into helpsql values("round function",1,"ROUND")
  1040. insert into helpsql values("round function",2,"Rounds off a numeric expression to the precision")
  1041. insert into helpsql values("round function",3,"specified in <integer_expr>.  The expression can")
  1042. insert into helpsql values("round function",4,"be of Integer, Float, or Money type.  Results")
  1043. insert into helpsql values("round function",5,"are of the same type as the numeric expression.")
  1044. insert into helpsql values("round function",6,"")
  1045. insert into helpsql values("round function",7,"    ROUND(<numeric_expr>, <integer_expr>)")
  1046. insert into helpsql values("sign function",1,"SIGN")
  1047. insert into helpsql values("sign function",2,"Returns positive (+1), zero (0), or negative (-1).")
  1048. insert into helpsql values("sign function",3,"The expression can be of Integer, Float, or Money type.")
  1049. insert into helpsql values("sign function",4,"Results are of the same type as the numeric expression.")
  1050. insert into helpsql values("sign function",5,"")
  1051. insert into helpsql values("sign function",6,"    SIGN(<numeric_expr>)")
  1052. insert into helpsql values("sin function",1,"SIN")
  1053. insert into helpsql values("sin function",2,"Returns the trigonometric sine of the specified")
  1054. insert into helpsql values("sin function",3,"angle (measured in radians).")
  1055. insert into helpsql values("sin function",4,"")
  1056. insert into helpsql values("sin function",5,"    SIN(<float_expr>)")
  1057. insert into helpsql values("sqrt function",1,"SQRT")
  1058. insert into helpsql values("sqrt function",2,"Returns the square root of the specified value.")
  1059. insert into helpsql values("sqrt function",3,"")
  1060. insert into helpsql values("sqrt function",4,"    SQRT(<float_expr>)")
  1061. insert into helpsql values("tan function",1,"TAN")
  1062. insert into helpsql values("tan function",2,"Returns the trigonometric tangent of the specified")
  1063. insert into helpsql values("tan function",3,"angle (measured in radians).")
  1064. insert into helpsql values("tan function",4,"")
  1065. insert into helpsql values("tan function",5,"    TAN(<float_expr>)")
  1066. insert into helpsql values("string functions",1,"STRING FUNCTIONS")
  1067. insert into helpsql values("string functions",2,"Perform various operations on binary data, character")
  1068. insert into helpsql values("string functions",3,"strings, or expressions, including concatenation. Built-in")
  1069. insert into helpsql values("string functions",4,"string functions return values commonly needed for")
  1070. go
  1071. dump transaction master with truncate_only
  1072. go
  1073. insert into helpsql values("string functions",5,"operations on character data.")
  1074. insert into helpsql values("string functions",6,"")
  1075. insert into helpsql values("string functions",7,"Help is available for the following string functions:")
  1076. insert into helpsql values("string functions",8,"")
  1077. insert into helpsql values("string functions",9,"ASCII     CHAR       CHARINDEX     DATALENGTH     DIFFERENCE")
  1078. insert into helpsql values("string functions",10,"LOWER     LTRIM      PATINDEX      REPLICATE      REVERSE")
  1079. insert into helpsql values("string functions",11,"RIGHT     RTRIM      SOUNDEX       SPACE          STR")
  1080. insert into helpsql values("string functions",12,"STUFF     SUBSTRING  UPPER         +")
  1081. insert into helpsql values("ascii function",1,"ASCII")
  1082. insert into helpsql values("ascii function",2,"Returns the ASCII code value of the leftmost character of")
  1083. insert into helpsql values("ascii function",3,"a character expression.")
  1084. insert into helpsql values("ascii function",4,"")
  1085. insert into helpsql values("ascii function",5,"    ASCII(<char_expr>)")
  1086. insert into helpsql values("char function",1,"CHAR")
  1087. insert into helpsql values("char function",2,"Converts an ASCII code into a character.  The ASCII code")
  1088. insert into helpsql values("char function",3,"should be between 0 and 255; otherwise, NULL is returned.")
  1089. insert into helpsql values("char function",4,"")
  1090. insert into helpsql values("char function",5,"    CHAR(<integer_expr>)")
  1091. insert into helpsql values("charindex function",1,"CHARINDEX")
  1092. insert into helpsql values("charindex function",2,"Returns the starting position of the specified character expression.")
  1093. insert into helpsql values("charindex function",3,"The first parameter is the character expression.  The second parameter")
  1094. insert into helpsql values("charindex function",4,"is an expression, usually a column name, in which SQL Server")
  1095. insert into helpsql values("charindex function",5,"searchs for the character expression.  Not used with")
  1096. insert into helpsql values("charindex function",6,"Text and Image data.")
  1097. insert into helpsql values("charindex function",7,"")
  1098. insert into helpsql values("charindex function",8,"    CHARINDEX(<'char_expr'>, <expression>)")
  1099. insert into helpsql values("datalength function",1,"DATALENGTH")
  1100. insert into helpsql values("datalength function",2,"Returns the length of any type of data value or text field.")
  1101. insert into helpsql values("datalength function",3,"A null string returns a length of 1.")
  1102. insert into helpsql values("datalength function",4,"")
  1103. insert into helpsql values("datalength function",5,"DATALENGTH(<anytype_expr>)")
  1104. insert into helpsql values("difference function",1,"DIFFERENCE")
  1105. insert into helpsql values("difference function",2,"Returns the difference between the values of two character")
  1106. insert into helpsql values("difference function",3,"expressions as returned by the SOUNDEX function.")
  1107. insert into helpsql values("difference function",4,"")
  1108. insert into helpsql values("difference function",5,"    DIFFERENCE(<char_expr1>, <char_expr2>)")
  1109. insert into helpsql values("lower function",1,"LOWER")
  1110. insert into helpsql values("lower function",2,"Converts uppercase to lowercase.")
  1111. insert into helpsql values("lower function",3,"")
  1112. insert into helpsql values("lower function",4,"    LOWER(<char_expr>)")
  1113. insert into helpsql values("ltrim function",1,"LTRIM")
  1114. insert into helpsql values("ltrim function",2,"Removes leading blanks.")
  1115. insert into helpsql values("ltrim function",3,"")
  1116. insert into helpsql values("ltrim function",4,"    LTRIM(<char_expr>)")
  1117. go
  1118. dump transaction master with truncate_only
  1119. go
  1120. insert into helpsql values("ltrim function",5,"")
  1121. insert into helpsql values("patindex function",1,"PATINDEX")
  1122. insert into helpsql values("patindex function",2,"Returns the starting position of the first occurrence of <pattern>")
  1123. insert into helpsql values("patindex function",3,"in the specified column, or zeros if the pattern is not found. You")
  1124. insert into helpsql values("patindex function",4,"can use wildcard characters in <pattern> as long as % precedes and")
  1125. insert into helpsql values("patindex function",5,"follows <pattern>.")
  1126. insert into helpsql values("patindex function",6,"")
  1127. insert into helpsql values("patindex function",7,"    PATINDEX('%<pattern>%', <column_name>)")
  1128. insert into helpsql values("patindex function",8,"")
  1129. insert into helpsql values("replicate function",1,"REPLICATE")
  1130. insert into helpsql values("replicate function",2,"Repeats a character expression a specified number of times.")
  1131. insert into helpsql values("replicate function",3,"If <integer_expr> is negative, a null string is returned.")
  1132. insert into helpsql values("replicate function",4,"")
  1133. insert into helpsql values("replicate function",5,"    REPLICATE(<char_expr>, <integer_expr>)")
  1134. insert into helpsql values("replicate function",6,"")
  1135. insert into helpsql values("reverse function",1,"REVERSE")
  1136. insert into helpsql values("reverse function",2,"Returns the reverse of <char_expr>. The <char_expr> parameter can be")
  1137. insert into helpsql values("reverse function",3,"a constant, variable, or column.")
  1138. insert into helpsql values("reverse function",4,"")
  1139. insert into helpsql values("reverse function",5,"    REVERSE(<char_expr>)")
  1140. insert into helpsql values("reverse function",6,"")
  1141. insert into helpsql values("right function",1,"RIGHT")
  1142. insert into helpsql values("right function",2,"Returns part of a character string starting <integer_expr>")
  1143. insert into helpsql values("right function",3,"characters from the right.  If <integer_expr> is negative,")
  1144. insert into helpsql values("right function",4,"a null string is returned.")
  1145. insert into helpsql values("right function",5,"")
  1146. insert into helpsql values("rignt function",6,"    RIGHT(<char_expr>, <integer_expr>)")
  1147. insert into helpsql values("rtrim function",1,"RTRIM")
  1148. insert into helpsql values("rtrim function",2,"Removes trailing blanks.")
  1149. insert into helpsql values("rtrim function",3,"")
  1150. insert into helpsql values("rtrim function",4,"    RTRIM(<char_expr>)")
  1151. insert into helpsql values("soundex function",1,"SOUNDEX")
  1152. insert into helpsql values("soundex function",2,"Returns a 4-digit (SOUNDEX) code for use in evaluating")
  1153. insert into helpsql values("soundex function",3,"the similarity of two strings.")
  1154. insert into helpsql values("soundex function",4,"")
  1155. insert into helpsql values("soundex function",5,"    SOUNDEX(<char_expr>)")
  1156. insert into helpsql values("space function",1,"SPACE")
  1157. insert into helpsql values("space function",2,"Returns a string of repeated spaces. The number of spaces")
  1158. insert into helpsql values("space function",3,"is equal to <integer_expr>.  If <integer_expr> is negative, a")
  1159. insert into helpsql values("space function",4,"null string is returned.")
  1160. insert into helpsql values("space function",5,"    SPACE(<integer_expr>)")
  1161. insert into helpsql values("str function",1,"STR")
  1162. insert into helpsql values("str function",2,"Converts numeric data to character data.")
  1163. insert into helpsql values("str function",3,"")
  1164. insert into helpsql values("str function",4,"    STR(<float_expr>[, <length>[, <decimal>]])")
  1165. go
  1166. dump transaction master with truncate_only
  1167. go
  1168. insert into helpsql values("stuff function",1,"STUFF")
  1169. insert into helpsql values("stuff function",2,"Deletes <length> characters from <char_expr1> at <start>,")
  1170. insert into helpsql values("stuff function",3,"then inserts <char_expr2> into <char_expr1> at <start>.  Not")
  1171. insert into helpsql values("stuff function",4,"used with Text or Image data.")
  1172. insert into helpsql values("stuff function",5,"    STUFF(<char_expr1>, <start>, <length>, <char_expr2>)")
  1173. insert into helpsql values("substring function",1,"SUBSTRING")
  1174. insert into helpsql values("substring function",2,"Returns part of a character or binary string.  The first")
  1175. insert into helpsql values("substring function",3,"parameter can be a character or binary string, a column")
  1176. insert into helpsql values("substring function",4,"name, or an expression that includes a column name.  The")
  1177. insert into helpsql values("substring function",5,"second parameter specifies the position at which the")
  1178. insert into helpsql values("substring function",6,"substring begins.  The third parameter specifies the number")
  1179. insert into helpsql values("substring function",7,"of characters in the substring.  Not used with Text or Image")
  1180. insert into helpsql values("substring function",8,"data.")
  1181. insert into helpsql values("substring function",9,"")
  1182. insert into helpsql values("substring function",10,"    SUBSTRING(<expression>, <start>, <length>)")
  1183. insert into helpsql values("upper function",1,"UPPER")
  1184. insert into helpsql values("upper function",2,"Converts lowercase to uppercase.")
  1185. insert into helpsql values("upper function",3,"")
  1186. insert into helpsql values("upper function",4,"    UPPER(<char_expr>)")
  1187. insert into helpsql values("+ function",1,"+")
  1188. insert into helpsql values("+ function",2,"Concatenates two or more character strings, binary")
  1189. insert into helpsql values("+ function",3,"strings, column names, or a combination of them.")
  1190. insert into helpsql values("+ function",4,"Enclose character string in single quoatation marks.")
  1191. insert into helpsql values("+ function",5,"")
  1192. insert into helpsql values("+ function",6,"<expression> + <expression>")
  1193. insert into helpsql values("system functions",1,"SYSTEM FUNCTIONS")
  1194. insert into helpsql values("system functions",2,"Return special information from the database.")
  1195. insert into helpsql values("system functions",3,"")
  1196. insert into helpsql values("system functions",4,"Help is available on the following system functions:")
  1197. insert into helpsql values("system functions",5,"")
  1198. insert into helpsql values("system functions",6,"COL_NAME     COL_LENGTH     DATALENGTH   DB_ID       DB_NAME")
  1199. insert into helpsql values("system functions",7,"HOST_ID      HOST_NAME      INDEX_COL    ISNULL      OBJECT_ID")
  1200. insert into helpsql values("system functions",8,"OBJECT_NAME  SUSER_ID       SUSER_NAME   USER_ID     USER_NAME")
  1201. insert into helpsql values("col_name function",1,"COL_NAME")
  1202. insert into helpsql values("col_name function",2,"Returns the column name.")
  1203. insert into helpsql values("col_name function",3,"")
  1204. insert into helpsql values("col_name function",4,"    COL_NAME(<object_id>, <column_id>)")
  1205. insert into helpsql values("col_length function",1,"COL_LENGTH")
  1206. insert into helpsql values("col_length function",2,"Returns the column length.")
  1207. insert into helpsql values("col_length function",3,"")
  1208. insert into helpsql values("col_length function",4,"   COL_LENGTH(<'object_name'>, <'column_name'>)")
  1209. insert into helpsql values("db_id function",1,"DB_ID")
  1210. insert into helpsql values("db_id function",2,"Returns the database identification number.")
  1211. insert into helpsql values("db_id function",3,"")
  1212. go
  1213. dump transaction master with truncate_only
  1214. go
  1215. insert into helpsql values("db_id function",4,"DB_ID([<'database_name'>])")
  1216. insert into helpsql values("db_name function",1,"DB_NAME")
  1217. insert into helpsql values("db_name function",2,"Returns the database name.")
  1218. insert into helpsql values("db_name function",3,"")
  1219. insert into helpsql values("db_name function",4,"    DB_NAME([<database_id>])")
  1220. insert into helpsql values("host_id function",1,"HOST_ID")
  1221. insert into helpsql values("host_id function",2,"Returns the workstation identification number.")
  1222. insert into helpsql values("host_id function",3,"")
  1223. insert into helpsql values("host_id function",4,"    HOST_ID( )")
  1224. insert into helpsql values("host_name function",1,"HOST_NAME")
  1225. insert into helpsql values("host_name function",2,"Returns the current workstation name.")
  1226. insert into helpsql values("host_name function",3,"")
  1227. insert into helpsql values("host_name function",4,"    HOST_NAME( )")
  1228. insert into helpsql values("index_col function",1,"INDEX_COL")
  1229. insert into helpsql values("index_col function",2,"Returns the indexed column name.")
  1230. insert into helpsql values("index_col function",3,"")
  1231. insert into helpsql values("index_col function",4,"    INDEX_COL(<'object_name'>, <index_id>, <key>)")
  1232. insert into helpsql values("isnull function",1,"ISNULL")
  1233. insert into helpsql values("isnull function",2,"Returns the NULL entries with the specified value.")
  1234. insert into helpsql values("isnull function",3,"")
  1235. insert into helpsql values("isnull function",4,"    ISNULL(<expression>, <value>)")
  1236. insert into helpsql values("object_id function",1,"OBJECT_ID")
  1237. insert into helpsql values("object_id function",2,"Returns the database object identification number.")
  1238. insert into helpsql values("object_id function",3,"")
  1239. insert into helpsql values("object_id function",4,"    OBJECT_ID(<'database_object_name'>)")
  1240. insert into helpsql values("object_name function",1,"OBJECT_NAME")
  1241. insert into helpsql values("object_name function",2,"Returns the database object name.")
  1242. insert into helpsql values("object_name function",3,"")
  1243. insert into helpsql values("object_name function",4,"    OBJECT_NAME(<database_object_id>)")
  1244. insert into helpsql values("suser_id function",1,"SUSER_ID")
  1245. insert into helpsql values("suser_id function",2,"Returns the server user's login identification number.")
  1246. insert into helpsql values("suser_id function",3,"")
  1247. insert into helpsql values("suser_id function",4,"    SUSER_ID([<'server_username'>])")
  1248. insert into helpsql values("suser_name function",1,"SUSER_NAME")
  1249. insert into helpsql values("suser_name function",2,"Returns the server user's login identification.")
  1250. insert into helpsql values("suser_name function",3,"")
  1251. insert into helpsql values("suser_name function",4,"    SUSER_NAME([<server_user_id>])")
  1252. insert into helpsql values("user_id function",1,"USER_ID")
  1253. insert into helpsql values("user_id function",2,"Returns the user's database identification number.")
  1254. insert into helpsql values("user_id function",3,"")
  1255. insert into helpsql values("user_id function",4,"    USER_ID([<'username'>])")
  1256. insert into helpsql values("user_name function",1,"USER_NAME")
  1257. insert into helpsql values("user_name function",2,"Returns the user's name.")
  1258. insert into helpsql values("user_name function",3,"")
  1259. go
  1260. dump transaction master with truncate_only
  1261. go
  1262. insert into helpsql values("user_name function",4,"    USER_NAME([<user_id>])")
  1263. insert into helpsql values("text functions",1,"TEXT/IMAGE FUNCTIONS")
  1264. insert into helpsql values("text functions",2,"Return values commonly needed for operations")
  1265. insert into helpsql values("text functions",3,"on Text and Image data.  Text and Image built-in")
  1266. insert into helpsql values("text functions",4,"function names are not keywords.")
  1267. insert into helpsql values("text functions",5,"")
  1268. insert into helpsql values("text functions",6,"Help is available on the following text functions:")
  1269. insert into helpsql values("text functions",7,"")
  1270. insert into helpsql values("text functions",8,"PATINDEX     TEXTPTR     TEXTVALID     TEXTSIZE")
  1271. insert into helpsql values("textptr function",1,"TEXTPTR")
  1272. insert into helpsql values("textptr function",2,"Returns the text pointer value in Varbinary format.  The")
  1273. insert into helpsql values("textptr function",3,"text pointer is checked to ensure that it points to the")
  1274. insert into helpsql values("textptr function",4,"first text page.")
  1275. insert into helpsql values("textptr function",5,"")
  1276. insert into helpsql values("textptr function",6,"    TEXTPTR(<column_name>)")
  1277. insert into helpsql values("textvalid function",1,"TEXTVALID")
  1278. insert into helpsql values("textvalid function",2,"Checks whether a given text pointer is valid.  Note that the")
  1279. insert into helpsql values("textvalid function",3,"identifier for the text column must include the table name.")
  1280. insert into helpsql values("textvalid function",4,"Returns 1 if the pointer is valid and 0 if the pointer")
  1281. insert into helpsql values("textvalid function",5,"is invalid.")
  1282. insert into helpsql values("textvalid function",6,"")
  1283. insert into helpsql values("textvalid function",7,"    TEXTVALID(<'table_name.column_name'>, <text_ptr>)")
  1284. insert into helpsql values("textsize function",1,"SET TEXTSIZE")
  1285. insert into helpsql values("textsize function",2,"A SET option that specifies the limit in bytes of the Text")
  1286. insert into helpsql values("textsize function",3,"or Image data to be returned with a SELECT statement.  The")
  1287. insert into helpsql values("textsize function",4,"current setting is stored in the @@TEXTSIZE global variable.")
  1288. insert into helpsql values("textsize function",5,"<n> is an integer that specifies the limit on the number of bytes")
  1289. insert into helpsql values("textsize function",6,"to be returned.  0 restores the default limit (4K).")
  1290. insert into helpsql values("textsize function",7,"")
  1291. insert into helpsql values("textsize function",8,"    SET TEXTSIZE {<n> | 0}")
  1292. insert into helpsql values("sp_addalias",1,"sp_addalias")
  1293. insert into helpsql values("sp_addalias",2,"Maps one user to another in a database.")
  1294. insert into helpsql values("sp_addalias",3,"")
  1295. insert into helpsql values("sp_addalias",4,"   sp_addalias <login_id>, <username>")
  1296. insert into helpsql values("sp_addalias",5,"")
  1297. insert into helpsql values("sp_addgroup",1,"sp_addgroup")
  1298. insert into helpsql values("sp_addgroup",2,"Adds a group to a database.")
  1299. insert into helpsql values("sp_addgroup",3,"")
  1300. go
  1301. dump transaction master with truncate_only
  1302. go
  1303. insert into helpsql values("sp_addgroup",4,"   sp_addgroup <grpname>")
  1304. insert into helpsql values("sp_addgroup",5,"")
  1305. insert into helpsql values("sp_addlogin",1,"sp_addlogin")
  1306. insert into helpsql values("sp_addlogin",2,"Authorizes a new SQL Server user by adding a login ID.")
  1307. insert into helpsql values("sp_addlogin",3,"")
  1308. insert into helpsql values("sp_addlogin",4,"   sp_addlogin <login_id> [, <passwd> [, <defdb> [, <deflanguage>]]]")
  1309. insert into helpsql values("sp_addlogin",5,"")
  1310. insert into helpsql values("sp_addremotelogin",1,"sp_addremotelogin")
  1311. insert into helpsql values("sp_addremotelogin",2,"")
  1312. insert into helpsql values("sp_addremotelogin",3,"Adds a remote login ID to the master.dbo.sysremotelogins system table.")
  1313. insert into helpsql values("sp_addremotelogin",4,"")
  1314. insert into helpsql values("sp_addremotelogin",5,"   sp_addremotelogin <remoteserver> [, <local_loginame> [, <remotename>]]")
  1315. insert into helpsql values("sp_addremotelogin",6,"")
  1316. insert into helpsql values("sp_addsegment",1,"sp_addsegment")
  1317. insert into helpsql values("sp_addsegment",2,"")
  1318. insert into helpsql values("sp_addsegment",3,"Defines a segment on a database device in the current database.")
  1319. insert into helpsql values("sp_addsegment",4,"")
  1320. insert into helpsql values("sp_addsegment",5,"   sp_addsegment <segname>, <logical_name>")
  1321. insert into helpsql values("sp_addsegment",6,"")
  1322. insert into helpsql values("sp_addserver",1,"sp_addserver")
  1323. insert into helpsql values("sp_addserver",2,"")
  1324. insert into helpsql values("sp_addserver",3,"Defines a remote server or defines the name of the local server.")
  1325. insert into helpsql values("sp_addserver",4,"")
  1326. insert into helpsql values("sp_addserver",5,"   sp_addserver <server_name> [, local]")
  1327. insert into helpsql values("sp_addserver",6,"")
  1328. insert into helpsql values("sp_addtype",1,"sp_addtype")
  1329. insert into helpsql values("sp_addtype",2,"")
  1330. insert into helpsql values("sp_addtype",3,"Creates a user-defined datatype.")
  1331. insert into helpsql values("sp_addtype",4,"")
  1332. insert into helpsql values("sp_addtype",5,"   sp_addtype <typename>, <phystype>[(<length>)] [, <nulltype>]")
  1333. insert into helpsql values("sp_addtype",6,"")
  1334. insert into helpsql values("sp_addumpdevice",1,"sp_addumpdevice")
  1335. insert into helpsql values("sp_addumpdevice",2,"")
  1336. insert into helpsql values("sp_addumpdevice",3,"Adds a dump device to SQL Server.")
  1337. insert into helpsql values("sp_addumpdevice",4,"")
  1338. insert into helpsql values("sp_addumpdevice",5,"   sp_addumpdevice 'DISK' | 'DISKETTE' | 'TAPE', <logical_name>,")
  1339. insert into helpsql values("sp_addumpdevice",6,"     <physical_name>, <cntrltype> [, NOSKIP | SKIP [, <media_capacity>]]")
  1340. insert into helpsql values("sp_addumpdevice",7,"")
  1341. insert into helpsql values("sp_adduser",1,"")
  1342. insert into helpsql values("sp_adduser",2,"sp_adduser")
  1343. insert into helpsql values("sp_adduser",3,"")
  1344. insert into helpsql values("sp_adduser",4,"Adds a new user to the current database.")
  1345. insert into helpsql values("sp_adduser",5,"")
  1346. insert into helpsql values("sp_adduser",6,"   sp_adduser <login_id> [, <username> [, <grpname>]]")
  1347. go
  1348. dump transaction master with truncate_only
  1349. go
  1350. insert into helpsql values("sp_adduser",7,"")
  1351. insert into helpsql values("sp_bindefault",1,"sp_bindefault")
  1352. insert into helpsql values("sp_bindefault",2,"Binds a default to a column or to a user-defined datatype.")
  1353. insert into helpsql values("sp_bindefault",3,"")
  1354. insert into helpsql values("sp_bindefault",4,"   sp_bindefault <defname>, <objname> [, FUTUREONLY]")
  1355. insert into helpsql values("sp_bindefault",5,"")
  1356. insert into helpsql values("sp_bindrule",1,"sp_bindrule")
  1357. insert into helpsql values("sp_bindrule",2,"Binds a rule to a column or user datatype.")
  1358. insert into helpsql values("sp_bindrule",3,"")
  1359. insert into helpsql values("sp_bindrule",4,"   sp_bindrule <rule_name>, <objname> [, FUTUREONLY]")
  1360. insert into helpsql values("sp_bindrule",5,"")
  1361. insert into helpsql values("sp_changedbowner",1,"sp_changedbowner")
  1362. insert into helpsql values("sp_changedbowner",2,"Changes the owner of a database.")
  1363. insert into helpsql values("sp_changedbowner",3,"")
  1364. insert into helpsql values("sp_changedbowner",4,"   sp_changedbowner <login_id>")
  1365. insert into helpsql values("sp_changedbowner",5,"")
  1366. insert into helpsql values("sp_changegroup",1,"sp_changegroup")
  1367. insert into helpsql values("sp_changegroup",2,"Changes a user's group.")
  1368. insert into helpsql values("sp_changegroup",3,"")
  1369. insert into helpsql values("sp_changegroup",4,"   sp_changegroup <grpname>, <username>")
  1370. insert into helpsql values("sp_changegroup",5,"")
  1371. insert into helpsql values("sp_checknames",1,"sp_checknames")
  1372. insert into helpsql values("sp_checknames",2,"Checks the current database for names that contain characters not in the")
  1373. insert into helpsql values("sp_checknames",3," 7-bit ASCII set.")
  1374. insert into helpsql values("sp_checknames",4,"")
  1375. insert into helpsql values("sp_checknames",5,"   sp_checknames")
  1376. insert into helpsql values("sp_checknames",6,"")
  1377. insert into helpsql values("sp_commonkey",1,"sp_commonkey")
  1378. insert into helpsql values("sp_commonkey",2,"Defines a common key between two tables or views.")
  1379. insert into helpsql values("sp_commonkey",3,"")
  1380. insert into helpsql values("sp_commonkey",4,"   sp_commonkey <tabaname>, <tabbname>, <col1a>, <col1b> [, <col2a>,")
  1381. insert into helpsql values("sp_commonkey",5,"     <col2b>, ... <col8a>, <col8b>]")
  1382. insert into helpsql values("sp_commonkey",6,"")
  1383. insert into helpsql values("sp_configure",1,"sp_configure")
  1384. insert into helpsql values("sp_configure",2,"Displays or changes configuration options.")
  1385. insert into helpsql values("sp_configure",3,"")
  1386. insert into helpsql values("sp_configure",4,"   sp_configure [<config_name> [, <config_value>]]")
  1387. insert into helpsql values("sp_configure",5,"")
  1388. insert into helpsql values("sp_dboption",1,"sp_dboption")
  1389. insert into helpsql values("sp_dboption",2,"Displays or changes database options.")
  1390. insert into helpsql values("sp_dboption",3,"")
  1391. insert into helpsql values("sp_dboption",4,"   sp_dboption [<dbname>, <optname>, {TRUE | FALSE}]")
  1392. insert into helpsql values("sp_dboption",5,"")
  1393. insert into helpsql values("sp_defaultdb",1,"sp_defaultdb")
  1394. go
  1395. dump transaction master with truncate_only
  1396. go
  1397. insert into helpsql values("sp_defaultdb",2,"Changes a user's default database.")
  1398. insert into helpsql values("sp_defaultdb",3,"")
  1399. insert into helpsql values("sp_defaultdb",4,"   sp_defaultdb <login_id>, <defdb>")
  1400. insert into helpsql values("sp_defaultdb",5,"")
  1401. insert into helpsql values("sp_defaultlanguage",1,"sp_defaultlanguage")
  1402. insert into helpsql values("sp_defaultlanguage",2,"Changes a user's default language.")
  1403. insert into helpsql values("sp_defaultlanguage",3,"")
  1404. insert into helpsql values("sp_defaultlanguage",4,"   sp_defaultlanguage <login_id> [, <language>]")
  1405. insert into helpsql values("sp_defaultlanguage",5,"")
  1406. insert into helpsql values("sp_depends",1,"sp_depends")
  1407. insert into helpsql values("sp_depends",2,"Displays information about database object dependencies.")
  1408. insert into helpsql values("sp_depends",3,"")
  1409. insert into helpsql values("sp_depends",4,"   sp_depends <objname>")
  1410. insert into helpsql values("sp_depends",5,"")
  1411. insert into helpsql values("sp_diskdefault",1,"sp_diskdefault")
  1412. insert into helpsql values("sp_diskdefault",2,"Sets a database device's status to DEFAULTON or DEFAULTOFF.")
  1413. insert into helpsql values("sp_diskdefault",3,"")
  1414. insert into helpsql values("sp_diskdefault",4,"   sp_diskdefault <database_device>, {DEFAULTON | DEFAULTOFF}")
  1415. insert into helpsql values("sp_diskdefault",5,"")
  1416. insert into helpsql values("sp_dropalias",1,"sp_dropalias")
  1417. insert into helpsql values("sp_dropalias",2,"Removes an alias login ID.")
  1418. insert into helpsql values("sp_dropalias",3,"")
  1419. insert into helpsql values("sp_dropalias",4,"   sp_dropalias <login_id>")
  1420. insert into helpsql values("sp_dropalias",5,"")
  1421. insert into helpsql values("sp_dropdevice",1,"sp_dropdevice")
  1422. insert into helpsql values("sp_dropdevice",2,"Removes a database device or dump device.")
  1423. insert into helpsql values("sp_dropdevice",3,"")
  1424. insert into helpsql values("sp_dropdevice",4,"   sp_dropdevice <logical_name>")
  1425. insert into helpsql values("sp_dropdevice",5,"")
  1426. insert into helpsql values("sp_dropgroup",1,"sp_dropgroup")
  1427. insert into helpsql values("sp_dropgroup",2,"Removes a group from a database.")
  1428. insert into helpsql values("sp_dropgroup",3,"")
  1429. insert into helpsql values("sp_dropgroup",4,"   sp_dropgroup <grpname>")
  1430. insert into helpsql values("sp_dropgroup",5,"")
  1431. insert into helpsql values("sp_dropkey",1,"sp_dropkey")
  1432. insert into helpsql values("sp_dropkey",2,"Removes a key that had been defined using")
  1433. insert into helpsql values("sp_dropkey",3,"sp_primarykey, sp_foreignkey, or sp_commonkey.")
  1434. insert into helpsql values("sp_dropkey",4,"")
  1435. insert into helpsql values("sp_dropkey",5,"   sp_dropkey <keytype>, <tabname> [, <deptabname>]")
  1436. insert into helpsql values("sp_dropkey",6,"")
  1437. insert into helpsql values("sp_droplanguage",1,"sp_droplanguage")
  1438. insert into helpsql values("sp_droplanguage",2,"Removes an alternate language from the server.")
  1439. insert into helpsql values("sp_droplanguage",3,"")
  1440. insert into helpsql values("sp_droplanguage",4,"   sp_droplanguage <language> [, DROPMESSAGES]")
  1441. go
  1442. dump transaction master with truncate_only
  1443. go
  1444. insert into helpsql values("sp_droplanguage",5,"")
  1445. insert into helpsql values("sp_droplogin",1,"sp_droplogin")
  1446. insert into helpsql values("sp_droplogin",2,"Removes a SQL Server login_id.")
  1447. insert into helpsql values("sp_droplogin",3,"")
  1448. insert into helpsql values("sp_droplogin",4,"   sp_droplogin <login_id>")
  1449. insert into helpsql values("sp_droplogin",5,"")
  1450. insert into helpsql values("sp_dropremotelogin",1,"sp_dropremotelogin")
  1451. insert into helpsql values("sp_dropremotelogin",2,"Removes a remote-user login.")
  1452. insert into helpsql values("sp_dropremotelogin",3,"")
  1453. insert into helpsql values("sp_dropremotelogin",4,"   sp_dropremotelogin <remoteserver> [, <loginame> [, <remotename>]]")
  1454. insert into helpsql values("sp_dropremotelogin",5,"")
  1455. insert into helpsql values("sp_dropsegment",1,"sp_dropsegment")
  1456. insert into helpsql values("sp_dropsegment",2,"Removes a segment from a database or unmaps a segment from")
  1457. insert into helpsql values("sp_dropsegment",3,"a database device.")
  1458. insert into helpsql values("sp_dropsegment",4,"")
  1459. insert into helpsql values("sp_dropsegment",5,"   sp_dropsegment <segname> [, <logical_name>]")
  1460. insert into helpsql values("sp_dropsegment",6,"")
  1461. insert into helpsql values("sp_dropserver",1,"sp_dropserver")
  1462. insert into helpsql values("sp_dropserver",2,"Removes a server from the list of known servers.")
  1463. insert into helpsql values("sp_dropserver",3,"")
  1464. insert into helpsql values("sp_dropserver",4,"   sp_dropserver <server_name> [, <droplogins>]")
  1465. insert into helpsql values("sp_dropserver",5,"")
  1466. insert into helpsql values("sp_droptype",1,"sp_droptype")
  1467. insert into helpsql values("sp_droptype",2,"Removes a user-defined datatype.")
  1468. insert into helpsql values("sp_droptype",3,"")
  1469. insert into helpsql values("sp_droptype",4,"   sp_droptype <typename>")
  1470. insert into helpsql values("sp_droptype",5,"")
  1471. insert into helpsql values("sp_dropuser",1,"sp_dropuser")
  1472. insert into helpsql values("sp_dropuser",2,"Removes a user from the current database.")
  1473. insert into helpsql values("sp_dropuser",3,"")
  1474. insert into helpsql values("sp_dropuser",4,"   sp_dropuser <username>")
  1475. insert into helpsql values("sp_dropuser",5,"")
  1476. insert into helpsql values("sp_extendsegment",1,"sp_extendsegment")
  1477. insert into helpsql values("sp_extendsegment",2,"Extends the range of a segment to another database device.")
  1478. insert into helpsql values("sp_extendsegment",3,"")
  1479. insert into helpsql values("sp_extendsegment",4,"   sp_extendsegment <segname>, <logical_name>")
  1480. insert into helpsql values("sp_extendsegment",5,"")
  1481. insert into helpsql values("sp_foreignkey",1,"sp_foreignkey")
  1482. insert into helpsql values("sp_foreignkey",2,"Defines a foreign key in a table or view.")
  1483. insert into helpsql values("sp_foreignkey",3,"")
  1484. insert into helpsql values("sp_foreignkey",4,"   sp_foreignkey <tabname>, <pktabname>, <col1> [, <col2>,")
  1485. insert into helpsql values("sp_foreignkey",5,"     <col3>, ..., <col8>]")
  1486. insert into helpsql values("sp_foreignkey",6,"")
  1487. insert into helpsql values("sp_help",1,"sp_help")
  1488. go
  1489. dump transaction master with truncate_only
  1490. go
  1491. insert into helpsql values("sp_help",2,"Reports information about a database object or about a SQL")
  1492. insert into helpsql values("sp_help",3,"Server-supplied or user-defined datatype.")
  1493. insert into helpsql values("sp_help",4,"")
  1494. insert into helpsql values("sp_help",5,"   sp_help [<objname>]")
  1495. insert into helpsql values("sp_help",6,"")
  1496. insert into helpsql values("sp_helpdb",1,"sp_helpdb")
  1497. insert into helpsql values("sp_helpdb",2,"Reports information about a database or about all databases.")
  1498. insert into helpsql values("sp_helpdb",3,"")
  1499. insert into helpsql values("sp_helpdb",4,"   sp_helpdb [<dbname>]")
  1500. insert into helpsql values("sp_helpdb",5,"")
  1501. insert into helpsql values("sp_helpdevice",1,"sp_helpdevice")
  1502. insert into helpsql values("sp_helpdevice",2,"Reports information about SQL Server's database devices and dump")
  1503. insert into helpsql values("sp_helpdevice",3,"devices.")
  1504. insert into helpsql values("sp_helpdevice",4,"")
  1505. insert into helpsql values("sp_helpdevice",5,"   sp_helpdevice [<logical_name>]")
  1506. insert into helpsql values("sp_helpdevice",6,"")
  1507. insert into helpsql values("sp_helpgroup",1,"sp_helpgroup")
  1508. insert into helpsql values("sp_helpgroup",2,"Reports information about a group or about all groups in the current")
  1509. insert into helpsql values("sp_helpgroup",3,"database.")
  1510. insert into helpsql values("sp_helpgroup",4,"")
  1511. insert into helpsql values("sp_helpgroup",5,"   sp_helpgroup [<grpname>]")
  1512. insert into helpsql values("sp_helpgroup",6,"")
  1513. insert into helpsql values("sp_helpindex",1,"sp_helpindex")
  1514. insert into helpsql values("sp_helpindex",2,"Reports information about the indexes on a table.")
  1515. insert into helpsql values("sp_helpindex",3,"")
  1516. insert into helpsql values("sp_helpindex",4,"   sp_helpindex <tabname>")
  1517. insert into helpsql values("sp_helpindex",5,"")
  1518. insert into helpsql values("sp_helpjoins",1,"sp_helpjoins")
  1519. insert into helpsql values("sp_helpjoins",2,"Lists the columns in two tables or views that are likely to be joined.")
  1520. insert into helpsql values("sp_helpjoins",3,"")
  1521. insert into helpsql values("sp_helpjoins",4,"   sp_helpjoins <lafttab>, <righttab>")
  1522. insert into helpsql values("sp_helpjoins",5,"")
  1523. insert into helpsql values("sp_helpkey",1,"sp_helpkey")
  1524. insert into helpsql values("sp_helpkey",2,"Reports information about primary, foreign, and common keys.")
  1525. insert into helpsql values("sp_helpkey",3,"")
  1526. insert into helpsql values("sp_helpkey",4,"   sp_helpkey [<objname>]")
  1527. insert into helpsql values("sp_helpkey",5,"")
  1528. insert into helpsql values("sp_helplanguage",1,"sp_helplanguage")
  1529. insert into helpsql values("sp_helplanguage",2,"Reports information about a particular alternate language or about all")
  1530. insert into helpsql values("sp_helplanguage",3,"languages.")
  1531. insert into helpsql values("sp_helplanguage",4,"")
  1532. insert into helpsql values("sp_helplanguage",5,"   sp_helplanguage [<language>]")
  1533. insert into helpsql values("sp_helplanguage",6,"")
  1534. insert into helpsql values("sp_helplog",1,"sp_helplog")
  1535. go
  1536. dump transaction master with truncate_only
  1537. go
  1538. insert into helpsql values("sp_helplog",2,"Reports the name of the device that contains the first page of the log.")
  1539. insert into helpsql values("sp_helplog",3,"")
  1540. insert into helpsql values("sp_helplog",4,"   sp_helplog")
  1541. insert into helpsql values("sp_helplog",5,"")
  1542. insert into helpsql values("sp_helpremotelogin",1,"sp_helpremotelogin")
  1543. insert into helpsql values("sp_helpremotelogin",2,"Reports information about a particular remote server's logins, or about")
  1544. insert into helpsql values("sp_helpremotelogin",3,"all remote servers' logins.")
  1545. insert into helpsql values("sp_helpremotelogin",4,"")
  1546. insert into helpsql values("sp_helpremotelogin",5,"   sp_helpremotelogin [<remoteserver> [, <remotename>]]")
  1547. insert into helpsql values("sp_helpremotelogin",6,"")
  1548. insert into helpsql values("sp_helprotect",1,"sp_helprotect")
  1549. insert into helpsql values("sp_helprotect",2,"Reports permissions by database object and optionally by user for that")
  1550. insert into helpsql values("sp_helprotect",3,"object.")
  1551. insert into helpsql values("sp_helprotect",4,"")
  1552. insert into helpsql values("sp_helprotect",5,"   sp_helprotect <name> [, <username>]")
  1553. insert into helpsql values("sp_helprotect",6,"")
  1554. insert into helpsql values("sp_helpsegment",1,"sp_helpsegment")
  1555. insert into helpsql values("sp_helpsegment",2,"Reports information about a particular segment or about all of the")
  1556. insert into helpsql values("sp_helpsegment",3,"segments in the current database.")
  1557. insert into helpsql values("sp_helpsegment",4,"")
  1558. insert into helpsql values("sp_helpsegment",5,"   sp_helpsegment [<segname>]")
  1559. insert into helpsql values("sp_helpsegment",6,"")
  1560. insert into helpsql values("sp_helpserver",1,"sp_helpserver")
  1561. insert into helpsql values("sp_helpserver",2,"Reports information about a particular remote server or about all remote")
  1562. insert into helpsql values("sp_helpserver",3,"servers.")
  1563. insert into helpsql values("sp_helpserver",4,"")
  1564. insert into helpsql values("sp_helpserver",5,"   sp_helpserver [<server_name>]")
  1565. insert into helpsql values("sp_helpserver",6,"")
  1566. insert into helpsql values("sp_helpsort",1,"sp_helpsort")
  1567. insert into helpsql values("sp_helpsort",2,"Displays SQL Server's default sort order and character set.")
  1568. insert into helpsql values("sp_helpsort",3,"")
  1569. insert into helpsql values("sp_helpsort",4,"   sp_helpsort")
  1570. insert into helpsql values("sp_helpsort",5,"")
  1571. insert into helpsql values("sp_helpsql",1,"sp_helpsql")
  1572. insert into helpsql values("sp_helpsql",2,"Provides syntax for Transact-SQL statements, system procedures,")
  1573. insert into helpsql values("sp_helpsql",3,"and other special topics.")
  1574. insert into helpsql values("sp_helpsql",4,"")
  1575. insert into helpsql values("sp_helpsql",5,"   sp_helpsql [<'topic'>]")
  1576. insert into helpsql values("sp_helptext",1,"sp_helptext")
  1577. insert into helpsql values("sp_helptext",2,"Prints the text of a stored procedure, trigger, view, default, or")
  1578. insert into helpsql values("sp_helptext",3,"rule.")
  1579. insert into helpsql values("sp_helptext",4,"")
  1580. insert into helpsql values("sp_helptext",5,"   sp_helptext <objname>")
  1581. insert into helpsql values("sp_helptext",6,"")
  1582. insert into helpsql values("sp_helpuser",1,"sp_helpuser")
  1583. insert into helpsql values("sp_helpuser",2,"Reports information about users of a database.")
  1584. insert into helpsql values("sp_helpuser",3,"")
  1585. insert into helpsql values("sp_helpuser",4,"   sp_helpuser [<username>]")
  1586. insert into helpsql values("sp_helpuser",5,"")
  1587. insert into helpsql values("sp_lock",1,"sp_lock")
  1588. insert into helpsql values("sp_lock",2,"Reports information about locks.")
  1589. go
  1590. dump transaction master with truncate_only
  1591. go
  1592. insert into helpsql values("sp_lock",3,"")
  1593. insert into helpsql values("sp_lock",4,"   sp_lock [<spid1> [, <spid2>]]")
  1594. insert into helpsql values("sp_lock",5,"")
  1595. insert into helpsql values("sp_logdevice",1,"sp_logdevice")
  1596. insert into helpsql values("sp_logdevice",2,"Puts the transaction log on a separate database device.")
  1597. insert into helpsql values("sp_logdevice",3,"")
  1598. insert into helpsql values("sp_logdevice",4,"   sp_logdevice <dbname>, <database_device>")
  1599. insert into helpsql values("sp_logdevice",5,"")
  1600. insert into helpsql values("sp_monitor",1,"sp_monitor")
  1601. insert into helpsql values("sp_monitor",2,"Displays statistics about the SQL Server.")
  1602. insert into helpsql values("sp_monitor",3,"")
  1603. insert into helpsql values("sp_monitor",4,"   sp_monitor")
  1604. insert into helpsql values("sp_monitor",5,"")
  1605. insert into helpsql values("sp_password",1,"sp_password")
  1606. insert into helpsql values("sp_password",2,"Adds or changes a password for a SQL Server login ID.")
  1607. insert into helpsql values("sp_password",3,"")
  1608. insert into helpsql values("sp_password",4,"   sp_password <old>, <new> [, <login_id>]")
  1609. insert into helpsql values("sp_password",5,"")
  1610. insert into helpsql values("sp_placeobject",1,"sp_placeobject")
  1611. insert into helpsql values("sp_placeobject",2,"Puts future space allocations for a table or index on a particular")
  1612. insert into helpsql values("sp_placeobject",3,"segment.")
  1613. insert into helpsql values("sp_placeobject",4,"")
  1614. insert into helpsql values("sp_placeobject",5,"   sp_placeobject <segname>, <objname>")
  1615. insert into helpsql values("sp_placeobject",6,"")
  1616. insert into helpsql values("sp_primarykey",1,"sp_primarykey")
  1617. insert into helpsql values("sp_primarykey",2,"Defines a primary key for a table or view.")
  1618. insert into helpsql values("sp_primarykey",3,"")
  1619. insert into helpsql values("sp_primarykey",4,"   sp_primarykey <tabname>, <col1> [, <col2>, <col3>, ..., <col8>]")
  1620. insert into helpsql values("sp_primarykey",5,"")
  1621. insert into helpsql values("sp_recompile",1,"sp_recompile")
  1622. insert into helpsql values("sp_recompile",2,"Causes each stored procedure and trigger that uses the named table to be")
  1623. insert into helpsql values("sp_recompile",3,"recompiled the next time it runs.")
  1624. insert into helpsql values("sp_recompile",4,"")
  1625. insert into helpsql values("sp_recompile",5,"   sp_recompile [<tabname>]")
  1626. insert into helpsql values("sp_recompile",6,"")
  1627. insert into helpsql values("sp_remoteoption",1,"sp_remoteoption")
  1628. insert into helpsql values("sp_remoteoption",2,"Displays or changes remote login options.")
  1629. insert into helpsql values("sp_remoteoption",3,"")
  1630. insert into helpsql values("sp_remoteoption",4,"   sp_remoteoption [<remoteserver>, <loginame>, <remotename>, <optname>,")
  1631. insert into helpsql values("sp_remoteoption",5,"     {TRUE | FALSE}")
  1632. insert into helpsql values("sp_remoteoption",6,"")
  1633. insert into helpsql values("sp_rename",1,"sp_rename")
  1634. insert into helpsql values("sp_rename",2,"Changes the name of a user-created object in the current database.")
  1635. insert into helpsql values("sp_rename",3,"")
  1636. go
  1637. dump transaction master with truncate_only
  1638. go
  1639. insert into helpsql values("sp_rename",4,"   sp_rename <oldname>, <newname>")
  1640. insert into helpsql values("sp_rename",5,"")
  1641. insert into helpsql values("sp_renamedb",1,"sp_renamedb")
  1642. insert into helpsql values("sp_renamedb",2,"Changes the name of a database.")
  1643. insert into helpsql values("sp_renamedb",3,"")
  1644. insert into helpsql values("sp_renamedb",4,"   sp_renamedb <oldname>, <newname>")
  1645. insert into helpsql values("sp_renamedb",5,"")
  1646. insert into helpsql values("sp_serveroption",1,"sp_serveroption")
  1647. insert into helpsql values("sp_serveroption",2,"Displays or changes server options.")
  1648. insert into helpsql values("sp_serveroption",3,"")
  1649. insert into helpsql values("sp_serveroption",4,"   sp_serveroption [<server_name>, <optname>, {TRUE | FALSE}]")
  1650. insert into helpsql values("sp_serveroption",5,"")
  1651. insert into helpsql values("sp_setlangalias",1,"sp_setlangalias")
  1652. insert into helpsql values("sp_setlangalias",2,"Assigns or changes the alias for an alternate language.")
  1653. insert into helpsql values("sp_setlangalias",3,"")
  1654. insert into helpsql values("sp_setlangalias",4,"   sp_setlangalias <language>, <alias>")
  1655. insert into helpsql values("sp_setlangalias",5,"")
  1656. insert into helpsql values("sp_spaceused",1,"sp_spaceused")
  1657. insert into helpsql values("sp_spaceused",2,"Displays the number of rows, the disk space reserved, and the disk")
  1658. insert into helpsql values("sp_spaceused",3,"space used by database objects.")
  1659. insert into helpsql values("sp_spaceused",4,"")
  1660. insert into helpsql values("sp_spaceused",5,"   sp_spaceused [<objname>]")
  1661. insert into helpsql values("sp_spaceused",6,"")
  1662. insert into helpsql values("sp_unbindefault",1,"sp_unbindefault")
  1663. insert into helpsql values("sp_unbindefault",2,"Unbinds a default value from a column or from a user-defined datatype.")
  1664. insert into helpsql values("sp_unbindefault",3,"")
  1665. insert into helpsql values("sp_unbindefault",4,"   sp_unbindefault <objname> [, FUTUREONLY]")
  1666. insert into helpsql values("sp_unbindefault",5,"")
  1667. insert into helpsql values("sp_unbindrule",1,"sp_unbindrule")
  1668. insert into helpsql values("sp_unbindrule",2,"Unbinds a rule from a column or user-defined datatype.")
  1669. insert into helpsql values("sp_unbindrule",3,"")
  1670. insert into helpsql values("sp_unbindrule",4,"   sp_unbindrule <objname> [, FUTUREONLY]")
  1671. insert into helpsql values("sp_unbindrule",5,"")
  1672. insert into helpsql values("sp_who",1,"sp_who")
  1673. insert into helpsql values("sp_who",2,"Reports information about current SQL Server users and processes.")
  1674. insert into helpsql values("sp_who",3,"")
  1675. insert into helpsql values("sp_who",4,"   sp_who [<login_id> | <'spid'>]")
  1676. insert into helpsql values("sp_column_privileges",1,"sp_column_privileges")
  1677. insert into helpsql values("sp_column_privileges",2,"Returns column privilege information for a single table in the current")
  1678. insert into helpsql values("sp_column_privileges",3,"DBMS environment.")
  1679. insert into helpsql values("sp_column_privileges",4,"")
  1680. insert into helpsql values("sp_column_privileges",5,"   sp_column_privileges <table_name> [, <table_owner>]")
  1681. insert into helpsql values("sp_column_privileges",6,"     [, <table_qualifier>] [, <column_name>]")
  1682. insert into helpsql values("sp_column_privileges",7,"")
  1683. go
  1684. dump transaction master with truncate_only
  1685. go
  1686. insert into helpsql values("sp_columns",1,"sp_columns")
  1687. insert into helpsql values("sp_columns",2,"Returns column information for a single object that can be queried in")
  1688. insert into helpsql values("sp_columns",3,"the current DBMS environment. The returned columns belong either")
  1689. insert into helpsql values("sp_columns",4,"to a table or view.")
  1690. insert into helpsql values("sp_columns",5,"")
  1691. insert into helpsql values("sp_columns",6,"   sp_columns <table_name> [, <table_owner>] [, <table_qualifier>]")
  1692. insert into helpsql values("sp_columns",7,"     [, <column_name>]")
  1693. insert into helpsql values("sp_columns",8,"")
  1694. insert into helpsql values("sp_databases",1,"sp_databases")
  1695. insert into helpsql values("sp_databases",2,"Lists databases present in the SQL Server installation or accessible")
  1696. insert into helpsql values("sp_databases",3,"through a database gateway.")
  1697. insert into helpsql values("sp_databases",4,"")
  1698. insert into helpsql values("sp_databases",5,"   sp_databases")
  1699. insert into helpsql values("sp_databases",6,"")
  1700. insert into helpsql values("sp_datatype_info",1,"sp_datatype_info")
  1701. insert into helpsql values("sp_datatype_info",2,"Returns information about the datatypes supported by the DBMS.")
  1702. insert into helpsql values("sp_datatype_info",3,"")
  1703. insert into helpsql values("sp_datatype_info",4,"   sp_datatype_info <data_type>")
  1704. insert into helpsql values("sp_datatype_info",5,"")
  1705. insert into helpsql values("sp_fkeys",1,"sp_fkeys")
  1706. insert into helpsql values("sp_fkeys",2,"Returns logical foreign key information for the current DBMS environment.")
  1707. insert into helpsql values("sp_fkeys",3,"")
  1708. insert into helpsql values("sp_fkeys",4,"   sp_fkeys <pktable_name> [, <pktable_owner>] [, <pktable_qualifier>]")
  1709. insert into helpsql values("sp_fkeys",5,"   [, <fktable_name>] [, <fktable_owner>] [, <fktable_qualifier>]")
  1710. insert into helpsql values("sp_fkeys",6,"")
  1711. insert into helpsql values("sp_pkeys",1,"sp_pkeys")
  1712. insert into helpsql values("sp_pkeys",2,"Returns primary key information for a single table in the current DBMS")
  1713. insert into helpsql values("sp_pkeys",3,"environment.")
  1714. insert into helpsql values("sp_pkeys",4,"")
  1715. insert into helpsql values("sp_pkeys",5,"   sp_pkeys <table_name> [, <table_owner>] [, <table_qualifier>]")
  1716. insert into helpsql values("sp_pkeys",6,"")
  1717. insert into helpsql values("sp_server_info",1,"sp_server_info")
  1718. insert into helpsql values("sp_server_info",2,"Returns a list of attribute names and matching values for SQL Server or")
  1719. insert into helpsql values("sp_server_info",3,"database gateway and/or the underlying data source.")
  1720. insert into helpsql values("sp_server_info",4,"")
  1721. insert into helpsql values("sp_server_info",5,"   sp_server_info [<attribute_id>]")
  1722. insert into helpsql values("sp_server_info",6,"")
  1723. insert into helpsql values("sp_special_columns",1,"sp_special_columns")
  1724. insert into helpsql values("sp_special_columns",2,"Returns the optimal set of columns that uniquely identify a row in the")
  1725. insert into helpsql values("sp_special_columns",3,"table and columns that are automatically updated when any value in")
  1726. insert into helpsql values("sp_special_columns",4,"the row is updated by a transaction.")
  1727. insert into helpsql values("sp_special_columns",5,"")
  1728. insert into helpsql values("sp_special_columns",6,"   sp_special_columns <table_name> [, <table_owner>]")
  1729. insert into helpsql values("sp_special_columns",7,"     [, <table_qualifier>] [, <column_type>]")
  1730. insert into helpsql values("sp_special_columns",8,"")
  1731. insert into helpsql values("sp_sproc_columns",1,"sp_sproc_columns")
  1732. insert into helpsql values("sp_sproc_columns",2,"Returns column information for a single stored procedure in the current")
  1733. insert into helpsql values("sp_sproc_columns",3,"DBMS environment.")
  1734. insert into helpsql values("sp_sproc_columns",4,"")
  1735. insert into helpsql values("sp_sproc_columns",5,"   sp_sproc_columns <sp_name> [, <sp_owner>] [, <sp_qualifier>]")
  1736. insert into helpsql values("sp_sproc_columns",6,"     [, <column_name>]")
  1737. insert into helpsql values("sp_sproc_columns",7,"")
  1738. go
  1739. dump transaction master with truncate_only
  1740. go
  1741. insert into helpsql values("sp_statistics",1,"sp_statistics")
  1742. insert into helpsql values("sp_statistics",2,"Returns a list of all indexes in a single table, determined by")
  1743. insert into helpsql values("sp_statistics",3,"<table_qualifier>, <table_owner>, and <table_name> parameters.")
  1744. insert into helpsql values("sp_statistics",4,"")
  1745. insert into helpsql values("sp_statistics",5,"   sp_statistics <table_name> [, <table_owner>] [, <table_qualifier>]")
  1746. insert into helpsql values("sp_statistics",6,"")
  1747. insert into helpsql values("sp_stored_procedures",1,"sp_stored_procedures")
  1748. insert into helpsql values("sp_stored_procedures",2,"Returns a list of stored procedures in the current DBMS environment.")
  1749. insert into helpsql values("sp_stored_procedures",3,"")
  1750. insert into helpsql values("sp_stored_procedures",4,"   sp_stored_procedures [<sp_name>] [, <sp_owner>] [, <sp_qualifier>]")
  1751. insert into helpsql values("sp_stored_procedures",5,"")
  1752. insert into helpsql values("sp_table_privileges",1,"sp_table_privileges")
  1753. insert into helpsql values("sp_table_privileges",2,"Returns table privilege information for a single table in the current")
  1754. insert into helpsql values("sp_table_privileges",3,"DBMS environment.")
  1755. insert into helpsql values("sp_table_privileges",4,"")
  1756. insert into helpsql values("sp_table_privileges",5,"   sp_table_privileges <table_name> [, <table_owner>]")
  1757. insert into helpsql values("sp_table_privileges",6,"     [, <table_qualifier>]")
  1758. insert into helpsql values("sp_table_privileges",7,"")
  1759. insert into helpsql values("sp_tables",1,"sp_tables")
  1760. insert into helpsql values("sp_tables",2,"Returns a list of objects that can be queried in the current DBMS")
  1761. insert into helpsql values("sp_tables",3,"environment.")
  1762. insert into helpsql values("sp_tables",4,"")
  1763. insert into helpsql values("sp_tables",5,"   sp_tables [<table_name>] [, <table_owner>] [, <table_qualifier>]")
  1764. insert into helpsql values("sp_tables",6,"     [, <table_type>]")
  1765. insert into helpsql values("sp_tables",7,"")
  1766. go
  1767. grant execute on sp_helpsql to public
  1768. grant select on  helpsql to public
  1769. go
  1770. dump transaction master with truncate_only
  1771. go
  1772. checkpoint
  1773. go
  1774.