Viewing 15 posts - 241 through 255 (of 302 total)
The lock conversions/escalations are only going to occur within a single transaction. For you to experience this with multiple sql stmts, e.g. SELECT followed by UPDATE they'd all need to...
May 19, 2004 at 10:48 am
The default isolation level is READ COMMITTED, so if you do not explicitly set this to READ UNCOMMITTED or use NOLOCK hints you will see S locks.
These are generally...
May 17, 2004 at 12:14 am
I think you just need to add convert in two places (I use style 120 mostly, other choices ok):
--advance to next date (not using datepart because of @@datefirst concerns)
set @TrDate...
May 16, 2004 at 7:08 pm
one other way would be create all 12 tables in advance, leave future ones unpopulated, then define view to always select from all 12.
if concern is that you only want...
May 15, 2004 at 7:26 pm
select (select sum(Amount)
from AR_Transactions
where Customer_Number = @c) +
(select sum(Amount)
from AR_Post_Dates
where Customer_Number = @c)
May 15, 2004 at 7:12 pm
I doubt it's the users/logins, have successfully restored many DBs w/these out of sync. Maybe it's the path or something, though.
If you can't get rest of error message, can you...
May 15, 2004 at 7:04 pm
This is very generic, please post more of the error message, esp what comes right after the 42000.
May 15, 2004 at 9:34 am
crude but effective?
for /F %%a in ('osql -S%2 -h-1 -n -E -Q"set nocount on select 1"') do if not "%%a"=="1" goto :Exit
echo can connect
:Exit
May 15, 2004 at 9:29 am
May 15, 2004 at 9:07 am
----------------------------------------------------------------------
--exact search (faster)
----------------------------------------------------------------------
set nocount on
declare @col sysname
set @col = 'iConfidential'
--find out which tables/views have column
select so.type as ObjectType,
so.name as ObjectName
from dbo.sysobjects so
join dbo.syscolumns sc
on sc.id =...
May 15, 2004 at 8:59 am
create table dates
(
id smallint identity (1, 1),
"date" datetime,
day_of_month tinyint,
month_of_year tinyint,
week_of_year tinyint
)
go
declare @d datetime
set @d = '2003-01-01'
while (@d < '2004-01-01')
begin
insert dates ("date", day_of_month, month_of_year, week_of_year)
...
May 14, 2004 at 10:09 pm
Tools | Options | Results Tab
check "Print column headers"
May 14, 2004 at 10:02 pm
I have hard time understanding how your table1 fits into the UDF, seems to me that UDF should be run against table1, not reference it internally? Probably more efficient way...
May 14, 2004 at 9:59 pm
Caveat: I use enterprise edition w/wizard etc. so this is not working solution, just thoughts, but might be enough to get you started.
I don't think the filenames are stored anywhere...
May 14, 2004 at 2:33 am
Viewing 15 posts - 241 through 255 (of 302 total)