Viewing 15 posts - 6,781 through 6,795 (of 7,472 total)
with sql2k sp3 one can have Cross DB Ownership Chaining.
If I'm correct, this way you can avoid to have to authorize sp-users to the other db unless you encounter...
December 23, 2004 at 2:21 am
I have done some testing now.
The problem is that the select which is done to perform then insert, is performed before the actual insert is being done.
This way your new...
December 23, 2004 at 1:27 am
Regarding the DRI problem :
Do you upload an new set of parent data with as well the old as some new data ?
if yes :Why not only bulk-instert only the...
December 22, 2004 at 12:16 am
IF [is your sp3 on a multi-processor box ? ] = 1
begin
if [Is it a sql2k standard edition ? ] = 1
begin
if [did you apply the...
December 22, 2004 at 12:00 am
maybe just perform the select so you can detect and verify the duplicates
December 21, 2004 at 8:16 am
How about avoiding the udf and using this select ?
SELECT rs.EmployeeID, rs.School, w.WorkDate
, isnull((select max([counter]) + 1
FROM SchoolServices
WHERE EmployeeID = rs.EmployeeID AND School = rs.School AND ServiceDate = w.WorkDate...
December 21, 2004 at 12:39 am
sorry for the delay.... been out for the long weekend
Like Bob Monahon replied : this query...
December 20, 2004 at 2:52 am
just to add ..
you can use Alter view . BOL : Alters a previously created view (created by executing CREATE VIEW), including indexed views, without affecting dependent stored procedures or...
December 17, 2004 at 7:14 am
- tripple join
or
where with exists-clause for each condition
e.g.
select *
from myself T1
where exists (select * from myself where id = T1.Userid and...
December 15, 2004 at 7:39 am
AFAIK this is not possible with sqlserver, unless you use partitioned views. i.e. create a table per partition, manage each table's indexes according to the specific tables needs and create...
December 15, 2004 at 7:29 am
this what I use with VB6 sqldmo :
I hope this can help sort things out
Private Sub ScriptJobs()
On Error GoTo ErrorHandler
strStatementId...
December 15, 2004 at 7:25 am
just my 2 ct
- Why use a count(*) if your functionality is 'if exists '
- case yourcol when 0 then ...
else yourcol
end
December 15, 2004 at 1:06 am
are you member of the sysadm-sqlserver-role on the instance where it fails ?
December 15, 2004 at 12:57 am
DECLARE @MaximumDate char(8) ?? Why not use smalldatetime ??
Is MaximumDate in the table/view also defined char ?? if yes,you'll have to take care of it's format...
December 15, 2004 at 12:40 am
We use this T_TableLoadData in a way that we record if data is being loaded (loading_bit = true) and all applications querying the data will use a view which has an...
December 15, 2004 at 12:22 am
Viewing 15 posts - 6,781 through 6,795 (of 7,472 total)