Viewing 15 posts - 1,816 through 1,830 (of 3,543 total)
Gave up so soon Jeff
And there I was looking forward to your solution
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)...
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'
July 20, 2006 at 7:18 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
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?
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...
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...
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...
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...
July 14, 2006 at 7:49 am
Please post (or edit the first post) the complete question
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
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...
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... |
July 14, 2006 at 5:03 am
Yes you can
Or I sometimes declare it with the create table, e.g.
CREATE TABLE #mytable (mykey int PRIMARY KEY CLUSTERED, mycol char(1))
to let...
July 14, 2006 at 2:46 am
Viewing 15 posts - 1,816 through 1,830 (of 3,543 total)