Viewing 15 posts - 166 through 180 (of 484 total)
you can use the CONVERT function in 6.5.
Simon Sabin
Co-author of SQL Server 2000 XML Distilled
November 20, 2002 at 2:42 pm
inserted and deleted are only available from the scope of the trigger. You can't even access them from an SP called from the trigger.
You either have to use global temp...
November 20, 2002 at 2:40 pm
You need to use a format file, to import fixed width into different columns
Simon Sabin
Co-author of SQL Server 2000 XML Distilled
November 20, 2002 at 2:18 pm
The UPDATE function will return true if that column was included in the SET clause of the UPDATE statement even if the value does not change.
Your trigger will only...
November 20, 2002 at 2:17 pm
Or you could move to IIS and win2000
Simon Sabin
Co-author of SQL Server 2000 XML Distilled
November 20, 2002 at 2:12 pm
You need o use isql. or do something funky like add the column headers to the resultset i.e
select 'col1', 'col2', 'col3'
union all
select col1, col2, col3
from mytable
Simon Sabin
Co-author of SQL Server...
November 20, 2002 at 2:07 pm
use RAISERROR in the SP should do it
Simon Sabin
Co-author of SQL Server 2000 XML Distilled
November 20, 2002 at 10:45 am
DTS is probably the neatest solution.
You can run them using DTSRUN from the command prompt or as a scheduled job
Simon Sabin
Co-author of SQL Server 2000 XML Distilled
November 20, 2002 at 10:43 am
Simon true. you do have to use cursors, but you need to know when to use cursors. If you don't know try not to. Your example is one where you...
November 20, 2002 at 10:41 am
How long does it take to run? could it be disconnecting automatically?
Can you paste more code?
Simon Sabin
Co-author of SQL Server 2000 XML Distilled
November 20, 2002 at 10:29 am
You'll have to rename the table,
drop the constraints
create the new table
then insert the data back into the new table from the old table.
Finally recreate the constraints
Simon Sabin
Co-author of SQL...
November 20, 2002 at 10:16 am
ALTER TABLE TableName ALTER COLUMN ColumnName varchar(5)
Simon Sabin
Co-author of SQL Server 2000 XML Distilled
November 20, 2002 at 10:15 am
Make sure that at the bottom of each SP script is a line.
GRANT EXECUTE sp_something TO Developer
That should do it.
Simon Sabin
Co-author of SQL Server 2000 XML Distilled
November 20, 2002 at 10:12 am
Nope, you can rename all but the primary one, by adding new ones, emptying the old ones (which copies data to the new ones).
Simon Sabin
Co-author of SQL Server 2000 XML...
November 20, 2002 at 10:01 am
I have wrote a little app that scripts everything and then I compare the files with sourcesafe. This also means I can check with my stored version of the database
Simon...
November 20, 2002 at 10:00 am
Viewing 15 posts - 166 through 180 (of 484 total)