Viewing 15 posts - 4,366 through 4,380 (of 5,103 total)
Can you use another DATABASE ![]()
HTH
* Noel
December 10, 2004 at 10:34 am
OR:
select right('00'+ cast(month(getdate()) as varchar(2)),2)
* Noel
November 22, 2004 at 1:36 pm
Just one minor change to snow.surfer on the select list use:
SELECT IsNull(counts.company_no,'?') as Company_no, depts.dept_no, IsNull(counts.count,0) as Counts FROM ...
HTH
* Noel
November 22, 2004 at 1:29 pm
If you DROP and recreate the table Yes of course you will get the error but in that case you could DISABLE the Constraint do your stuff and Re enable...
* Noel
November 22, 2004 at 12:25 pm
Use a foreign Key Constraint with a NOT Null option on the column
HTH
* Noel
November 22, 2004 at 11:25 am
Sorry but I believe that does NOT answer the question posted
![]()
* Noel
November 22, 2004 at 11:22 am
select P1.Person_id from P_Person P1 join P_Person P2 on P1.Person_id =P2.Person_ID where P1.Comp_id=1 and P2.Comp_id=2
* Noel
November 22, 2004 at 8:36 am
Watch out for that Identity Function Solution with select into
IT DOES NOT ALWAYS WORKS !
hungry for why?
--> look in here
HTH
* Noel
November 10, 2004 at 10:28 am
this looks like an indexing problem to me ![]()
* Noel
October 26, 2004 at 9:29 am
try varchar(8000), should you need more just pass more parameters and execute them as exec (@param1 + @param2 + @param3 + @param4 + ...)
HTH
* Noel
October 26, 2004 at 8:42 am
Don't understand yet the purpose but:
Select col_a
from some_table
where
Date_col =
coalesce (select date from tableA where id = host_id(), getdate())
OR
Select col_a
from some_table
where
Date_col =
(case when exists (select * from...
* Noel
October 25, 2004 at 8:18 pm
To be honest I hope you don't find such thing ![]()
* Noel
October 22, 2004 at 7:35 am
Yes You can't nest a sp that uses the insert exec construct. Try to use those at the Top level instead.
HTH
* Noel
October 22, 2004 at 7:30 am
I would either
1. Built the search TSQL on the client with sp_execsql and declare each word as a parameter
or
2. create a wrapper to the procedure that "Tal McMahon" proposed and...
* Noel
October 6, 2004 at 3:48 pm
Forgot to mention
step 3.5
-- Dissable All Triggers and constraints ![]()
exec sp_msforeachtable "ALTER TABLE ? NOCHECK CONSTRAINT all"
exec sp_msforeachtable "ALTER TABLE ? DISABLE TRIGGER all"
step 5
-- Enable...
* Noel
October 5, 2004 at 9:53 am
Viewing 15 posts - 4,366 through 4,380 (of 5,103 total)