RamuGblogs
Thursday, 19 July 2012
StoredProcedure used in Jobs
select
sj.name
as job_name, st.command
from sysjobs sj
join sysjobsteps st
on sj.job_id = st.job_id
where st.command like '%storeproce%'
Thursday, 5 July 2012
To Split the column values
Table1
Value String
1
Cleo
,
Smith
Select
Value
,
Substring
(
FullName
,
1
,
Charindex
(
','
,
FullName
)
-1
)
as
Name
,
Substring
(
FullName
,
Charindex
(
','
,
FullName
)
+1
,
LEN
(
FullName
))
as
Surname
from
Table1
Output
Value Name Surname
1
Cleo Smith
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)