Viewing 15 posts - 5,326 through 5,340 (of 6,486 total)
Unless you've changed the recovery model of TempDB to something it shouldn't be (i.e. anything other than "simple") - it should automatically truncate as transactions commit.
So - the trick is...
January 10, 2008 at 12:59 pm
I have both 2000 and 2005 on this box, and Xp_msver works under both. What error are you getting when you run it on 2000?
January 10, 2008 at 11:23 am
...all versions except the "plain jane" SQL Express... the SQL Express with Advanced services does have it.
January 10, 2008 at 11:20 am
Have you considered using XML to do this - it would be fairly easy to set up a standard "header" stucture in an XML file describing the rest of the...
January 10, 2008 at 11:10 am
For what it's worth - xp_MSVer returns the number of CPU COREs (since they are perceived as separate processors by the OS).
On a slightly different note - where...
January 10, 2008 at 11:01 am
I thought of that one, and from the little I can see - it looks like that .NET notation doesn't work.... Have you tried to throw on an ISNUMERIC thing...
January 10, 2008 at 10:32 am
What does the DB say is in the field erroring out? (i.e. what's the value causing the #error?)
January 10, 2008 at 10:19 am
Try this one on for size - use the new-fangled TRY/CATCH to do this.
Cut it into chunks and run the operation on a chunk at a time.
This presumes...
January 10, 2008 at 9:39 am
If you want to have both aspects covered - here's the extra info you might need:
select
so.name tablename,
sc.name columnname,
sc.colorder columnorder,
sc.length columnsize,
st.name columnType,
st.variable columnVarLength,
sc.isnullable columnIsNullable
from syscolumns sc
inner join sysobjects...
January 10, 2008 at 9:18 am
Jeff Moden (1/8/2008)
Favorite temp table name... #MyHead 😀
Pretty close to accurate too - disconnect the session and the table gets wiped:)
January 10, 2008 at 6:59 am
That's essentially how I coded it (after which a tie on quarters, it goes to the rep with the "lowest name" alphabetically).
January 9, 2008 at 7:13 pm
A Primary key is the field used as the "anchor" for relations to other tables. In other words, it's the value that is put into a field in another...
January 9, 2008 at 7:10 pm
I just double-checked - and the promote does work, no matter what the order is (meaning - int compared to varchar converts all values to INT, whether the varchar is...
January 9, 2008 at 2:06 pm
Then unfortunately your choices get a bit harder.
The manual way to do that would be something like:
select name, code, T1 as Amount, 'T1' as type
from mytable
UNION ALL
select name, code, T2...
January 9, 2008 at 1:44 pm
In order to make the results consistent, we'd need something reliable to tell us which of the two records is "first". Is there something like an identifier column that...
January 9, 2008 at 1:39 pm
Viewing 15 posts - 5,326 through 5,340 (of 6,486 total)