Viewing 15 posts - 14,251 through 14,265 (of 14,953 total)
Network resources? No effect at all.
April 11, 2008 at 7:11 am
Narizz28 (4/11/2008)
April 11, 2008 at 7:00 am
It should reduce lock times. Since each batch is run as a set, breaking up the batches with "go" should let each one complete without holding more resources. ...
April 10, 2008 at 12:57 pm
Depends on what you're doing and on how many cores the CPUs have.
If they both have the same number of cores, then the 3Ghz CPU will probably be faster than...
April 10, 2008 at 12:26 pm
Have you tried running the sub-query in the Exists function all by itself?
Just, "SELECT id FROM func1(2,2) WHERE id = blah1", in Management Studio, in that database.
That might give you...
April 10, 2008 at 11:51 am
Max size of XML data type is 2 Gigabytes.
April 10, 2008 at 11:48 am
Michael Earl (4/10/2008)
Don't be too bound on the "Stored Procedures are the only way" approach.
They are not necessarily the fastest...
April 10, 2008 at 11:29 am
You can either use the char() function, or you can use the characters you want directly.
For example:
replace('abc', 'b', '1')
Will result in the "b" being replaced by a "1", which would...
April 10, 2008 at 11:27 am
You'd have to modify the function to deal with decimals. Probably split the integer portion from the decimal portion and the function separately on the integer, then run it...
April 10, 2008 at 11:14 am
There's a UDF for converting to any base from base 10 at:
It's not the most efficient code ever, and it's RBAR (inline scalar UDF), but it does work.
April 10, 2008 at 8:58 am
It depends on how you're generating the 1-million rows of data.
If what you're doing is importing large files, then BCP/Bulk Import/SSIS is going to be much faster than calling a...
April 10, 2008 at 8:24 am
The char() function (not to be confused with the char() datatype) returns whatever character is assigned to the number in the parentheses.
Examples:
select char(33), char(34), char(35)
returns:
!"#
char(32) happens to be the space...
April 10, 2008 at 8:12 am
Pivot can be used that way, you just have to trick it.
Max(ID) = ID
If you aggregate on the column you group by, you end up with the column exactly as...
April 10, 2008 at 7:31 am
Derek:
I understand your point. I was agreeing with you. SQL has enough consistency problems already without even more being added, was my point.
April 10, 2008 at 7:27 am
Per Books Online:
"Transactional replication typically starts with a snapshot of the publication database objects and data. As soon as the initial snapshot is taken, subsequent data changes and schema modifications...
April 10, 2008 at 7:18 am
Viewing 15 posts - 14,251 through 14,265 (of 14,953 total)