Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_validname

  No additional text.


Syntax

---------------------------- sp_validname 
CREATE PROCEDURE sys.sp_validname
	@name			sysname,
	@raise_error	bit = 1
AS
	
	--	Check for valid SQL-Server identifiers: All non-binary-zero
	--	characters are valid.  String must not be null or empty.
	
	-- QuoteName() will be non-null only if no null-characters.  Also check length.
	IF (quotename(@name) is not null AND datalength(@name) > 0)
		RETURN (0)

	-- Bad Name
	if @raise_error = 1
		raiserror (15004,-1,-1)
	return (1) -- sp_validname

 
Last revision 2008RTM
See also

  sp_addapprole (Procedure)
sp_adddistributor (Procedure)
sp_addextendedproperty (Procedure)
sp_addlogin (Procedure)
sp_addmergepullsubscription (Procedure)
sp_addmergepullsubscription_agent (Procedure)
sp_addmergepushsubscription_agent (Procedure)
sp_addmergesubscription (Procedure)
sp_addpullsubscription (Procedure)
sp_addpullsubscription_agent (Procedure)
sp_addrole (Procedure)
sp_addsubscriber_schedule (Procedure)
sp_addumpdevice (Procedure)
sp_articlesynctranprocs (Procedure)
sp_cdc_extract_column (Procedure)
sp_cdc_verify_capture_instance (Procedure)
sp_cdc_verify_role_name (Procedure)
sp_cleanmergelogfiles (Procedure)
sp_configure_peerconflictdetection (Procedure)
sp_create_removable (Procedure)
sp_defaultdb (Procedure)
sp_defaultlanguage (Procedure)
sp_dropapprole (Procedure)
sp_dropdistpublisher (Procedure)
sp_dropextendedproperty (Procedure)
sp_droplogin (Procedure)
sp_dropmergepullsubscription (Procedure)
sp_dropmergesubscription (Procedure)
sp_droppullsubscription (Procedure)
sp_droprole (Procedure)
sp_grantdbaccess (Procedure)
sp_helparticledts (Procedure)
sp_helpmergearticlecolumn (Procedure)
sp_helpmergelogfiles (Procedure)
sp_helpmergelogfileswithdata (Procedure)
sp_helpmergelogsettings (Procedure)
sp_helpmergepullsubscription (Procedure)
sp_helpmergesubscription (Procedure)
sp_helppullsubscription (Procedure)
sp_helpreplicationdb (Procedure)
sp_helpreplicationdboption (Procedure)
sp_help_peerconflictdetection (Procedure)
sp_IHaddpublisher (Procedure)
sp_IHarticlecolumn (Procedure)
sp_IHarticleview (Procedure)
sp_IHCheckSourceTable (Procedure)
sp_IHdroparticle (Procedure)
sp_IHdroppublication (Procedure)
sp_IHdroppublisher (Procedure)
sp_IHhelparticle (Procedure)
sp_IHhelppublication (Procedure)
sp_IHmarksubscriptionvalidation (Procedure)
sp_mergearticlecolumn (Procedure)
sp_MSaddexecarticle (Procedure)
sp_MSaddserver_internal (Procedure)
sp_MSgetpeertopeercommands (Procedure)
sp_MSmarksubscriptionvalidation (Procedure)
sp_MSrepl_addarticle (Procedure)
sp_MSrepl_adddistpublisher (Procedure)
sp_MSrepl_addpushsubscription_agent (Procedure)
sp_MSrepl_addscriptexec (Procedure)
sp_MSrepl_addsubscriber (Procedure)
sp_MSrepl_addsubscription (Procedure)
sp_MSrepl_addsubscription_article (Procedure)
sp_MSrepl_articlecolumn (Procedure)
sp_MSrepl_articlefilter (Procedure)
sp_MSrepl_articleview (Procedure)
sp_MSrepl_changearticle (Procedure)
sp_MSrepl_changearticlecolumndatatype (Procedure)
sp_MSrepl_changepublication (Procedure)
sp_MSrepl_changesubscription (Procedure)
sp_MSrepl_changesubstatus (Procedure)
sp_MSrepl_droparticle (Procedure)
sp_MSrepl_dropsubscriber (Procedure)
sp_MSrepl_dropsubscription (Procedure)
sp_MSrepl_enumfullsubscribers (Procedure)
sp_MSrepl_getpublisherinfo (Procedure)
sp_MSrepl_getsubscription_status_hsnapshot (Procedure)
sp_MSrepl_helparticle (Procedure)
sp_MSrepl_helparticlecolumns (Procedure)
sp_MSrepl_helppublication (Procedure)
sp_MSrepl_helpsubscription (Procedure)
sp_MSrepl_IsLastPubInSharedSubscription (Procedure)
sp_MSrepl_reinitsubscription (Procedure)
sp_MSrepl_snapshot_helppublication (Procedure)
sp_MSrepl_subscriptionagentjobcontrol (Procedure)
sp_MSrepl_testadminconnection (Procedure)
sp_register_custom_scripting (Procedure)
sp_reinitpullsubscription (Procedure)
sp_rename (Procedure)
sp_renamedb (Procedure)
sp_revokedbaccess (Procedure)
sp_revokelogin (Procedure)
sp_scriptsubconflicttable (Procedure)
sp_serveroption (Procedure)
sp_setsubscriptionxactseqno (Procedure)
sp_subscription_cleanup (Procedure)
sp_updateextendedproperty (Procedure)
       



News

  Query a named instance
Sybase+ASE+silent+install
SQL 2008 R2
Deprecated procedures in SQL2008
Reporting Services item-level role definitions
Create all your missing indexes
Converting datetime field
Start MSSQL Server Profiler at time
Replicating MSSQL Server views
Exploring Microsoft Sharepoint
The OLE DB provider "SQLNCLI10" for linked server indicates.
Mobile solar charger
Oracle to SQL Server replication
Cannot insert the value NULL into column
Undocumented Microsoft SQL Server 2008
VMware
Zoekmachine optimalisatie
SQL Servers hidden objects
FckEditor
Flash in Ajax
De hype die AJAX heet
Barcode scannen
MySQL; Gratis, makkelijk en snel!
PHP
sIFR; de combinatie tussen HTML en Flash