Viewing 15 posts - 931 through 945 (of 1,219 total)
Jeff Moden (8/6/2013)
What would you use as an alternative? Insert/Exec?
If you've read my article, you know that nor am I fond of INSERT/EXEC.
As long as I have control over...
August 7, 2013 at 2:29 am
Because the sky is blue.
T-SQL as a programming language is fairly primitive, and far from all commands accepts variables or expression where you want them to.
If you feel that this...
August 7, 2013 at 2:25 am
Lowell (8/6/2013)
August 6, 2013 at 4:07 pm
If they can be named anything, why even bother about them?
You are talking about a spreadsheet, but maybe you could explain the entire process? Why would the names in a...
August 6, 2013 at 4:00 pm
Here is a batch. I'm using temp tables, because I estimate that a single-query solution would be less efficient.
Note that the solution does not include rows with ParentId = 1000,...
August 6, 2013 at 3:57 pm
Yes, "linked server" is an eloquent way to spell "trouble".
How much data are you trying to insert? What is the speed of the network connection between the two servers?
August 6, 2013 at 3:29 pm
kevinsql7 (2013-08-06)
Steve what do you mean by +1?
That he agrees with Gail.
August 6, 2013 at 9:09 am
WolfgangE (8/6/2013)
Really? As far as I know the standard behavior is that an exception does not influencde the transaction. You raise an exception, any currently open transaction remains open and...
August 6, 2013 at 6:05 am
I can understand that since you are looking for all sorts of products, that you don't want to engage in anything SQL Server-specific like SMO. However, the PowerShell option that...
August 6, 2013 at 5:18 am
Phil Parkin (8/5/2013)
[bBut note that BOL suggests using THROW rather than RAISERROR for applications built in 2012 and onwards.
Microsoft are keen on recommending on what they happened to come most...
August 6, 2013 at 1:11 am
No. But why would you do START FULL POPULATION every time? If you have change tracking on, you can do START UPDATE POPULATION instead. And in that case you may...
August 6, 2013 at 1:07 am
"Way around" is may be not the most approriate description, since you seem to be inventing your rules. And the whole idea looks funny. Do you really have umpteen colunms...
August 6, 2013 at 1:04 am
Thus, you got a good incentive to reconsider your solution.
I recommend writing a CLR stored procedeure instead of using sp_OAxxxxx.
But you should not make SOAP requests inside a...
August 5, 2013 at 3:56 pm
drlloyd2 (8/5/2013)
August 5, 2013 at 3:45 pm
No, that old syntax for RAISERROR (which has been deprecated since SQL 6.0 released) does not work in SQL 2012 in any compatibility mode.
Ironically, SQL 2012 includes a new command...
August 5, 2013 at 3:38 pm
Viewing 15 posts - 931 through 945 (of 1,219 total)