Viewing 15 posts - 1,111 through 1,125 (of 1,162 total)
Hi,
This is an example of denormalised data and it's not good database design for an OLTP database.
In your case, the Orders table should not contain a clientname field at all,...
October 8, 2009 at 8:20 am
As far as I understand, you can use log shipping between a 2005 and 2008 database. However, the WITH STANDBY option is not available in this situation as the database...
October 8, 2009 at 7:16 am
No, I can't see any mention in BOL, but it's easy enough to demonstrate:
declare @testpattern varchar(max)
set @testpattern=''
select @testpattern=@testpattern+cast(number as varchar) from master..spt_values
where type='p'
print 'length of pattern to search for: '...
October 5, 2009 at 4:54 am
I don't believe patindex will work with a pattern term greater than 8k - it's fine if the column being searched is >8k.
October 5, 2009 at 4:42 am
Also, for more information on the above, the following areas in BOL should help out:
Configure the SQL Server to listen on a specific port (for security reasons, pick a non-standard...
September 25, 2009 at 9:54 am
Hi,
Hope this steers you in the right direction:
1: The port of named instances will generally not be 1433
2: External access is disabled by default, so you would need to enable...
September 25, 2009 at 8:19 am
Just wrap the sql to send the email in a IF...BEGIN END
e.g:
if (Some SQL Statement that returns a count of errors) >= 1
begin
print 'send email'
end
else
print 'dont send email'
September 24, 2009 at 9:36 am
If you're doing a lot of work with dates and financial years for reporting, I would strongly recommend creating a well indexed date table that you can use as a...
September 24, 2009 at 8:43 am
In terms of performance, I think the answer is probably 'it depends'. In my experience they tend to generate pretty similar execution plans so it's often just down to personal...
September 24, 2009 at 7:17 am
I have to say, I've never come across this bug before and I script things to clipboard and paste them all the time.
It looks like the bug relates to interpretation...
September 24, 2009 at 7:11 am
Incidently, you should be extremely careful in setting sa as the remote login credentials for a linked server as it's almost impossible to restrict users from having sysadmin rights on...
September 23, 2009 at 7:18 am
I suspect VSMIADB01 is a linked server that you've either set to use the login's current security context (and you're logged in as sa (tut tut)), or has a hard...
September 23, 2009 at 7:14 am
No, they use exactly the same engine - in fact I believe you can even change version by changing a registry key if this hasn't changed since 2005.
The only exceptions...
September 23, 2009 at 6:31 am
No problem - make sure you use the code I just edited as the first code messed up your count for number of attempts.
September 23, 2009 at 6:02 am
Assuming SessionID is your PK (which I hope it isn't in your real table):
;with CTE as (
select ObjectID,UserID, status, row_number() over (partition by UserID,ObjectID order by SessionDate desc) as sequence...
September 23, 2009 at 5:50 am
Viewing 15 posts - 1,111 through 1,125 (of 1,162 total)