Viewing 15 posts - 24,151 through 24,165 (of 26,486 total)
Actually, I believe that indexes will help. I can't remember where I read it, but I believe that there has been improvements in the query engine in SQL Server...
October 7, 2008 at 8:59 am
I can see why this runs fast:
SELECT * FROM REFERRALS WHERE RECVD_DTTM >= '2008-10-06 23:59:59' AND RECVD_DTTM < '2008-10-05 00:00:00'
It is executing in 1 second where as
It won't select...
October 7, 2008 at 7:56 am
Or you can do something like this in SQL Server 2005/2008. (Pardon my use of the * in the query).
create table dbo.MyUsers (
UserID varchar(25),
...
October 6, 2008 at 12:49 pm
Truncating or deleting data from the tables will not drop the indexes you create. If you drop the tables themselves every day, then you'd lose the indexes you create.
😎
October 6, 2008 at 12:31 pm
How about the following:
declare @timeint int,
@dateint int;
set @dateint = 20081003;
set @timeint = 70004;
select cast(cast(@dateint as char(8)) as datetime) +
...
October 3, 2008 at 11:54 am
lucassouzace (10/2/2008)
for example:WITH CTE1 as ( Select AddressID from Person.Address
where AddressiD in ( select ProductID from Production.Product)
Error:
Msg 156,...
October 2, 2008 at 11:46 am
Still need the DDL for the under lying tables to the view.
😎
October 1, 2008 at 10:12 am
I just wanted to be sure. We have WSS installed on one of our development servers, and I have to shutdown the Windows Internal Database to run the Surface...
October 1, 2008 at 9:50 am
Can you provide the DDL (create statement) for the tables including collation for character columns?
😎
October 1, 2008 at 9:45 am
Curious, is there any other software installed on the system? In particular, I am wondering if the Windows Internal Database (aka SQL Server 2005 Embedded Edition) is installed on...
October 1, 2008 at 9:41 am
Unfortunately, we aren't mind readers. The help you get is only as good as the information you provide with your question.
I suggest you read the article in Jeff's signature...
September 30, 2008 at 10:38 pm
Added an additional test:
create proc dbo.MyTest (
@StartDate datetime = null
)
as
begin
set @StartDate = isnull(@StartDate,getdate());
select @StartDate;
return...
September 30, 2008 at 10:29 pm
You can't use the fuction getdate() as a default. You need to do something like this:
create proc dbo.MyTest (
@StartDate datetime = null
)
as
begin
...
September 30, 2008 at 9:51 pm
rbarryyoung (9/30/2008)
Jeffrey Williams (9/30/2008)
tbeadle (9/29/2008)
SELECT ...
FROM table1
LEFT JOIN table2 ON table2.fkey =...
September 30, 2008 at 1:20 pm
A quick fix may (or may not) be to add the user to the db_ddladmin role in the database in question.
I haven't found anything else as of yet.
😎
September 30, 2008 at 1:09 pm
Viewing 15 posts - 24,151 through 24,165 (of 26,486 total)