Viewing 15 posts - 1,816 through 1,830 (of 3,544 total)
"Errors and Omissions Excepted" ![]()
Far away is close at hand in the images of elsewhere.
Anon.
July 24, 2006 at 2:07 am
Gave up so soon Jeff ![]()
And there I was looking forward to your solution ![]()
Far away is close at hand in the images of elsewhere.
Anon.
July 24, 2006 at 2:04 am
You cannot use LF (ascii 10) as a separator for either BULK INSERT or bcp, see 'terminating characters' under bcp in BOL, quote
When you use bcp interactively and specify \n (newline)...
Far away is close at hand in the images of elsewhere.
Anon.
July 21, 2006 at 7:14 am
Add dbname column to end of your #temptable and try this
exec sp_MSforeachdb @command1 = 'USE [?]'
,@command2='insert #temptable (Owner,Object,Grantee,Grantor,ProtectType,[Action],[Column]) EXEC master.dbo.sp_helprotect @username = ''public'''
,@command3='update #temptable set dbname=''?'' where dbname is null'
Far away is close at hand in the images of elsewhere.
Anon.
July 20, 2006 at 7:18 am
E&OE ![]()
Far away is close at hand in the images of elsewhere.
Anon.
July 19, 2006 at 7:28 am
SELECT a.Applicant Name, a.Specialization
FROM [ApplicantTable] a
LEFT OUTER JOIN [ShortlistTable] s
ON s.ApplicantName = a.ApplicantName
WHERE a.Specialization = @Specialization
AND ISNULL(s.EmployeeID,0) <> @EmployeeID
Far away is close at hand in the images of elsewhere.
Anon.
July 19, 2006 at 6:56 am
Also
Where is the table which intPickListItemType (FK) points to?
What does strDescription contain? Is it relevant?
How and what to, do you translate intSpecies, intAge, intHeight, intWidth, intLocality, intDistrict to?
Far away is close at hand in the images of elsewhere.
Anon.
July 19, 2006 at 6:04 am
Please clarify 'best match' and 'worst match'.
Is best where all parameters match (if so does blank/null param mean best?) and worst where no match. What about in between and/or different...
Far away is close at hand in the images of elsewhere.
Anon.
July 17, 2006 at 7:14 am
You could use xp_execresultset to set database context, e.g.
DECLARE @db varchar(255), @sql nvarchar(4000)
SET @sql = 'SELECT ''SELECT [name] FROM sysobjects WHERE type = ''''U'''''''
SET @db = ''
WHILE...
Far away is close at hand in the images of elsewhere.
Anon.
July 17, 2006 at 7:02 am
One of the dates input to the proc contains invalid characters or is in the wrong format, ie dd/mm/yy when sql is expecting mm/dd/yyyy or vice versa. Check the format...
Far away is close at hand in the images of elsewhere.
Anon.
July 14, 2006 at 8:19 am
I have used both money rounded to 2 dec places and numeric to 2 dec places to hold money. Nowadays I prefer to use numeric so that it is clear...
Far away is close at hand in the images of elsewhere.
Anon.
July 14, 2006 at 7:49 am
Please post (or edit the first post) the complete question
Far away is close at hand in the images of elsewhere.
Anon.
July 14, 2006 at 6:46 am
UPDATE
SET Items = STUFF(Items,6,0,'D')
WHERE Items LIKE '[0-9][0-9][0-9][0-9]AF'
This will save you updating unnecessary rows
Far away is close at hand in the images of elsewhere.
Anon.
July 14, 2006 at 6:40 am
There are samples of a split function on this site, so you can do this
CREATE PROCEDURE MyProc
@ServiceTadId varchar(8000),
@UserId int,
@Duration int,
@StartDate DateTime,
@EndDate DateTime,
@Comments char
AS...
Far away is close at hand in the images of elsewhere.
Anon.
July 14, 2006 at 6:31 am
| You will see that you have a table #something. So table variables are not stored in memory they... |
Far away is close at hand in the images of elsewhere.
Anon.
July 14, 2006 at 5:03 am
Viewing 15 posts - 1,816 through 1,830 (of 3,544 total)