Viewing 15 posts - 6,091 through 6,105 (of 7,187 total)
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
Roy Ernest (2/27/2008)
I have doubt.... Since Stored Procs can have recompiles and then take bad query plans, cant view also have that same issue?
Since a view doesn't take parameters,...
February 27, 2008 at 6:57 am
Luis
Please will you post DDL for your tables in the form of CREATE TABLE statements, sample data in the form of INSERT statements, the results your query is producing, and...
February 27, 2008 at 2:39 am
JMSM
Try experimenting with the date style parameter in the CONVERT function. This may prevent the "out of range" error eppearing.
John
February 26, 2008 at 8:26 am
Sounds like something you would want your app, rather than SQL Server, to do. Put please will you post table definitions in the form of CREATE TABLE statements and...
February 26, 2008 at 7:48 am
Viewing 15 posts - 6,091 through 6,105 (of 7,187 total)