Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. manmaria

    help sql search in detail table from a master table field

    Based on my understanding. Let us know if that is correct. Select m.*, d.* from master m inner join detail d on m.pk=d.fk where m.name ='something'
  2. manmaria

    Stored Procedure Question

    Looks like YOG is an alias for StudMR.StudMRGradYear. So replace StudMR.StudMRGradYear wit your new case statment. Make sure you put END at the end of case statement.Same thing has to be added to your group by also. HTH
  3. manmaria

    How can i get DDL from Existing SQL Database

    Another solution without using sqlserver is using a datamodel tool like Erwin, visio, powerdesigner to do a reverse engineering for a table and generate ddl from the model.
  4. manmaria

    combine results query help

    Do you want to combine the total of WHAT? or Do you want to concatenate the fields 20U,20A,20W?
  5. manmaria

    IS package failed with converting a date field

    [SQL Server Destination [52]] Error: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E07. An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x80040E07 Description: "Error converting data type DBTYPE_DBTIMESTAMP to...
  6. manmaria

    Execution Results of IS package

    Is there a text file stored in a local drive for the execution results after the is package executed? Sometimes the message in execution result is truncated unless I copy and paste the message into a notepad. So I like to see if these results are stored somewhere else? TIA
  7. manmaria

    SQL 2005 License Model

    Try this SELECT SERVERPROPERTY('productversion'), SERVERPROPERTY ('productlevel'), SERVERPROPERTY ('edition') HTH
  8. manmaria

    Creating the Foreign Key after the table being loaded

    Created a FK after a 1.5million records table being loaded. Is there any draw backs for doings this? Do I need to rebuild the indexes? or reindex is automatic after creating the FK? TIA
  9. manmaria

    ForEachLoop container?

    OK. Thanks. I will try.
  10. manmaria

    ForEachLoop container?

    I have a sql task which takes tablename as a parameter and writes in a file with tablename as part of the file name. Unique table names can be available from a table. Right now I am generating one file at a time inputing the table name every time. Can I do this task using a Foreachloop...
  11. manmaria

    Trigger after update

    Found it. It is on deleted table.
  12. manmaria

    Trigger after update

    If I have a base table customer with custid, name1, name2, add1, add2, begdate, enddate. And I have a update on name2 and add2 then I want to capture the change and write in a staging table with the whole old record except the enddate. Enddate I want to put the current date. Is that old...
  13. manmaria

    Syntax for creating trigger inside a proc with condition

    I know it looks like dangerous but it is not. Thanks for your response. Yes, we need to execute this temporary proc to create the trigger. We drop the temporary proc after creating the trigger. Thanks any way. If I am doing this from the scratch, I do not go with this approach but we are...
  14. manmaria

    Data Flow Task can't tranfer all the records

    Is there any filters at the destination?
  15. manmaria

    Generate sql using SSIS

    Only reason I am using SSIS is to append the text to a file. What I am doing is inserting the standard script in to a text and using the table name as a parameter and getting the columns information from the system tables. This is a template sql for moving data from base to staging tables. So...
  16. manmaria

    Syntax for creating trigger inside a proc with condition

    I want the syntax for something like this create proc if condition then create trigger else do soemething. TIA
  17. manmaria

    Publisher name

    Got it. select publication from distribution.dbo.mspublications
  18. manmaria

    Update the Audit Table with an update Trigger

    I have a base table and audit table are like this SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[Mytest]( [TestID] Int NOT NULL, [TestDesc] [varchar](35) NOT NULL, [EffBegDate] [datetime] NOT NULL, [EffEndDate] [datetime] NOT NULL, PRIMARY KEY CLUSTERED (...
  19. manmaria

    Publisher name

    How to select the current publisher? Is there a query? I can look in SSMS under replication/local publications. But is there a query I can use for some programming? TIA

Part and Inventory Search

Back
Top