Viewing 15 posts - 6,766 through 6,780 (of 7,164 total)
Yes, it can be done without a cursor or loop. Whether you should use dynamic SQL will depend on what will consume the results. Is this a one-off request or...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
March 30, 2011 at 2:14 pm
TVFs may be a bit more flexible from a programming perspective especially if you're interested in capturing the results in a temp table (re: limitations on INSERT...EXEC).
If you choose TVFs,...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
March 30, 2011 at 2:08 pm
Sounds like a fun project...and that you're approaching it carefully and in your own time. That is a breath of fresh air. It sounds like SSMA has helped you get...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
March 30, 2011 at 10:53 am
Disclaimer: my approach is shaped by my lack of awareness of an SSIS-specific tool/component that can do what you're asking so read with that in mind.
Initially I thought of writing...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
March 30, 2011 at 9:28 am
chetanr.jain (3/30/2011)
i have gone through the Self study guide of Microsoft for 70-432. Read out that book fully.
There...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
March 30, 2011 at 9:02 am
I meant a motivation to use synonyms, specifically. Have you considered using views to accomplish the same end result?
Something like this:
CREATE VIEW dbo.account_data
AS
SELECT *
FROM dbo.Bi001 ;
GO
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
March 30, 2011 at 7:24 am
I am happy you were able to find a workable solution.
In the spirit of completely avoiding temp tables, hopefully improving performance, would something like this work?
SELECT a.ContactID AS...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
March 30, 2011 at 5:14 am
Your connection string was slightly flawed. Try this:
IF OBJECT_ID(N'tempdb..#MyTable') > 0
DROP TABLE #MyTable ;
/* notice:
1. use SQLNCLI10 as the provider if you're accessing SQL 2008
2....
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
March 29, 2011 at 5:16 pm
Do you have multiple CPUs in your server? And if so, what is your server's MAXDOP setting?
If SQL Server decided to employ parallel worker threads to execute your UPDATE then...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
March 29, 2011 at 5:01 pm
Is there a specific motivation in your organization towards using synonyms over views containing SELECT * FROM SCHEMA_NAME.TABLE_NAME in this scenario?
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
March 29, 2011 at 4:47 pm
naresh.talla (3/29/2011)
Hi,i am enable the xp_cmdshell through command
sp_configure 'xp_cmdshell',1
reconfigure
once i have enabled xp_cmdshell,
it's again disabled i am not getting any error message,
if any one can give solution.....
What are you trying...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
March 29, 2011 at 9:26 am
Here is a free tool that may help get you started on the scripting part of your task:
http://www.idera.com/Products/Free-Tools/SQL-permissions/%5B/url%5D
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
March 28, 2011 at 4:12 pm
emilybrank (3/28/2011)
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
March 28, 2011 at 3:27 pm
For your first question, you do not need to qualify the column you are updating. Try this:
UPDATE a
SET PO_ITEM_CATEGORY = b.[segment3]
FROM dbo.trialInvoice...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
March 28, 2011 at 3:25 pm
I like the Transcender products. I have used them for years going back to the VB6/SQL7 days.
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
March 28, 2011 at 3:21 pm
Viewing 15 posts - 6,766 through 6,780 (of 7,164 total)