Viewing 15 posts - 106 through 120 (of 137 total)
How about specifying EOFCRLF as the row terminator when you BCP in? Then it shouldn't bring the EOF into the field.
-Dan
November 14, 2002 at 4:12 pm
Antares is right...you must call it like this:
select * from OPENQUERY(TSTCMDDB1,'select * from master.dbo.usysprocess(51)')
-Dan
November 14, 2002 at 4:05 pm
One trick you may be able to use if the flat file is fixed width or comma/tab delimited is to create 1 large column in a work table, named "text1"...
November 13, 2002 at 4:35 pm
Ah, the never-ending debate...I worked on Sybase/UNIX platform for 5 years and now I work with SQL Server, and I can say without a doubt that MS SQL Server 2000...
November 13, 2002 at 9:06 am
You could use an insert trigger to put a record into a control table that holds those needing the backorder process run on them. Then a SQL server job...
November 11, 2002 at 2:24 pm
Try:
SELECT [contact-date], FROM custlog
WHERE Convert(varchar,[contact-date],101) like '07/01/2002%'
OR
-- This will use the index, if there is one...
SELECT [contact-date], FROM custlog
where [contact-date] > Convert(smalldatetime,'07/01/2002')
and [contact-date] <=...
November 11, 2002 at 2:18 pm
I think this is a bug with Microsoft. You may have to convert it to a char and pad it with spaces or zeros.
-Dan
November 7, 2002 at 10:47 am
Try This:
IF NOT EXISTS (SELECT * FROM sysobjects WHERE [Name] = 'TAB1' AND Type = 'U')
BEGIN
CREATE TABLE TAB1 ...
END
-Dan
November 7, 2002 at 10:25 am
Thanks, that's exactly what I needed!
-Dan
November 7, 2002 at 9:40 am
Dynamic SQL is slower due to the fact that the execution plans cannot be re-used. Even with sp_executesql, the execution plan can be re-used if the query stays the...
November 6, 2002 at 3:43 pm
Typically data can be returned in the order of the clustered index without the use of ORDER BY, but there are some exceptions:
1) If the optimizer determines that the cost...
November 6, 2002 at 3:19 pm
Keep in mind that doing a SELECT inside a transaction still does not put an exclusive lock on that row. You must do something that involves a logged operation...
November 6, 2002 at 2:55 pm
I find that this does suppress the count messages:
set nocount on
exec master..xp_cmdshell 'dir *.txt'
How are you calling the extended proc? By the way, I'm on SQL 2000.
-Dan
November 6, 2002 at 8:56 am
The field that is being updated needs to be checked in the WHERE clause. For example, if you are updating the InUse field, then it must say in the...
November 6, 2002 at 8:45 am
Thanks, I'll give it a shot!
-Dan
November 5, 2002 at 3:53 pm
Viewing 15 posts - 106 through 120 (of 137 total)