Viewing 15 posts - 6,091 through 6,105 (of 7,191 total)
Jeff Moden (3/13/2008)
March 13, 2008 at 7:10 am
Kiran
You should read the topic "Cardinality estimation" in Books Online. If there's anything you don't understand, or if it doesn't cover everything you need to know, please post again....
March 13, 2008 at 5:39 am
Does this work where the foreign key constraint consists of more than one column?
John
March 4, 2008 at 2:09 am
What have you tried so far? It would also help if you were to post the DDL for your table(s) and some sample data.
Thanks
John
March 3, 2008 at 9:19 am
You're not going to get anywhere by shouting. I don't even see a question in your original post, so what is it that you're asking?
Please start off by posting...
March 3, 2008 at 4:32 am
Then Jason's query should work. How about the results of this?
SELECT TOP 20 OutStartDate + OutStartTime, OutEndDate + OutStartTime
FROM vwOutofOffice
Have a look at the results and see if they...
February 29, 2008 at 9:02 am
Martin
It's so much more complicated when you separate out date and time. Please will you post the results of this query:
SELECT TOP 20 OutStartDate, OutEndDate
FROM vwOutofOffice
Thanks
John
February 29, 2008 at 8:55 am
No. Probably the easiest way is to create a temp table with an identity column, insert your rows into that, then select from it.
John
February 29, 2008 at 8:42 am
Martin
Now I'm confused. If you're storing OutStartDate and OutEndDate as datetime, why do you need OutStartTime and OutEndTime?
John
February 29, 2008 at 8:26 am
Martin
Do you have the option to change the view so that it gives the date and time in one value? If you can do that then a simple BETWEEN...
February 29, 2008 at 8:19 am
Luis
Each one of your insert statements returns "Error converting data type nvarchar to numeric." Sorry but I don't have time to find which of the columns this is happening...
February 29, 2008 at 3:07 am
Try it for yourself. Run the following code:
create table #MyTable(t int)
then create a new connection to the database and run the same code again. Now run this query:
SELECT...
February 28, 2008 at 3:31 am
Luis
Thanks for that, but we still need DDL and sample data so that we're not guessing at what's going on. For instance, the data type of the conta column...
February 28, 2008 at 1:59 am
Sugesh Kumar (2/27/2008)
alter database dbname with recovery to bring it online. you need not restore it again.
That won't work... try parsing it. The correct syntax is the one that...
February 28, 2008 at 1:35 am
Roy Ernest (2/27/2008)
I beg to disagree on that. A wrong query plan does not always happen due to Paramater sniffing. It can happen when the Statistics are out of date...
February 27, 2008 at 8:48 am
Viewing 15 posts - 6,091 through 6,105 (of 7,191 total)