How to get the extension of a file name using a SQL Server stored procedure -


how extension of file name using sql server stored procedure?

i want extension of file name

for example, if file name sdgfh_h670-ff.docx, result should .docx.

you can use sql server's built in string functions:

select right('sdgfh_h670-ff.docx',charindex('.',reverse('sdgfh_h670-ff.docx'))) 

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -