|
Type : Memento - Niveau : 1 / 5
Voici un memento des requetes les plus utiles dans le quotidien d'un developpeur.
Requête 1 : Rechercher un objet (table, procedure stockée..), dont le texte contient une chaine de caractère.
declare @vSearchString nvarchar(200)
set @vSearchString = 'STATE_ACTION'
select distinct sysobjects.xtype, sysobjects.name
from syscomments
inner join sysobjects on sysobjects.id = syscomments.id
where syscomments.text like '%' + ltrim(rtrim(@vSearchString)) + '%'
order by 1
Categories: Developpements, SQL Serveur
The words you entered did not match the given text. Please try again.
Oops!
Oops, you forgot something.