Forum Replies Created

Viewing 15 posts - 781 through 795 (of 1,241 total)

  • RE: Table structure for creating timetable for a school

    Using tables like a Calendar, Course, TimeOfDay table (separate from Calendar which implies a day as the primary key) or Period ...

    you could employ a simple snapshot table that...

    ----------------------------------------------------

  • RE: Please explain what this Trigger query does

    Hi Jeff, from reading your thoughts I hope I understood all of the points you made. I drew out here a base and audit table as

    CREATE Table table1

    (

    IDINT IDENTITY(1,1)...

    ----------------------------------------------------

  • RE: Get Month Name

    Sumit Rastogi (2/9/2015)


    SELECT DATENAME(month, @MonthNumber)

    Example: SELECT DATENAME(month,1)

    Result: January

    Just to note, the DATENAME functions requires a date for the second argument. They way you have it you are expressing 1900-01-01. If...

    ----------------------------------------------------

  • RE: What is the best practice about maintain and using Big Log Database

    Eric M Russell (2/3/2015)


    MMartin1 (2/3/2015)


    Maybe I missed it somewhere but it seems as though you are reporting from the same system you insert into. You generally want to build a...

    ----------------------------------------------------

  • RE: how to read contents of flat file in SSIS and extract from it just one value for use in variable?

    Koen Verbeeck (1/19/2015)


    What I would do:

    * Read the flat file like you normally would, i.e. with a flat file source. You can use a for each loop container with a...

    ----------------------------------------------------

  • RE: What is the best practice about maintain and using Big Log Database

    Maybe I missed it somewhere but it seems as though you are reporting from the same system you insert into. You generally want to build a warehouse to store your...

    ----------------------------------------------------

  • RE: What does 2 periods after DB name mean?

    The ".." represents the default schema for the security context accessing the data, without you having to type it. Let us say that I am logged in as loginA. Under...

    ----------------------------------------------------

  • RE: DAte Function

    Could the 'safe' plan that incurs a higher cost be helped by updating statistics?

    ----------------------------------------------------

  • RE: DAte Function

    Luis Cazares (1/27/2015)


    If it's a string column with underscores between each part of the date. This could be an option.

    SELECT columns_to_return

    FROM dbo.XYZ

    WHERE date_column > REPLACE( CONVERT(...

    ----------------------------------------------------

  • RE: DAte Function

    I too like the column on the left and expression on the right. I also like to use the year argument to know I am interested in one year back,...

    ----------------------------------------------------

  • RE: UK Post code Area

    I thought something like the following may be helpful as well , based on your requirements of course...

    select postalCode = Case when patindex('%[0-9]%',postalcode) > 0

    ...

    ----------------------------------------------------

  • RE: Passing Multiple value to dataset Filter

    keshav_nitrkl (1/23/2015)


    Hi ,

    My report is having three fields : NAME || Level || ID .I have a single dataset and a filter to my dataset. The dataset filter should work...

    ----------------------------------------------------

  • RE: Reporting Services 2005 with sql server 2012 compatibility - Issues with sp2?

    our database it is on SQL Server 2012 sp1 but is a sql 2005 database in compatibility mode

    Is this the case also on your copy of the environment?

    ----------------------------------------------------

  • RE: Using a cursor in Sql trigger

    declare sorder cursor for

    select SRREFERENCE

    --,@updateflag = SlaUpdate

    from inserted

    open sla

    FETCH NEXT FROM sla INTO @salesorder

    WHILE @@FETCH_STATUS = 0

    BEGIN

    Would this cursor not only gather one row? (I assume you meant that...

    ----------------------------------------------------

  • RE: Where can I find the definistion of this table value function

    Good point on the results to text. I have the habit of throwing the results to grid, doing a click on the select all corner of the results tab, copying...

    ----------------------------------------------------

Viewing 15 posts - 781 through 795 (of 1,241 total)