Forum Replies Created

Viewing 15 posts - 421 through 435 (of 1,109 total)

  • RE: Deleting a simple row

    Did you create a primary key on this table? If not, are there duplicate rows in this table.

    If there are duplicates, are you trying to delete all of them or...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: How to search a table in 500 server ?

    From T-SQL, on SS 2005 you can iterate through your servers in a loop and connect to them and execute a query using OPENROWSET('SQLNCLI'

    OPENROWSET('SQLNCLI','Server=myserver;Trusted_Connection=yes;','SELECT ...')

    However, there are third party tools...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Can't drop a index cluster

    Alen cappelletti (2/21/2008)


    I all,

    I got this table

    -----

    CREATE TABLE [dbo].[Logs](

    [IDLog] [int] IDENTITY(1,1) NOT NULL,

    [IDlogGiorno] [int] NOT NULL,

    [Date_Time] [datetime] NOT NULL,

    [c-Ip] [varchar](20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,

    [cs-Uri-Stem] [varchar](150) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,

    [cs-Uri-Query] [varchar](250) COLLATE SQL_Latin1_General_CP1_CI_AS...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Restoring the database

    restore database databasename with recovery

    Regards,

    Andras


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Query regarding Delete

    Hi Harsh,

    You should not really worry too much about how data is stored in the database, at the end of the day this is the task of the database management...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: MDF and LDF

    Ratheesh.K.Nair (2/21/2008)


    Hi,

    How can i find the mdf and ldf using query?

    TAI

    On SQL Server 2005:

    select physical_name from sys.database_files

    for 2000 use dbo.sysfiles

    In both cases use the...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Collation problem

    avinash repe (2/19/2008)


    Thanks for your reply..

    Yes i am going to re-install SQL SERVER 2005,where reinstalling it ask for collation setting,that you can set.

    And i am going to set according to...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Foreign Key Status

    Kenneth Wilhelmsson (2/19/2008)


    While doing checks on FK's, don't forget to also check if it's trustworthy or not..

    select OBJECTPROPERTY(object_id(myForeignKey), 'CnstIsNotTrusted')

    /Kenneth

    Kenneth has an excellent point. Many people disable their foreign keys, and...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: SELECT vs INSERT INTO with the SAME SELECT performance issues

    Zeev Kazhdan (2/18/2008)


    OK,

    Here it goes; it didn't let me to run the statement with 1,NULL,NULL as you suggested,

    but NULL,NULL,'DETAILED' - hope it will be ok. I"ve loaded the result file...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: backup from version 8 to version 7

    kgache (2/18/2008)


    hello,

    i am quite sure it is a mssql server..

    please tell me if i understood correctly

    - i have the database on a mssqlserver version 2000

    - i go to the properties...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: problem wif my insert statement

    Encapsulate it into an extra select statement:

    INSERT INTO Photovoltaic

    ( PV_site

    , PV_state

    ...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: backup from version 8 to version 7

    kgache (2/18/2008)


    Hello,

    i have a database-backup from a server version 8 and i want to restore it on a server version 7.0.

    Is there a possibility to do that?

    thank you very much

    kg

    Unfortunately...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: SELECT vs INSERT INTO with the SAME SELECT performance issues

    Zeev Kazhdan (2/18/2008)


    Thank you for the reply.

    I have a primary key on both tables and I have tried to play with WITH(INDEX()), but nothing changed.

    There is no trigger nor constraint...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: Database growth

    You can look at the size and growth columns in sys.database_files before and after the reindexing.

    Regards,

    Andras


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

  • RE: SELECT vs INSERT INTO with the SAME SELECT performance issues

    Zeev Kazhdan (2/18/2008)


    Dear All,

    I have a SELECT statement which runs less than 1 sec.

    When I try to INSERT this select into real table, nor @table, nor #table it takes between...


    Andras Belokosztolszki, MCPD, PhD
    GoldenGate Software

Viewing 15 posts - 421 through 435 (of 1,109 total)