Viewing 15 posts - 2,836 through 2,850 (of 3,543 total)
For non negative values I prefer
REPLACE(STR(512,15,0),' ','0')
January 21, 2004 at 7:05 am
Check language setting for login on new server. This can affect date input.
January 20, 2004 at 7:05 am
You can only build a cursor using a SELECT statement.
Use a temp table, e.g.
CREATE TABLE #temp (col1, col2 ...)
INSERT INTO #temp EXECUTE proc1
DECLARE cursor_name CURSOR
FOR SELECT col1, col2 ......
January 20, 2004 at 6:46 am
This solution uses a loop instead of a function
CREATE TABLE #temp (Claim_ID, Cust_Name, Entry_Date, ReportsPrinted)
INSERT INTO #temp
SELECT DISTINCT Claim_ID,Cust_Name,Entry_Date,NULL
FROM Claim
DECLARE @report_type char(1)
SELECT @report_type...
January 19, 2004 at 7:05 am
Use ActiveX workflow script to stop processing if duplicate_count>0 by setting
Main = DTSStepScriptResult_DontExecuteTask
January 13, 2004 at 8:27 am
The sid of the specified user in the 'current database' is changed to the sid of the specified login. If you use the proc on the 'new database' the 'old...
January 13, 2004 at 7:09 am
Try adding
;ANSINPW=OFF
to the OPENROWSET connection string.
January 9, 2004 at 6:29 am
Nice
Just beginning to get to grips with it.
Noticed today in Active threads, if on a page a while and then move to...
January 8, 2004 at 6:55 am
I would preprocess the files first before loading into sql.
Use DOS command
findstr /i /r "." \folder\* > \difffolder\newfile.txt
this will produce single file containing each line of all the files with the...
January 8, 2004 at 6:42 am
Example TSQL from BOL
RESTORE DATABASE MyNwind2_Test
FROM MyNwind_2
WITH
MOVE 'MyNwind2_data' TO 'D:\MyData\MyNwind2_Test_data.mdf',
MOVE 'MyNwind2_log' TO 'D:\MyData\MyNwind2_Test_log.ldf'
January 8, 2004 at 6:01 am
Why not bcp?
Create a proc to output the data in the format you want then use either bcp, dts or isql to output to a text file.
January 8, 2004 at 5:52 am
I would do the following
Create a staging table (RecordID int IDENTITY(1,1), name, otherinfo, grade1, grade2, grade3, grade4)
Create a single DTS package to
1. Truncate staging table
2. RESEED if...
January 7, 2004 at 2:43 am
Viewing 15 posts - 2,836 through 2,850 (of 3,543 total)