Forum Replies Created

Viewing 15 posts - 361 through 375 (of 389 total)

  • RE: Cannot edit stored procedures

    leesider (6/27/2012)


    Hi,

    I am getting the following error when I right-click on a stored procedure (any one) in Management Studio and select "modify". It hangs for a while and then I...

  • RE: Sum DISTINCT fields only

    DVSQL (6/22/2012)


    What is the best way to sum the distinct fields only. I've got a select that returns duplicate rows due to another table being inner joined. I clean that...

  • RE: Time difference bewteen two different data rows

    Methew (6/25/2012)


    hi, i want to show time difference between two datetime fields like here

    IF OBJECT_ID('TempDB..#mytable1','U') IS NOT NULL

    DROP TABLE #mytable1

    CREATE TABLE #mytable1

    (

    ID INT IDENTITY(1,1) ,

    UName NVARCHAR(50),

    alert_datetime DATETIME

    )

    SET IDENTITY_INSERT #mytable1 ON

    INSERT...

  • RE: sql server 2005

    hiteshchouhan91 (6/26/2012)


    Thank you for your help,

    column import and issue values showing me 2200 and 600

    but actual total of these column is 1100 and 300 respectively

    i want that it should be...

  • RE: What would be the best way to get the date from the following strings?

    fawadafr (6/26/2012)


    Chris:

    In your examples you are using the five product names I had provided. What would be the best way if I am dealing with 5,000+ products?

    Hey Fawad,

    Did you try...

  • RE: Cursor in cursor problem with choosing database in cursor

    info 281 (6/26/2012)


    I am trying to build a script for dynamic rebuilding of indexes. Hefereo I am planning to use a cursor in a cursor. The first cursor gets a...

  • RE: Various keys in sql server tables

    rahuldhawan2007 (6/26/2012)


    Hii

    i'm new to sql sever. i have few queries

    1. what is composite key in a database

    2. what is a candidate key

    3. what is difference between varchar and nvarchar...

  • RE: updating SYS.IDENTITY_COLUMNS in sql server 2008 r2

    Use below command

    DBCC CHECKIDENT ("TableName",RESEED, 1300);

  • RE: updating SYS.IDENTITY_COLUMNS in sql server 2008 r2

    shobha.aradhya (6/26/2012)


    Hi,

    I have a table with one of its col as auto-increment. The max value set is 1500. when the table reached 1234 records, the next few records...

  • RE: select 12^21

    darth_vodka (6/26/2012)


    hi

    simple question, what does the ^ do in t-sql?

    it's eluding me on google

    thanks

    EDIT:

    aha, bitwise OR

    hmm

    Hi darth_vodka,

    This is binary XOR.

  • RE: slow insert performance

    jmoog (6/26/2012)


    Table are use every sec. Yes there's index.

    some insert is 2 - 10 ms, some insert is big like 500 ms

    It is difficult to say from my end.But as...

  • RE: slow insert performance

    jmoog (6/26/2012)


    Here is the insert command

    NSERT INTO [TT_TSAPIDataA]

    ([SiteId]

    ,[ReferenceId]

    ,[CallId]

    ,[ResultingCallId]

    ,[SourceIP]

    ,[DestinationIP]

    ,[ProtocolId]

    ,[ApplicationId]

    ,[OperationValue]

    ,[SpecificEvent]

    ,[DNIS]

    ,[ANI]

    ,[CallingNumber]

    ,[CallingAddressType]

    ,[CalledNumber]

    ,[CalledAddressType]

    ,[DomainExtension]

    ,[Count]

    ,[OriginationPort]

    ,[ConnectedNumber]

    ,[ConnectedNumber2]

    ,[ConnectedAddressType]

    ,[TrunkGroup]

    ,[TrunkMember]

    ,[Cause]

    ,[DateReceived]

    ,[TimeZoneOffset])

    VALUES

    (@SiteId1,

    @ReferenceId1,

    @CallId1,

    @ResultingCallId1,

    @SourceIP1,

    @DestinationIP1,

    @ProtocolId1,

    @ApplicationId1,

    @OperationValue1,

    @SpecificEvent1,

    @DNIS1,

    @ANI1,

    @CallingNumber1,

    @CallingAddressType1,

    @CalledNumber1,

    @CalledAddressType1,

    @DomainExtension1,

    @Count1,

    @OriginationPort1,

    @ConnectedNumber1,

    @ConnectedNumber21,

    @ConnectedAddressType1,

    @TrunkGroup1,

    @TrunkMember1,

    @Cause1,

    DATEADD(mi,@TimeZone,@DateReceived1), --@DateReceived

    @TimeZone)

    )

    Have you observed the values you are passing ? Do you have any index on the said table ? How frequently the...

  • RE: slow insert performance

    jmoog (6/26/2012)


    Hi Guys,

    Can you please figure out the reason why insert with this table is sometimes slow. Some insert 2 ms, some insert 500 ms. Here is the schema

    CREATE TABLE...

  • RE: Distinguish records on daily basis

    Methew (6/26/2012)


    rhythmk (6/26/2012)


    Methew (6/26/2012)


    i want to divide records on daily basis like here

    IF OBJECT_ID('TempDB..#mytable1','U') IS NOT NULL

    DROP TABLE #mytable1

    CREATE TABLE #mytable1

    (

    ID INT IDENTITY(1,1) ,

    UName NVARCHAR(50),

    alert_datetime DATETIME

    )

    SET IDENTITY_INSERT #mytable1 ON

    INSERT INTO...

  • RE: SSIS Process Task Analysis Services

    jchernev (6/19/2012)


    Hello there,

    I'm currently in the process of designing a SSIS package that needs to run in both DEV and Prod. As such, I've setup a database table that contains...

Viewing 15 posts - 361 through 375 (of 389 total)