Viewing 15 posts - 166 through 180 (of 216 total)
Suresh,
here is one way of doing it in SQL2000
create table appointment (
[name] varchar(50),
appt_date datetime,
appt_nbr int
)
insert into appointment ([name], appt_date, appt_nbr)
select 'JOHN CAMP','5/29/2008',67556
insert into appointment ([name], appt_date, appt_nbr)
select 'JOHN CAMP','5/29/2008',67557
insert into...
June 23, 2008 at 6:52 am
Although I can't find it in BOL, using 'w' in DATEPART (or DATENAME) returns the day of the week, i.e. the same as using 'dw'.
June 21, 2008 at 3:30 am
David,
you need to use
Select DATEPART(wk, GETDATE()) -1
or
Select DATEPART(ww, GETDATE()) -1
Kev
June 21, 2008 at 3:26 am
Thanks for the replies so far - this is exactly the kind of info I am looking to get.
Kev
June 16, 2008 at 10:28 am
There is an undocumented DBCC command you can use DBCC SHOWFILESTATS.
Check here http://www.databasejournal.com/features/mssql/article.php/3414111 for a explanation of its usage and a sample script from Greg Larsen
Kev
June 6, 2008 at 6:22 am
grasping at straws here...but could you post the definition of the inner function also....
June 2, 2008 at 10:31 am
You can use the
INSERT INTO table EXECUTE stored_proc
to capture the results of a stored proc into a table structure.
Look in BOL for more info.
May 28, 2008 at 10:21 am
Yes - that shows the difference between the default conversion format and the default display format. I've seen many people get caught out by that before, expecting that left(@date,1)...
May 23, 2008 at 9:40 am
Shaun - it's gone a whole week without another post to this thread!!!!
At long last it might be dead 😀
May 21, 2008 at 4:21 am
Christopher Ford (5/19/2008)
It helped me...Thank you very much. =)
Glad to help - do you have any idea what caused it to break in the first place???
Kev
May 20, 2008 at 2:11 am
traceflags 1204 and 1222 return more detailed information about the processes involved :
http://msdn.microsoft.com/en-us/library/ms178104.aspx
gives a full description
May 19, 2008 at 10:04 am
In QA go to Tools - Options - Results tab
Maximum charcters per column -although you can only specify up to 8192!!!
May 16, 2008 at 10:35 am
That is why I added the caveats that the wait time value is low and the waittype is a latch waittype.
If you had waits due to parallelism the...
May 16, 2008 at 8:49 am
Viewing 15 posts - 166 through 180 (of 216 total)