Viewing 15 posts - 1,621 through 1,635 (of 3,544 total)
Didn't you mean
IF NOT EXISTS(select * from information_schema.columns where tablename='programversion' and columnname=@col )
Far away is close at hand in the images of elsewhere.
Anon.
March 28, 2007 at 7:40 am
Looks like direct recursion and you have the RECURSIVE_TRIGGERS option set
As you stated, use 'IF UPDATE ()' to control the update in the trigger
or use TRIGGER_NESTLEVEL
Far away is close at hand in the images of elsewhere.
Anon.
March 28, 2007 at 7:35 am
SELECT x.EMPID,COALESCE(a.[NAME],'') AS [NAME],COALESCE(l.LICENSE,'') AS [LICENSE]
FROM (SELECT N'111111' AS [EMPID]) x
LEFT JOIN @HREMP_adp a ON a.EMPID = x.EMPID
LEFT JOIN @License l ON l.EMPID = x.EMPID
Far away is close at hand in the images of elsewhere.
Anon.
March 28, 2007 at 7:23 am
Other than trying Sergiy's approach. If the dataset is large then performance will always be an issue whatever solution you try.
To avoid the use of a function you could try...
Far away is close at hand in the images of elsewhere.
Anon.
March 27, 2007 at 6:54 am
wow Jeff you sure ask the toughies ![]()
Wish I knew the answer ![]()
Far away is close at hand in the images of elsewhere.
Anon.
March 27, 2007 at 2:32 am
| Only the International (yyyy-mm-dd) is self-describing and explicit |
Only if you know the displayed value is in that format
What...
Far away is close at hand in the images of elsewhere.
Anon.
March 27, 2007 at 2:14 am
Bad question ![]()
'Default Instance' has a default port, 'Named Instances' do not ![]()
The question should have specified 'Default...
Far away is close at hand in the images of elsewhere.
Anon.
March 23, 2007 at 8:03 am
Firstly, views cannot have duplicate column names therefore if you have duplicate names then they are from your own query not the view, so use the alias in your query...
Far away is close at hand in the images of elsewhere.
Anon.
March 22, 2007 at 8:02 am
Based on the data supplied
Field1
LEFT([Address],LEN([Address])-CHARINDEX(' ',REVERSE([Address]),CHARINDEX(' .',REVERSE([Address]))+1))
Field2
SUBSTRING([Address],LEN([Address])-CHARINDEX(' ',REVERSE([Address]),CHARINDEX(' .',REVERSE([Address]))+1)+2,255)
If the data varies from the supplied standard or there are trailing spaces then the above will not work without adding RTRIM...
Far away is close at hand in the images of elsewhere.
Anon.
March 21, 2007 at 8:28 am
Just thought ![]()
Do you want to extract or remove the img tag ![]()
Far away is close at hand in the images of elsewhere.
Anon.
March 21, 2007 at 8:13 am
| Since your input is a xml document check out sp_xml_preparedocument |
The HTML given is not XML compliant
One way to...
Far away is close at hand in the images of elsewhere.
Anon.
March 21, 2007 at 8:12 am
Look up in BOL (Books Online)
How to create a job (Enterprise Manager)
Creating Job Steps (specifically Transact-SQL Job Steps as you will want to EXEC your proc)
How to schedule a job...
Far away is close at hand in the images of elsewhere.
Anon.
March 14, 2007 at 7:45 am
better solution (one less join
)
SELECT a.[value],n.number
FROM (SELECT [value],COUNT(*) AS [Num] FROM GROUP...
Far away is close at hand in the images of elsewhere.
Anon.
March 14, 2007 at 3:06 am
Do you mean like this
SELECT a.[value],n.number
FROM a
INNER JOIN (SELECT [value],COUNT(*) AS [Num]
FROM GROUP BY [value]) s
ON s.[value] = a.[value]
INNER JOIN master.dbo.spt_values n ON...
Far away is close at hand in the images of elsewhere.
Anon.
March 13, 2007 at 8:20 am
Providing that Subjects in ASC order for [Name] does not matter then
SELECT
CASE WHEN a.Subjects1 = b.Subjects2 THEN a.Name1 ELSE a.Subjects1 END AS [Name],
CASE WHEN a.Subjects1 = b.Subjects2 THEN a.Subjects1...
Far away is close at hand in the images of elsewhere.
Anon.
March 13, 2007 at 8:10 am
Viewing 15 posts - 1,621 through 1,635 (of 3,544 total)