Forum Replies Created

Viewing 15 posts - 61 through 75 (of 89 total)

  • RE: I am getting the below error.

    I tied from different machine now, i am getting the same problem now and i got this error message also

    SQL Server connection broken. Want to retry.

    Since its not working different...

  • RE: I am getting the below error.

    No active open transactions

    I dont have any open transaction.

    Then it is not due to concurrent query issue.... but why it is showing that message.

    as

    The SQL Server has been...

  • RE: I am getting the below error.

    I am having the sysadmin privileges, ok can be a network problem. Just now i saw my logs an i got this message

    The SQL Server has been optimized for 8...

  • RE: I am getting the below error.

    Using this command you can check how many transaction are currently open.

    --This command gets you the spid of open transactions.

    DBCC opentran

    Check how many open transactions are there on the server.

  • RE: Stored Procedure Basics

    I can suggest you to search on the net or in sqlservercentral for store procedures. You will get lot of codes and sample. This will also help you to find...

  • RE: Stored Procedure Basics

    CREATE PROCEDURE procname

    @value varchar(50),

    @value2 varchar(150)

    as

    INSERT INTO myTable ( )

    SELECT COUNT(*)+1, @value, @value2 FROM myTable

    The above code which was posted by Gail Shaw is...

  • RE: Stored Procedure Basics

    Create procedure name

    @value varchar(50),

    @value2 varchar(150)

    as

    begin

    declare @myValue int

    --wrong statement

    --Select @myValue = 'Select count(*)+1 from myTable'

    Select @myValue = count(*)+1 from myTable

    Insert into myTable values( @myValue, @value, @value2 )

    end

    Here is the correct...

  • RE: access locks

    I dont have much experience in Access DB.....

    Since it is a Database.. it should have locking facilities.

    What I can suggest you is that ... if you are generating...

  • RE: access locks

    Can you let me know the requirement... why you want to lock records.

    You can use the sp : sp_getapplock to lock records

    for more info visit the link :

  • RE: OpenRowset

    I think you are looking for multiple tables and files..i.e. you want to import data from multiple files to multiple tables.

    For I suggest you to use the dynamic sql and...

  • RE: only works for master DB

    It is not only for master DB.. you can call that sp in any of the database.

    Also you can use the shortcut ALT+F1 to view the table design.

    You can...

  • RE: How to Inner Join temp tables

    Try this script

    declare @TableVariable table(id int,[name] varchar(20))

    declare @state varchar(200)

    declare @TableVariable1 table(id int,[name] varchar(20))

    ...

  • RE: want to retrieve rows with maximum values for a particular column

    Try this statement :

    select issueid, userid, max(createddate) from #tab1 group by issueid, userid

  • RE: Insert more than 1 records using stored procedure

    Yes Madhivanan is correct .. it will work fine.

  • RE: Insert Statement not working

    Absolutely YES.. you need to use inner join if you want to insert values from different tables.

    The result set which you will get in the select statement... same records will...

Viewing 15 posts - 61 through 75 (of 89 total)