Forum Replies Created

Viewing 15 posts - 46 through 60 (of 141 total)

  • RE: Pivot basic question

    That's great news, thanks as1981.

    If I may be a little bold, I suggest being careful to include the table name when referencing a column (tabusrTelephoneTemp.StaffID instead of...

  • RE: Pivot basic question

    Thanks as1981, I recommend trying to appropriate the examples in the Books Online article on PIVOT, first without the dynamic SQL clouding the issue.

    If you could do with...

  • RE: Pivot basic question

    I believe you need to wrap your @query variable in brackets, as below. Without those, EXECUTE is looking for a stored procedure with the name of "select tabusrProductGroup.title,...".

  • RE: SSIS, derived column, flat file date conversion

    I think your code is working as you need it to, it seems to convert "10/08/16" into a column of DT_DBDATE datatype, which be inserted into an SQL destination DATE...

  • RE: Need to find a store procedure in a database

    I find the free add-on ApexSQL Search useful for finding procedures (or data) in database(s), but you could use the below query as a starter to search stored procedure...
  • RE: SSRS Result Set Question

    You've got two result-sets there - SSRS will only read the first result-set and ignore the second. UNION ALL them to get the expected result, like below. Note the NULL...

  • RE: Extract sp_execute value to a variable to compare

    bmg002's answer is my preference, as it's easiest to implement off-hand. 

    It looks like you're not passing the output parameter to the executesql statement on the linked server, so...

  • RE: CASE statement in WHERE clause

    Hi Dan,

    I don't think it's possible to do the structure you're suggesting - if I understand things correctly, SQL doesn't behave the way you expect it to with...

  • RE: Why do some DBAs avoid DATETIME2?

    Man, you guys are kind!

    sgmunson, I had expected DATEADD and DATEDIFF to automagically use the parsed objects data type. Paying more careful attention, I can see it...

  • RE: SSIS Automate Process

    Yes, it's possible to create a batch file that starts an SSIS package via the DTEXEC executable, using the command option "/Parameter" to pass the relevant information as package parameters....

  • RE: Is my avoidance of UPDATE/DELETE CASCADE on foreign key relationships valid?

    Thanks guys, I appreciate the advice. I went with adding a new record to the parent table (tblEmployee) with the new primary key value, updating all referencing column values to...

  • RE: SSIS Script Transformation

    Could you please post your script transformation's code so we can see what you're doing to build the XML? You may also want to attach a data viewer to the...

  • RE: Data retrieval failed for the subreport

    I'm not sure what would be causing this. Here's some approaches I've used to troubleshoot similar situations:

    • I've had a few situations where re-deploying a report retained the previous parameters...

  • RE: SQL Query assistance

    I agree with pietlinden - posting the definition of those views would help identify where the bottleneck is. You may also want to post the estimated query plan for this...

  • RE: Should I listen to this recommendation to change data lengths for consistency during ETL?

    The source database is the Microsoft sample database AdventureWorksLT 2012. I'm not sure why everything the user can enter is NVARCHAR, why the email length is 50, why there's only...

  • Viewing 15 posts - 46 through 60 (of 141 total)