Viewing 15 posts - 196 through 210 (of 345 total)
something like
declare @d datetime
select @d = '20030101'
while @d < '20040101'
begin
select dateadd(ww,2,dateadd(dd,(9-datepart(dw,@d))%7, @d))
select @d = dateadd(mm,1,@d)
end
Cursors never.
DTS - only when needed and never to control.
March 17, 2003 at 8:16 pm
something like
declare @n varchar(128)
while exists (select * from INFORMATION_SCHEMA.ROUTINES where ROUTINE_SCHEMA <> 'dbo')
begin
select @n = ROUTINE_SCHEMA + '.' + ROUTINE_NAME from (select top 1 ROUTINE_SCHEMA, ROUTINE_NAME from INFORMATION_SCHEMA.ROUTINES where ROUTINE_SCHEMA...
March 17, 2003 at 5:46 pm
You can use osql or bcp and master..xp_cmdshell.
see
Creating a text file from a stored procedure
But I wouldn't advise ifle access in a trigger.
Cursors never.
DTS - only when needed...
March 17, 2003 at 12:44 pm
If the field isn't padded then it isn't a fixed width file.
Do you mean that you have a \n at the end of every row?
Then bcp into a single column...
March 17, 2003 at 12:26 pm
I don't think what you are aiming for can be done via filegroups.
If your applications have unrelated database objects thyen put them in separate databases then they can be backed...
March 17, 2003 at 8:33 am
Should be a slight performance gain.
But a huge gain in flexibility, security, maintenance, debugging, ...
(if all access is via SPs).
March 16, 2003 at 9:14 am
Look at the job scheduler.
It does very similar things and you can get some ideas from the structure of the tables.
March 16, 2003 at 9:06 am
try EXECUTE (@AlertStmt)
Glad to see someone else does that too :).
March 16, 2003 at 9:02 am
Always create/chage objects from scripts stored in sourcesafe. In this way you will get a change history.
Your problem will never arise because you will have run a script that deletes...
January 26, 2003 at 5:02 pm
Try looking at the query plan.
You may have to update statistics or rebuild indexes (defrag).
January 26, 2003 at 4:56 pm
Your conversations start.
'No I can't. Now what did you want.'
March 1, 2002 at 9:47 am
Tell the CFO that if he wants to add a table which makes the database 6 times the size then someone will have to pay for it.
What are the people...
March 1, 2002 at 9:43 am
I woud guess that is why there are the two 'is null' checks - to preserve the outer join.
Could get rid of them and include the where clause in the...
March 1, 2002 at 9:38 am
Viewing 15 posts - 196 through 210 (of 345 total)