Forum Replies Created

Viewing 15 posts - 286 through 300 (of 396 total)

  • RE: List of FK

    SELECT  FK.[Name], TBL.[Name]

    FROM sysobjects FK INNER JOIN sysobjects TBL

       ON FK.parent_obj = TBL.id

      WHERE FK.xtype ='F'

    Did like above . is there any other straigh forward way of doing it

    https://dbfriend.blogspot.com/

  • RE: Insert data ignoring Foreign Key Constrain

    Thankx

    I couldn't find it earlier

    thankx again

     

    https://dbfriend.blogspot.com/

  • RE: Set and Remove Identity attribute

    IT WORKSSSSSSSS!!!!!!!

    Thankx rockmoose  and Chiara for the great help

     

    https://dbfriend.blogspot.com/

  • RE: Set and Remove Identity attribute

    NOOOOOOO it is not working from VB

    here is VB code

     connSConfig.Execute "SET IDENTITY_INSERT [AlarmClass] ON"      

          

    connSConfig.Execute "Insert into [AlarmClass] (ID,AlarmClass,Priority,BPM,WAVFile,PlayType,VectoringGroupID,AlarmHelpStringID,AlarmMsg,AlarmTextColor,AlarmBackColor,AckTextColor,AckBackColor) Values (11,'Cleared',10,10,'','',0,1,'',16777215,16711680,0,16777215)"

     

    this gives folowing error

    Cannot insert explicit value for identity column...

    https://dbfriend.blogspot.com/

  • RE: Set and Remove Identity attribute

    Thankx I will check and let you know

    https://dbfriend.blogspot.com/

  • RE: Set and Remove Identity attribute

    Sorry I couldn't tell you. I want it to do from VB / ADO will I be able to use same command from that also.

    I can't try it here...

    https://dbfriend.blogspot.com/

  • RE: How to Update Linked tables

    UPDATE a SET VectoringGroupID = 1

    from AlarmConfig A INNER JOIN AlarmDef B

    ON A.AlarmDefID = B.AlarmDefID

    Where B.PointId = 2

    https://dbfriend.blogspot.com/

  • RE: Learning T-SQL

    Get a book. I think it is the better way of learning.

    And try to participate in this type of discussions. SQLServeCentral is another great resource which you will find

    Good...

    https://dbfriend.blogspot.com/

  • RE: Working with the Registry

    Thankx all for your comments which help me lot

    https://dbfriend.blogspot.com/

  • RE: What is th econnection between SSC and SSWUG

    Yes Bill , U are absolutly correct.

    https://dbfriend.blogspot.com/

  • RE: Access to SQL to ASP

    I think best option is DTS

    https://dbfriend.blogspot.com/

  • RE: Grouping multiple fileds with only one filed in group by

    CHeck this

    Get Details of the Aggregated Data
    Say you want to get the latest processes running on Microsoft® SQL Server and their time, hostname, and the username. The following...

    https://dbfriend.blogspot.com/

  • RE: unique column

    Can u put some sample data here

    https://dbfriend.blogspot.com/

  • RE: unique column

    Select Distinct (CNAME) From CustomerDetails

    https://dbfriend.blogspot.com/

  • RE: Is there any function to retrieve LastIndex.

    Select Len('Dianesh Asanka') -  CHARINDEX(reverse('an'),reverse ('Dianesh Asanka'),0) - 1

     

    Not sure above is correct

    But u can use CharIndex,reverse,Len functions to achive this

    https://dbfriend.blogspot.com/

Viewing 15 posts - 286 through 300 (of 396 total)