Forum Replies Created

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

  • RE: PF usage is high

    Experts..

    I am struggling to fix...can any one please help....?

  • RE: Problem with Dynamic SQL

    It works. I just checked. just copy from here and paste in your code.

    EXEC('Insert into temptable1'+ @sp_id + ' values (10,''XXXXX'')')

    Try and let me know.

    --Prasad

     

  • RE: Problem with Dynamic SQL

    Hi,

    It's a minor mistake. you might overlooked at it.

    change the code to

    EXEC('Insert into temptable1'+ @sp_id + 'values (10,''XXXXX'')')

    It works. by mistake, you have removed 1 in the insert...

  • RE: Indexing Joined Columns

    As per the recent experience i had with one of projects, After loading to production one procedure started taking more than 9 minutes to return result set. when i checked...

  • RE: query to find size of all tables in a database

    --Sorry..the Script provided by me is to find out the spaces of Databases..hence am rolling back my posting.. ---

  • RE: plz explain

    Nope tomm..The query can do much more than just getting max..

    By replacing 1 with 2 in that query will fetch second maximum,

    By replacing 1 with 3 in that query will fetch...

  • RE: incorrect settings: ''''Arithabort''''

    I got the solution...Its started working after i altered the DB

    ALTER DATABASE Deals

    SET ARITHABORT ON

    GO

  • RE: incorrect settings: ''''Arithabort''''

    One more point to be added...

    Recently i have added a column in the main table and that column was derived column and wil concatenate the two columns values to popualte....

  • RE: Import CSV File Data

    Try using this from QA.

    Declare @vchrBulkCmd varchar(500)

    SET @vchrBulkCmd = 'BULK INSERT TblCsv

    FROM ''c:\Testcsv.txt''

    WITH ( DATAFILETYPE=...

  • RE: textcopy loop

    Can you paste the code here..

  • RE: BCP Succeeds with 1 row, not 2

    YOu can use the following sample code:

    SET @vchrBulkCmd = 'BULK INSERT #ALLFILES

    FROM ''c:\AllFiles.txt''

    WITH ( DATAFILETYPE= ''char'', ROWTERMINATOR = '''+CHAR(10)+''' ) '

    EXEC(@vchrBulkCmd)

    This code is dumping from allfiles.txt...

  • RE: Select query for custom paging

    am not sure about  the query you are using, but when navigations required from one page to another, have another column in the table with auto increment, then when you...

  • RE: Drop column when referenced?

    This way we are explicitly dropping FK constaraint before dropping the column..This is always possible. but if you see th example i have quoted in my first post, In oracle,...

  • RE: Find File Name of Database

    Use master

    select name,filename from sysdatabases

  • RE: Passing Variable with "LIKE"

    Starnge..Its working fine in 2000 when i tried. can you try running the query again?

    The code i tried is

    Declare @NAMEX varchar(100)

    Set @NAMEX = 'S'

    Select @NAMEX = @NAMEX +...

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