Viewing 15 posts - 76 through 90 (of 201 total)
Not really enough information to give a good answer.
Read http://www.sqlservercentral.com/articles/Best+Practices/61537/ on how better to post your question.
/T
January 10, 2011 at 1:24 am
Okay that is one horribly slow way of doing that. Now i dont have a script for doing this myself so creating one from scratch i have dropped some stuff...
January 7, 2011 at 7:18 am
Hi
Borrowing abit off code from various post in http://www.sqlservercentral.com/Forums/Topic1042310-149-2.aspx and modifying it a bit. Thanks to Jeff Moden and GSquared.
You could do something like
create function a (@actions varchar(50)) returns varchar(50)...
January 5, 2011 at 3:41 am
sc-w (1/4/2011)
I have a field called contact that has peoples firstname and lastname in, the data looks like "JOHN SMITH" for exmaple. What i need to do is to alter...
January 4, 2011 at 5:46 am
Koen (da-zero) (1/4/2011)
Bad question, with lots of trickery.What point were you trying to make? Duplicates with UNION, TRUNCATE in transaction or columns referenced directly in the IN clause?
There fixed it...
January 4, 2011 at 12:11 am
CELKO (12/22/2010)
Please post...
December 22, 2010 at 11:13 pm
Or the OUTER APPLY version
declare @Patient table
(
Pat_ID integer not null primary key,
LastName varchar(100),
FirstName varchar(100)
)
declare @Appointment table
(
Appt_ID integer identity...
December 22, 2010 at 4:35 am
GSquared (12/17/2010)
vinothraj (12/17/2010)
December 17, 2010 at 7:15 am
vinothraj (12/16/2010)
by the by,.... current_timestamp averages 0.21 seconds where as getdate() averages 0.234 seconds.
I seriously doubt that it takes 0.21 SECONDS to run current_timestamp (or getdate() for that matter) one...
December 17, 2010 at 1:04 am
Jeff Moden (12/16/2010)
Thanks for the feedback. You are, of course right about "It Depends". Guess I'll have to yank out some examples of what I ran into on...
December 16, 2010 at 11:39 pm
Jeff Moden (12/15/2010)
Learner1 (12/10/2010)
I got the answer anyways,,,using Recursive CTE
IMHO... [font="Arial Black"]ABSOLUTELY NOT!!! [/font]:-P
While it certainly is easy to write an rCTE to do this, an rCTE will use a...
December 16, 2010 at 2:07 am
da-zero (12/10/2010)
Nice question, thanks.(but it surprises me that apparently 78% -for the moment- know the exact error message!)
Could have done what i did... ran the code. Now i knew that...
December 10, 2010 at 1:20 am
Good question but the answers are a bit... unfair.
The 2 answers:
Throw an error: Invalid object name '#tmp'.
Throw an error: Cannot find table #tmp inside TempDB.
Have the same effect (no...
December 9, 2010 at 11:43 pm
Viewing 15 posts - 76 through 90 (of 201 total)