Viewing 15 posts - 211 through 225 (of 345 total)
You can format the rows yourself and insert them into a global temporary table and then do the output from that.
You can then use bcp or isql for the output.
...
February 23, 2002 at 9:12 am
Something like this.
Could put it in a function.
declare @i int, @j-2 int, @end int
select @i = 1, @j-2 = 0, @end = 0
while @end = 0
begin
select...
February 21, 2002 at 5:33 am
What format are the text files in?
I would try to do this using bcp.
Treat the import as a separate step to anything else and have the staging table the same...
February 20, 2002 at 9:46 am
You can use a kill command to get rid of them.
This will terminate the connection as soon as it can.
If the connection is in the middle of a query it...
February 19, 2002 at 5:55 am
I use dynamic sql for converting hex
set@sql = 'set @bin = 0x' + @char
set@parm = '@bin varbinary(' + convert(varchar(10),len(@char)/2) + ') output'
exec sp_executesql @sql, @parm, @bin...
February 19, 2002 at 5:52 am
I never rely on the number of records copied as reported by bcp.
I always get a control file from thye source which contains summary info (e.g. no. of recs) and...
February 18, 2002 at 9:55 am
SELECT ITEMID FROM ITEMS
WHERE ',' + @Rule + ',' like '%,' + convert(varchar(10),itRULE) + ',%'
This will only scan an index though.
February 18, 2002 at 9:47 am
see
Administering SQL Server Release Control
direct link at the moment
http://home.btclick.com/NIGELRIVETT/SQLServerReleaseControl.htm
February 18, 2002 at 9:42 am
You are trying to use English format dates. With v6 if the server or operating system were installed as American then sql server would default to mm/dd/yyyy and it was...
February 17, 2002 at 8:43 pm
To get the error message you need to look at the output buffer as the substitutions are not held anywhere.
An example of how to do this is at
February 16, 2002 at 10:50 pm
see
Access Temp Tables Across SPs
Which includes a bit on accessing temp tables created in d-sql.
February 2, 2002 at 4:28 pm
Sorry to advertise another site here but you might look at
http://www.sqlteam.com/Forums/topic.asp?TOPIC_ID=12229
Which was concerning someone else trying to build an audit trail trigger.
Also info that might be applicable at
January 24, 2002 at 2:28 am
try a
use sharan
statement.
January 21, 2002 at 11:54 pm
One difference in being a dba to most other work (similar to networking though) is that a main part of the job is protecting a company from it's own incompetence.
You...
January 2, 2002 at 5:59 am
Viewing 15 posts - 211 through 225 (of 345 total)