Viewing 15 posts - 1 through 15 (of 46 total)
I agree with Grant's suggestion of using parameterized dynamic queries (sp_executesql).
This will reuse query plans even though the query is built dynamically.
November 8, 2010 at 5:26 pm
Yup outer join will work.
I'm going to assume there's a unique EmpID per Employee.
You would need to have a month table with month name (and month number, if you need...
October 20, 2010 at 1:00 pm
If you haven't already come up with a solution...
And you just need to examine execution plans of poorly performing queries , see here
You can just copy over the db schema...
September 14, 2010 at 4:59 pm
Have you tried to convert to string first then to decimal?
September 13, 2010 at 5:34 pm
Lucky!
We've been trying to get it, but obviously had to do without it so far...
I've never used it, but it sure would have save me a lot of time 🙂
September 10, 2010 at 2:03 pm
If I understand your requirements correctly...
You should create just the structure of a customer's db (no data) and create SSIS jobs to populate it by taking a random portion of...
September 10, 2010 at 12:49 pm
As Derrick mentioned...
To update the dev db can be a bit tricky and really depends on the dev team's requirements.
Does the dev team want to keep their inserts and updates?
If...
September 10, 2010 at 12:39 pm
Here's a great article that can pretty much take you step by step on trouble shooting transactional replication performance.
http://blogs.msdn.com/b/chrissk/archive/2009/05/25/transactional-replication-conversations.aspx
September 7, 2010 at 5:12 pm
Just a shot in the dark...
Are all your file group stored on files on the 184GB hard drive?
What are their growth settings?
September 7, 2010 at 2:54 pm
Without knowing what you've already tried, here are some suggestions...
Is there some kind of a condition defined on the Precedence Contraint?
Also, have you tried replacing your transformation script component with...
September 7, 2010 at 12:52 pm
If you want any one of the failed insert to revert back other previous inserts, you do need to explicitly declare transactions.
Without using transactions...
You can have each insert lock one...
September 2, 2010 at 10:27 am
Do all the tables have different structure?
Dynamically create your queries using sys.tables and sys.columns.
You'll probably have to do something like this.
SELECT
CASE WHEN COL1 = @KEYWORD THEN COL1 + '|TABLE1.COL1'
...
August 31, 2010 at 9:06 am
inserted and deleted tables hold the changed data as a result set, not a single row.
Avoid the following code as it won't handle multiple updates.
DECLARE @insertedValue VARCHAR(10), @insertedID VARCHAR(10), @deletedValue...
August 30, 2010 at 5:30 pm
If data type is DECIAL(9, 0), which means no decimals, then you can use the method suggested on previous posts.
SELECT
a.BAN,
a.ACC_TYPE,
a.ACC_TYPE_SUB_TYPE_DESC,
a.BL_MAJOR_ACCOUNT_NO,
a.ACTIVE_SUBSCRIBER_CNT,
s.SCS_PR
s.SCS_Manager_PR,
s.SCR_Manager_PR,
s.SCS_SR_Manager_PR,
s.SCR_SR_Manager_PR
FROM dbo.ndw_account_dim a right outer join dbo.sct_master_query s
ON a.BAN = s.BAN
WHERE...
August 30, 2010 at 1:00 pm
Oh and what's precision and scale of the decimal? DECIMAL(?,?)
August 27, 2010 at 5:03 pm
Viewing 15 posts - 1 through 15 (of 46 total)