Forum Replies Created

Viewing 15 posts - 91 through 105 (of 123 total)

  • RE: Default column values in CREATE TABLE statement

    use this code to create the default constraint.

    ALTER TABLE tbl_nm

    ADD CONSTRAINT DFLT_Tblnm_Columnnm DEFAULT default_value for [column name]

  • RE: Need to check file name before it get process

    Hi Unnati, see below.

    1) Have a SQL Function to validate the file name. Make sure the sql function returns either 0 or 1 upon failure or success.

    2) Pass the file...

  • RE: help on datediff

    Nita Reddy (4/10/2014)


    how do I pass day 16 in the code

    What do you mean to say, when you want to pass 16 in the code. It's not even a valid...

  • RE: Load files in Date order in SSIS

    You can do it in different ways.

    1) Have a table with all file names and using for each loop get the file name in an order and use it.

    2) If...

  • RE: Cannot deploy cube -analysis services tutorial-

    I believe the problem is with impersonation. What you might need to do is

    1) See if your OLAP Service is started(Quick check in the services).

    2) Open the cube, double click...

  • RE: CSV file to table

    If the format keeps changing you can try using a Script task as Destination and you need to use a significant amount of code, I tried once.. I will try...

  • RE: Changes not holding in Stored Procedure

    what do you mean when you say, code is not saving? If you have recently renamed the file using sp_rename and trying to pull the procedure using sp_helptext, I have...

  • RE: having trouble with a sql SP statement

    Try this...

    SELECT DISTINCT sttckt, stdescr

    FROM @Input t1

    WHERE stdescr <> 'freight'

    AND EXISTS (SELECT 1 FROM @Input t2 WHERE t2.sttckt = t1.sttckt AND t2.stdescr = 'Freight')

    Good Luck 🙂 .. visit www.sqlsaga.com...

  • RE: Running Total

    refer to this post...

    http://sqlsaga.com/sql-server/how-to-calculate-running-totals-in-sql-server/[/url]

    step by step explained...

  • RE: Parsing XML using SQL Server 2008

    Erland Sommarskog (7/21/2013)


    DECLARE @X XML = '<Movies>

    ...

  • RE: Parsing the XML

    Steven Willis (7/9/2013)


    See if this will help you. This reply was just posted yesterday so I'll just give the link:

    Parse XML to table.

     

    Thanks Steven..

  • RE: Parsing the XML

    Thanks Alan. Worked well for me.

  • RE: How To Generate XML File....From the Table...

    sarwaanmca (12/10/2012)


    Hi,

    I Successfully Imported the Following XML File ...

    Again I Want to Export (Generate) the Same XML File Format...

    Using The Output Data (Table Value )....

    How To Generate XML File...

    pls Any...

  • RE: Dynamic IN clause

    U.T (12/31/2012)


    Can anyone point out what is wrong with following query

    declare @Territory varchar(max)

    set @Territory = 'Domestic'

    SELECT *

    FROM Account

    WHERE PrimaryCountry IN (CASE WHEN @Territory = 'Domestic' THEN 'USA, CAN' ELSE PrimaryCountry...

  • RE: how to fetch records from multiple tables

    Select *

    from demo d

    INNER JOIN elections e ON e.sno = d.sno

    Inner join electionshist esh ON esh.ssno = e.ssno and esh.sno = d.sno

    where d.status <> 't'

    and e.electionstartdate is null

    and e.electionstermdate...

Viewing 15 posts - 91 through 105 (of 123 total)