Forum Replies Created

Viewing 15 posts - 8,326 through 8,340 (of 9,643 total)

  • RE: How to create a generic trigger

    GSquared (7/21/2008)


    hengert (7/21/2008)


    I have to create a trigger for 9 tables. So, depending on how many columns each table has, it would be a nightmare to write.

    Unless you're talking about...

  • RE: How to create a generic trigger

    Sure you can make it format better by adding Carriage Returns, Line Feeds, and Tabs. You would do this using the CHAR() function. I believe it is CHAR(10)...

  • RE: BETWEEN date1 AND date2 Not returning data for date2

    DateTime fields store date and Time so if you are using Between '6/1/08' and '6/30/08' then you are actually saying give me all the data From 6/1/08 00:00:00 to 6/30/08...

  • RE: Create a task for each row in an Excel Spreadsheet

    It sounds like the OLE DB Command task it what you want then.

  • RE: How to create a generic trigger

    hengert (7/21/2008)


    Thank you for your answer.

    This is what I came up with (Keep in mind that this is the first time I write T-SQL)

    The code looks like it will create...

  • RE: Create a task for each row in an Excel Spreadsheet

    You can use the Execute OLEDB Command to do this.

    What are you doing in the stored procedure?

  • RE: Can I access a temp table from SQl Server Job?

    No you cannot. temp tables created using #table_name are only available to that session and when you end step 1 and start step 2 sessions change. You...

  • RE: Return the most frequent value

    Chris,

    Thanks. I have not used all the new statistical functions in 2005 yet and had forgotten about rank. I changed my solution to use RANK and had about...

  • RE: Return the most frequent value

    I think this may do what you want (I created some dummy data):

    [font="Courier New"]DECLARE @customers TABLE(AccountNum INT, DM_Source_Id INT, Address VARCHAR(10))

    DECLARE @i INT,

                 @j-2 INT

    SET @i = 1

    SET @j-2 =...

  • RE: Risk Of Enabling CLR

    The first risk is poorly performing code. Why do the developers want to use the CLR? There have been a couple of threads here on SSC where there...

  • RE: SQL Server Install organizational standards.

    As far as separating databases and database backups, yes they should be on separate drives. Having backups doesn't to much good if the data drive fails and that is...

  • RE: change database names

    In SQL Server 2005 you can use Create Database [db_name] With Attach instead of sp_attachdb. You can also specify a new database name using sp_attachdb.

  • RE: IDLE TIME of SQL

    There was a follow up to the first article in my earlier post, Return Query Text Along With sp_who2 Using SQL 2000[/url], that may help. You can...

  • RE: SSRS Custom Code - How to Reference ?

    This line:

    HR = ""

    is causing .NET to throw an "Conversion from String to Integer" error. The way you are referencing the code in the report is fine. The...

  • RE: IDLE TIME of SQL

    Idle connections should not be causing blocking as they are doing nothing. Using sp_who or sp_who2 shows any blocked processes and the SPID which is causing the blocking. ...

Viewing 15 posts - 8,326 through 8,340 (of 9,643 total)